LINQ in Action roller

LoadWith EntityRef is not working ?

I have following relationship Customer | |__[1:N]CustomerAddress and... Country | |__[1:N]CustomerAddress --in other way.. Customer | |__[1:N]CustomerAddress ---> [1:1] Country ---------------------- When I try to execute following qry, Country is always coming as "null" Customer MyCustomer = null ; DataLoadOptions lo = new DataLoadOptions (); lo.LoadWith Customer >(c1 => c1.CustomerAddresses); lo.LoadWith CustomerAddress >(ca => ca.Country); db.LoadOptions = lo; MyCustomer = ( from c in db.Customers Read More...
Published Tuesday, June 24, 2008 10:24 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication