LINQ to SQL : Executing DML SQL Query

LINQ to SQL : Executing DML SQL Query

  • Comments 1

INSERT/DELETE/UPDATE can be performed in LINQ to SQL through normal T-SQL DML queries,

 

static void Main(string[] args)

{

    NorthwindDBDataContext db = new NorthwindDBDataContext();

 

var query = db.ExecuteCommand("YOUR DML Query", "Your    Parameter");

 

    ObjectDumper.Write(query);

}

 

Are you feeling comfortable? Hold on, please try to avoid this as you have better object model approach.

 

Namoskar!!!

Leave a Comment
  • Please add 8 and 8 and type the answer here:
  • Post
  • INSERT/DELETE/UPDATE can be performed in LINQ to SQL through normal T-SQL DML queries, static void Main

Page 1 of 1 (1 items)