Get return value from SubmitChanges function in LINQ C# .Net

Last Reply on Oct 06, 2015 01:47 AM By dharmendr

Posted on Oct 05, 2015 03:22 AM

what is the return value for SubmitChanges() in Linq?

Like in common c# language

when I insert any record to database and then it returns no of rows changed to database in int format.

then I can compare like below code

SqlCommand cmd = new SqlCommand();
 //.... to do task
response.Write("Record Saved");

like this can I perform same task in LINQ then what will be the scenario for this.

please give suggestion.

Posted on Oct 06, 2015 01:47 AM

Return type is void.