Wriju's BLOG

.NET, Cloud and everything

LINQ to SQL : Executing DML SQL Query

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”);





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