This link has been bookmarked by 34 people . It was first bookmarked on 07 Sep 2007, by Flemming Kristensen.
-
28 Jan 13
-
12 Jul 11
-
LINQ to SQL in Beta2 enables this by allowing you to add a partial class to extend your DataContext class and then implement partial methods to customize the Insert, Update and Delete logic for your data model entities.
-
DataContext.GetChangeList()
-
One approach you can optionally employ for advanced scenarios is to sub-class the DataContext class and override its SubmitChange() method.
-
LINQ to SQL supports is to use an optimistic concurrency model - where LINQ to SQL will automatically detect if the original values in the database have been updated by someone else prior to the new values being persisted.
-
What is really nice is that you can start off by defining your data model and have LINQ to SQL automatically handle the insert, update, delete SQL logic for you. You can then at a later point customize the data model to use your own custom SPROCs or SQL for updates - without having to change any of the application logic that is using your data model, nor would you have to change any of the validation or business rules logic supporting it (all of this stays the same). This provides a lot of flexibility in how you build your application
-
-
08 Apr 10
-
10 Sep 09
-
27 Aug 09
-
18 Jul 09
-
07 Dec 08
-
17 Jul 08
-
05 May 08
-
22 Apr 08
-
21 Jan 08
-
12 Dec 07
-
30 Jul 07
-
11 Jul 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.