Example of OnDemand with join?
I have seen LINQ query expressions that use OnDemand between tables tat have foreign keys. If I'm trying to build a similar OnDemand query expression for tables using joins, can someone give me an example of one?
edit:
using the LinqPad "what's new" page example
edit:
using the LinqPad "what's new" page example
from c in Customers let bigSales = c.SalesOrderHeaders.Where (soh => soh.TotalDue > 100000) where bigSales.Any() select new { c.Store.Name, BigSales = bigSales.OnDemand() }How would you rewrite the query if there were no foreign keys between Customers and SalesOrderHeaders/Store?
Comments