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