Wriju's BLOG

.NET, Cloud and everything

LINQ to SQL : Change in DataContext from Beta 1 to Beta 2

During the demonstration I have noticed that two major methods of DataContext has changed from Beta 1 to Beta 2.


First one, is the new name for the class DataShape(). Now there is no class called DataShape() but we have DataLoadOptions().



var loadOption = new DataLoadOptions();           

loadOption.LoadWith<Customer>(c => c.Orders);


db.LoadOptions = loadOption;




DataContext does not have any method called GetQueryText() it got changed to GetCommand().


Please let me know if you find something else. I will update this entry.