Beispiel #1
0
        public static async Task DeleteCategoryAsync(System.String categoryId)
        {
            var criteria = new CategoryCriteria {
                CategoryId = categoryId
            };


            await DataPortal.DeleteAsync <Category>(criteria);
        }
Beispiel #2
0
        public static async Task <Category> GetByCategoryIdAsync(System.String categoryId)
        {
            var criteria = new CategoryCriteria {
                CategoryId = categoryId
            };


            return(await DataPortal.FetchAsync <Category>(criteria));
        }
Beispiel #3
0
        public static void DeleteCategory(System.String categoryId)
        {
            var criteria = new CategoryCriteria {
                CategoryId = categoryId
            };


            DataPortal.Delete <Category>(criteria);
        }
Beispiel #4
0
        /// <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));
        }
Beispiel #5
0
 /// <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));
 }
Beispiel #6
0
 /// <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));
 }
Beispiel #7
0
 /// <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);
Beispiel #8
0
 /// <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);
Beispiel #9
0
 public static CategoryList GetByCriteria(CategoryCriteria criteria)
 {
     return(DataPortal.Fetch <CategoryList>(criteria));
 }
Beispiel #10
0
 public static async Task <CategoryList> GetByCriteriaAsync(CategoryCriteria criteria)
 {
     return(await DataPortal.FetchAsync <CategoryList>(criteria));
 }