public static async Task DeleteItemAsync(System.String itemId) { var criteria = new ItemCriteria { ItemId = itemId }; await DataPortal.DeleteAsync <Item>(criteria); }
/// <summary> /// Returns a <see cref="Item"/> object of the specified criteria. /// </summary> /// <param name="itemId">No additional detail available.</param> /// <returns>A <see cref="Item"/> object of the specified criteria.</returns> internal static Item GetByItemIdChild(System.String itemId) { var criteria = new ItemCriteria { ItemId = itemId }; return(DataPortal.Fetch <Item>(criteria)); }
internal static async Task <ItemList> GetByProductIdAsync(System.String productId) { var criteria = new ItemCriteria { ProductId = productId }; return(await DataPortal.FetchAsync <AsyncChildLoader <ItemList> >(criteria).ContinueWith(t => t.Result.Child)); }
internal static async Task <Item> GetByProductIdChildAsync(System.String productId) { var criteria = new ItemCriteria { ProductId = productId }; return(await DataPortal.FetchAsync <Item>(criteria)); }
/// <summary> /// Returns a <see cref="Item"/> object of the specified criteria. /// </summary> /// <param name="productId">No additional detail available.</param> /// <returns>A <see cref="Item"/> object of the specified criteria.</returns> internal static Item GetByProductIdChild(System.String productId) { var criteria = new ItemCriteria { ProductId = productId }; return(DataPortal.Fetch <Item>(criteria)); }
public static async Task <Item> GetByItemIdAsync(System.String itemId) { var criteria = new ItemCriteria { ItemId = itemId }; return(await DataPortal.FetchAsync <Item>(criteria)); }
internal static async Task <Item> GetBySupplierChildAsync(System.Int32?supplier) { var criteria = new ItemCriteria { }; if (supplier.HasValue) { criteria.Supplier = supplier.Value; } return(await DataPortal.FetchAsync <Item>(criteria)); }
/// <summary> /// Returns a <see cref="Item"/> object of the specified criteria. /// </summary> /// <param name="supplier">No additional detail available.</param> /// <returns>A <see cref="Item"/> object of the specified criteria.</returns> internal static Item GetBySupplierChild(System.Int32?supplier) { var criteria = new ItemCriteria { }; if (supplier.HasValue) { criteria.Supplier = supplier.Value; } return(DataPortal.Fetch <Item>(criteria)); }
internal static async Task <ItemList> GetBySupplierAsync(System.Int32?supplier) { var criteria = new ItemCriteria { }; if (supplier.HasValue) { criteria.Supplier = supplier.Value; } return(await DataPortal.FetchAsync <AsyncChildLoader <ItemList> >(criteria).ContinueWith(t => t.Result.Child)); }
internal static async Task <Item> GetByProductIdItemIdListPriceNameChildAsync(System.String productId, System.String itemId, System.Decimal?listPrice, System.String name) { var criteria = new ItemCriteria { ProductId = productId, ItemId = itemId, Name = name }; if (listPrice.HasValue) { criteria.ListPrice = listPrice.Value; } return(await DataPortal.FetchAsync <Item>(criteria)); }
/// <summary> /// Returns a <see cref="Item"/> object of the specified criteria. /// </summary> /// <param name="productId">No additional detail available.</param> /// <param name="itemId">No additional detail available.</param> /// <param name="listPrice">No additional detail available.</param> /// <param name="name">No additional detail available.</param> /// <returns>A <see cref="Item"/> object of the specified criteria.</returns> public static Item GetByProductIdItemIdListPriceName(System.String productId, System.String itemId, System.Decimal?listPrice, System.String name) { var criteria = new ItemCriteria { ProductId = productId, ItemId = itemId, Name = name }; if (listPrice.HasValue) { criteria.ListPrice = listPrice.Value; } return(DataPortal.Fetch <Item>(criteria)); }
internal static async Task <ItemList> GetByProductIdItemIdListPriceNameAsync(System.String productId, System.String itemId, System.Decimal?listPrice, System.String name) { var criteria = new ItemCriteria { ProductId = productId, ItemId = itemId, Name = name }; if (listPrice.HasValue) { criteria.ListPrice = listPrice.Value; } return(await DataPortal.FetchAsync <AsyncChildLoader <ItemList> >(criteria).ContinueWith(t => t.Result.Child)); }
/// <summary> /// CodeSmith generated stub method that is called when fetching the child <see cref="Item"/> object. /// </summary> /// <param name="criteria"><see cref="ItemCriteria"/> 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 OnChildFetching(ItemCriteria criteria, ref bool cancel);
/// <summary> /// CodeSmith generated stub method that is called when deleting the <see cref="Item"/> object. /// </summary> /// <param name="criteria"><see cref="ItemCriteria"/> 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(ItemCriteria criteria, ref bool cancel);
/// <summary> /// Determines if a record exists in the Item table in the database for the specified criteria. /// </summary> /// <param name="criteria">The criteria parameter is an <see cref="Item"/> object.</param> /// <returns>A boolean value of true is returned if a record is found.</returns> public static bool Exists(ItemCriteria criteria) { return(PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.Execute(criteria)); }
/// <summary> /// Determines if a record exists in the Item in the database for the specified criteria. /// </summary> /// <param name="criteria">The criteria parameter is a <see cref="ItemList"/> object.</param> /// <returns>A boolean value of true is returned if a record is found.</returns> public static bool Exists(ItemCriteria criteria) { return(PetShop.Tests.ObjF.StoredProcedures.Item.Exists(criteria)); }
internal static async Task <ItemList> GetByCriteriaAsync(ItemCriteria criteria) { return(await DataPortal.FetchAsync <AsyncChildLoader <ItemList> >(criteria).ContinueWith(t => t.Result.Child)); }
/// <summary> /// Determines if a record exists in the Item table in the database for the specified criteria. /// </summary> public static async Task <bool> ExistsAsync(ItemCriteria criteria) { return(await PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.ExecuteAsync(criteria)); }
internal static ItemList GetByCriteria(ItemCriteria criteria) { return(DataPortal.Fetch <ItemList>(criteria)); }