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