LINQ in Action roller

When to create the DataContext to track changes

Hi, I'm a little confused on when exactly to create the Datacontext and when it tracks changes on objects. In the Asp.NET Pro, June '08 issue, there is an article that states "to be able to keep track of the Customer object's changes throughout the life of the object, the DataContext must be created *before* creating a new instance of the Customer class. See article at http://www.aspnetpro.com/PDF/Issues/aspJUNE2008.pdf In "Pro LINQ" by Joseph Rattz, on page 508, it's similar in that the context Read More...
Published Sunday, June 22, 2008 11:36 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication