コード例 #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.StoredProcedures.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.StoredProcedures.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);