internal static async Task <Order> GetByOrderIdChildAsync(System.Int32 orderId) { var criteria = new OrderCriteria { OrderId = orderId }; return(await DataPortal.FetchAsync <Order>(criteria)); }
/// <summary> /// Returns a <see cref="Order"/> object of the specified criteria. /// </summary> /// <param name="orderId">No additional detail available.</param> /// <returns>A <see cref="Order"/> object of the specified criteria.</returns> internal static Order GetByOrderIdChild(System.Int32 orderId) { var criteria = new OrderCriteria { OrderId = orderId }; return(DataPortal.Fetch <Order>(criteria)); }
public static async Task DeleteOrderAsync(System.Int32 orderId) { var criteria = new OrderCriteria { OrderId = orderId }; await DataPortal.DeleteAsync <Order>(criteria); }
internal static async Task <OrderList> GetByOrderIdAsync(System.Int32 orderId) { var criteria = new OrderCriteria { OrderId = orderId }; return(await DataPortal.FetchAsync <AsyncChildLoader <OrderList> >(criteria).ContinueWith(t => t.Result.Child)); }
/// <summary> /// Determines if a record exists in the Orders table in the database for the specified criteria. /// </summary> public static async Task <bool> ExistsAsync(OrderCriteria criteria) { return(await PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.ExecuteAsync(criteria)); }
/// <summary> /// Determines if a record exists in the Orders table in the database for the specified criteria. /// </summary> /// <param name="criteria">The criteria parameter is an <see cref="Order"/> object.</param> /// <returns>A boolean value of true is returned if a record is found.</returns> public static bool Exists(OrderCriteria criteria) { return(PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.Execute(criteria)); }
/// <summary> /// CodeSmith generated stub method that is called when fetching the child <see cref="Order"/> object. /// </summary> /// <param name="criteria"><see cref="OrderCriteria"/> 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(OrderCriteria criteria, ref bool cancel);
/// <summary> /// CodeSmith generated stub method that is called when deleting the <see cref="Order"/> object. /// </summary> /// <param name="criteria"><see cref="OrderCriteria"/> 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(OrderCriteria criteria, ref bool cancel);
internal static async Task <OrderList> GetByCriteriaAsync(OrderCriteria criteria) { return(await DataPortal.FetchAsync <AsyncChildLoader <OrderList> >(criteria).ContinueWith(t => t.Result.Child)); }
internal static OrderList GetByCriteria(OrderCriteria criteria) { return(DataPortal.Fetch <OrderList>(criteria)); }