예제 #1
0
        /// <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));
        }
예제 #2
0
        public static async Task DeleteInventoryAsync(System.String itemId)
        {
            var criteria = new InventoryCriteria {
                ItemId = itemId
            };


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


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


            DataPortal.Delete <Inventory>(criteria);
        }
예제 #5
0
 /// <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.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria));
 }
예제 #6
0
 /// <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.ParameterizedSQL.ExistsCommand.Execute(criteria));
 }
예제 #7
0
 /// <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);
예제 #8
0
 /// <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);