LINQ - How can we perform insert,delete,update by using LINQ concept
Asked By srinu muddasani on 13-May-12 04:56 AM
How can we perform insert,delete,update by using LINQ concept
Peter Bromberg replied to srinu muddasani on 13-May-12 11:46 AM
If you want to do database CRUD actions via LINQ, you need to use either LINQ To SQL or Entity Framework (or any of a number of other ORMs that provide a LINQ interface. There is no provision in the ADO.NET providers themselves for implementing LINQ to perform database CRUD operations.
[)ia6l0 iii replied to srinu muddasani on 13-May-12 10:08 PM
Yes, Peter is right.
And to get some insight into what he meant, you can read the MSDN article titled "Insert, Update, and Delete Operations (LINQ to SQL)" @ http://msdn.microsoft.com/en-us/library/bb386931.aspx
Hope it helps.