internal static async Task <Product> GetByCategoryIdChildAsync(System.String categoryId) { var criteria = new ProductCriteria { CategoryId = categoryId }; return(await DataPortal.FetchAsync <Product>(criteria)); }
public static async Task <Product> GetByProductIdAsync(System.String productId) { var criteria = new ProductCriteria { ProductId = productId }; return(await DataPortal.FetchAsync <Product>(criteria)); }
/// <summary> /// Returns a <see cref="Product"/> object of the specified criteria. /// </summary> /// <param name="name">No additional detail available.</param> /// <returns>A <see cref="Product"/> object of the specified criteria.</returns> internal static Product GetByNameChild(System.String name) { var criteria = new ProductCriteria { Name = name }; return(DataPortal.Fetch <Product>(criteria)); }
/// <summary> /// Returns a <see cref="Product"/> object of the specified criteria. /// </summary> /// <param name="categoryId">No additional detail available.</param> /// <param name="productId">No additional detail available.</param> /// <param name="name">No additional detail available.</param> /// <returns>A <see cref="Product"/> object of the specified criteria.</returns> internal static Product GetByCategoryIdProductIdNameChild(System.String categoryId, System.String productId, System.String name) { var criteria = new ProductCriteria { CategoryId = categoryId, ProductId = productId, Name = name }; return(DataPortal.Fetch <Product>(criteria)); }
/// <summary> /// Returns a <see cref="Product"/> object of the specified criteria. /// </summary> /// <param name="categoryId">No additional detail available.</param> /// <returns>A <see cref="Product"/> object of the specified criteria.</returns> internal static Product GetByCategoryIdChild(System.String categoryId) { var criteria = new ProductCriteria { CategoryId = categoryId }; return(DataPortal.Fetch <Product>(criteria)); }
/// <summary> /// Returns a <see cref="Product"/> object of the specified criteria. /// </summary> /// <param name="productId">No additional detail available.</param> /// <returns>A <see cref="Product"/> object of the specified criteria.</returns> internal static Product GetByProductIdChild(System.String productId) { var criteria = new ProductCriteria { ProductId = productId }; return(DataPortal.Fetch <Product>(criteria)); }
public static async Task DeleteProductAsync(System.String productId) { var criteria = new ProductCriteria { ProductId = productId }; await DataPortal.DeleteAsync <Product>(criteria); }
internal static async Task <Product> GetByCategoryIdProductIdNameChildAsync(System.String categoryId, System.String productId, System.String name) { var criteria = new ProductCriteria { CategoryId = categoryId, ProductId = productId, Name = name }; return(await DataPortal.FetchAsync <Product>(criteria)); }
internal static async Task <Product> GetByNameChildAsync(System.String name) { var criteria = new ProductCriteria { Name = name }; return(await DataPortal.FetchAsync <Product>(criteria)); }
/// <summary> /// Returns a <see cref="Product"/> object of the specified criteria. /// </summary> /// <param name="categoryId">No additional detail available.</param> /// <param name="name">No additional detail available.</param> /// <returns>A <see cref="Product"/> object of the specified criteria.</returns> public static Product GetByCategoryIdName(System.String categoryId, System.String name) { var criteria = new ProductCriteria { CategoryId = categoryId, Name = name }; return(DataPortal.Fetch <Product>(criteria)); }
/// <summary> /// Determines if a record exists in the Product in the database for the specified criteria. /// </summary> /// <param name="criteria">The criteria parameter is a <see cref="ProductList"/> object.</param> /// <returns>A boolean value of true is returned if a record is found.</returns> public static bool Exists(ProductCriteria criteria) { return(PetShop.Tests.ObjF.ParameterizedSQL.Product.Exists(criteria)); }
/// <summary> /// Determines if a record exists in the Product in the database for the specified criteria. /// </summary> public static async Task <bool> ExistsAsync(ProductCriteria criteria) { return(await PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria)); }
/// <summary> /// CodeSmith generated stub method that is called when fetching the child <see cref="Product"/> object. /// </summary> /// <param name="criteria"><see cref="ProductCriteria"/> object containing the criteria of the object to fetch.</param> /// <param name="cancel">Value returned from the method indicating whether the object fetching should proceed.</param> partial void OnFetching(ProductCriteria criteria, ref bool cancel);
public static async Task <ProductList> GetByCriteriaAsync(ProductCriteria criteria) { return(await DataPortal.FetchAsync <ProductList>(criteria)); }
public static ProductList GetByCriteria(ProductCriteria criteria) { return(DataPortal.Fetch <ProductList>(criteria)); }
/// <summary> /// Determines if a record exists in the Product table in the database for the specified criteria. /// </summary> /// <param name="criteria">The criteria parameter is an <see cref="Product"/> object.</param> /// <returns>A boolean value of true is returned if a record is found.</returns> public static bool Exists(ProductCriteria criteria) { return(PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.Execute(criteria)); }
/// <summary> /// CodeSmith generated stub method that is called when deleting the <see cref="Product"/> object. /// </summary> /// <param name="criteria"><see cref="ProductCriteria"/> object containing the criteria of the object to delete.</param> /// <param name="cancel">Value returned from the method indicating whether the object deletion should proceed.</param> partial void OnDeleting(ProductCriteria criteria, ref bool cancel);