public static async Task DeleteCategoryAsync(System.String categoryId) { var criteria = new CategoryCriteria { CategoryId = categoryId }; await DataPortal.DeleteAsync <Category>(criteria); }
public static async Task <Category> GetByCategoryIdAsync(System.String categoryId) { var criteria = new CategoryCriteria { CategoryId = categoryId }; return(await DataPortal.FetchAsync <Category>(criteria)); }
public static void DeleteCategory(System.String categoryId) { var criteria = new CategoryCriteria { CategoryId = categoryId }; DataPortal.Delete <Category>(criteria); }
/// <summary> /// Returns a <see cref="Category"/> object of the specified criteria. /// </summary> /// <param name="categoryId">No additional detail available.</param> /// <returns>A <see cref="Category"/> object of the specified criteria.</returns> public static Category GetByCategoryId(System.String categoryId) { var criteria = new CategoryCriteria { CategoryId = categoryId }; return(DataPortal.Fetch <Category>(criteria)); }
/// <summary> /// Determines if a record exists in the Category table in the database for the specified criteria. /// </summary> public static async Task <bool> ExistsAsync(CategoryCriteria criteria) { return(await PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.ExecuteAsync(criteria)); }
/// <summary> /// Determines if a record exists in the Category table in the database for the specified criteria. /// </summary> /// <param name="criteria">The criteria parameter is an <see cref="Category"/> object.</param> /// <returns>A boolean value of true is returned if a record is found.</returns> public static bool Exists(CategoryCriteria criteria) { return(PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.Execute(criteria)); }
/// <summary> /// CodeSmith generated stub method that is called when deleting the <see cref="Category"/> object. /// </summary> /// <param name="criteria"><see cref="CategoryCriteria"/> 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(CategoryCriteria criteria, ref bool cancel);
/// <summary> /// CodeSmith generated stub method that is called when fetching the <see cref="Category"/> object. /// </summary> /// <param name="criteria"><see cref="CategoryCriteria"/> 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(CategoryCriteria criteria, ref bool cancel);
public static CategoryList GetByCriteria(CategoryCriteria criteria) { return(DataPortal.Fetch <CategoryList>(criteria)); }
public static async Task <CategoryList> GetByCriteriaAsync(CategoryCriteria criteria) { return(await DataPortal.FetchAsync <CategoryList>(criteria)); }