LINQ in Action roller

Override association loading not working (ex: LoadOrders)

Hi, I'm trying to override how associations are loaded as descriped here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2143547&SiteID=1 Code Snippet private IEnumerable LoadOrders(Customer customer) { throw new ApplicationException("test"); } but, the method is not being called. I even tried to set prefetching as mentioned at the bottom of that thread: Code Snippet System.Data.Linq.DataLoadOptions options = new System.Data.Linq.DataLoadOptions(); //options.LoadWith(c => c.Orders); options.AssociateWith(c Read More...
Published Tuesday, May 27, 2008 3:35 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication