Esempio n. 1
0
 private static IQueryable <Product> GetProductsByUserType(ProductsDataContext dc, UserType userType)
 {
     dc.LoadOptions = ProductLoadOptions;
     return(GetProductsByUserTypeQuery(dc, userType));
 }
Esempio n. 2
0
 private static IQueryable <Product> GetProducts(ProductsDataContext dc, bool includeDisabled)
 {
     dc.LoadOptions = ProductLoadOptions;
     return(GetProductsQuery(dc, includeDisabled));
 }
Esempio n. 3
0
 private static Product GetProduct(ProductsDataContext dc, string name, bool includeDisabled)
 {
     dc.LoadOptions = ProductLoadOptions;
     return(GetProductByNameQuery(dc, name, includeDisabled));
 }
Esempio n. 4
0
 private static ProductEntity GetProductEntity(ProductsDataContext dc, Guid id)
 {
     dc.LoadOptions = ProductLoadOptions;
     return(GetProductEntityQuery(dc, id));
 }
Esempio n. 5
0
 private static Product GetProduct(ProductsDataContext dc, Guid id, bool includeDisabled)
 {
     dc.LoadOptions = ProductLoadOptions;
     return(GetProductQuery(dc, id, includeDisabled));
 }