Esempio n. 1
0
        public static async Task <Category> GetByCategoryIdAsync(System.String categoryId)
        {
            var criteria = new CategoryCriteria {
                CategoryId = categoryId
            };


            return(await DataPortal.FetchAsync <Category>(criteria));
        }
Esempio n. 2
0
        public static async Task DeleteCategoryAsync(System.String categoryId)
        {
            var criteria = new CategoryCriteria {
                CategoryId = categoryId
            };


            await DataPortal.DeleteAsync <Category>(criteria);
        }
Esempio n. 3
0
        public static void DeleteCategory(System.String categoryId)
        {
            var criteria = new CategoryCriteria {
                CategoryId = categoryId
            };


            DataPortal.Delete <Category>(criteria);
        }
Esempio n. 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));
        }
Esempio n. 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.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria));
 }
Esempio n. 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.ParameterizedSQL.ExistsCommand.Execute(criteria));
 }
Esempio n. 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);
Esempio n. 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);
 public static CategoryList GetByCriteria(CategoryCriteria criteria)
 {
     return(DataPortal.Fetch <CategoryList>(criteria));
 }
 /// <summary>
 /// Determines if a record exists in the Category in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is a <see cref="CategoryList"/> 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.ParameterizedSQL.Category.Exists(criteria));
 }
 public static async Task <CategoryList> GetByCriteriaAsync(CategoryCriteria criteria)
 {
     return(await DataPortal.FetchAsync <CategoryList>(criteria));
 }