After I do an insert using linq to sql, can I get the Identity_scope value back if my table has an identity column?
Sql – Linq to Sql: Can I return the Identity_Scope after an insert
identity-columnlinq-to-sql
Related Topic
- C# – return the ‘id’ field after a LINQ insert
- Sql – Linq to SQL – How to find the value of the IDENTITY column after InsertOnSubmit()
- C# – Difference Between Select and SelectMany
- Sql – Adding an identity to an existing column
- .net – LINQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
Best Answer
Linq to SQL does the job for you, the identity value it's available just after the
SubmitChanges
method is called.