What is Lamda Expression:-
A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls. Lambda expressions are particularly helpful for writing LINQ query expressions.
Description:-
In this example we can create a CRUD operation with LINQ but not through simple query but with the use of Lamda Expression.
by using lamda expression we can reduce the length of Query so your code is very shortly and you can easily do the operation rather than simple long query
In Linq you have to First
Create a one DBML File in which you have to Add a all Table that you have to
use in a application so not need to Connecton. And also you have to add Namespace
using System.Linq instead of using System.Data.SqlClient;
to show Example of insert,update,delete in gridview using WCF Service please click here WCF Service For Insert,update,Delete
to show Example of insert,update,delete in gridview using LINQ please click here insert,update,delete using Linq
to show Example of insert,update,delete in gridview using Naming Container please click here Naming Container for insert update Delete in Gridview
to show Example of insert,update,delete in gridview using Modal Popup please click here insert,update,delete in Modal Popup
to show Example of insert,update,delete in gridview using Stored Procedure please click here insert,update,delete through stored Procedure
to show Example of insert,update,delete in XML File and bind to Gridview please click here insert,upadte,delete in XML File
to show Example of insert,update,delete in gridview using Three Tier Architecture please click here Three Tier Architecture For insert,update,Delete
so How to insert update Delete through Lamda Expression Query are as define below code...