/// <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.StoredProcedures.ExistsCommand.Execute(criteria)); }
/// <summary> /// Determines if a record exists in the Product table in the database for the specified criteria. /// </summary> public static async Task <bool> ExistsAsync(ProductCriteria criteria) { return(await PetShop.Tests.ObjF.StoredProcedures.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 OnChildFetching(ProductCriteria criteria, ref bool cancel);
/// <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);
/// <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.StoredProcedures.Product.Exists(criteria)); }
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)); }