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