/// <summary>
        /// Returns a <see cref="Inventory"/> object of the specified criteria.
        /// </summary>
        /// <param name="itemId">No additional detail available.</param>
        /// <returns>A <see cref="Inventory"/> object of the specified criteria.</returns>
        public static Inventory GetByItemId(System.String itemId)
        {
            var criteria = new InventoryCriteria {
                ItemId = itemId
            };


            return(DataPortal.Fetch <Inventory>(criteria));
        }
        public static async Task DeleteInventoryAsync(System.String itemId)
        {
            var criteria = new InventoryCriteria {
                ItemId = itemId
            };


            await DataPortal.DeleteAsync <Inventory>(criteria);
        }
        public static async Task <Inventory> GetByItemIdAsync(System.String itemId)
        {
            var criteria = new InventoryCriteria {
                ItemId = itemId
            };


            return(await DataPortal.FetchAsync <Inventory>(criteria));
        }
        public static void DeleteInventory(System.String itemId)
        {
            var criteria = new InventoryCriteria {
                ItemId = itemId
            };


            DataPortal.Delete <Inventory>(criteria);
        }
 /// <summary>
 /// Determines if a record exists in the Inventory table in the database for the specified criteria.
 /// </summary>
 public static async Task <bool> ExistsAsync(InventoryCriteria criteria)
 {
     return(await PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.ExecuteAsync(criteria));
 }
 /// <summary>
 /// Determines if a record exists in the Inventory table in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is an <see cref="Inventory"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(InventoryCriteria criteria)
 {
     return(PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.Execute(criteria));
 }
 /// <summary>
 /// CodeSmith generated stub method that is called when deleting the <see cref="Inventory"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="InventoryCriteria"/> 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(InventoryCriteria criteria, ref bool cancel);
 /// <summary>
 /// CodeSmith generated stub method that is called when fetching the <see cref="Inventory"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="InventoryCriteria"/> 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(InventoryCriteria criteria, ref bool cancel);