public static LambdaEnumerableLoader <Company, ModelContainer> GetCompanyByName(string name) { return(Loaders.Create(() => new ModelContainer(), m => (from c in m.Companies where c.Name.StartsWith(name) select c).Take(9))); }
public static LambdaEnumerableLoader <T, ModelContainer> Load <T>( Func <ModelContainer, IQueryable <T> > func) { return(Loaders.Create(() => new ModelContainer(), func)); }