Exemple #1
0
        public static async Task <OrderStatus> GetByOrderIdAsync(System.Int32 orderId)
        {
            var criteria = new OrderStatusCriteria {
                OrderId = orderId
            };


            return(await DataPortal.FetchAsync <OrderStatus>(criteria));
        }
Exemple #2
0
        public static async Task DeleteOrderStatusAsync(System.Int32 orderId, System.Int32 lineNum)
        {
            var criteria = new OrderStatusCriteria {
                OrderId = orderId, LineNum = lineNum
            };


            await DataPortal.DeleteAsync <OrderStatus>(criteria);
        }
Exemple #3
0
        /// <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));
        }
Exemple #4
0
        public static void DeleteOrderStatus(System.Int32 orderId, System.Int32 lineNum)
        {
            var criteria = new OrderStatusCriteria {
                OrderId = orderId, LineNum = lineNum
            };


            DataPortal.Delete <OrderStatus>(criteria);
        }
Exemple #5
0
        /// <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));
        }
Exemple #6
0
        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));
        }
Exemple #7
0
        /// <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));
        }
Exemple #8
0
 /// <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));
 }
Exemple #9
0
 /// <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));
 }
Exemple #10
0
 /// <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);
Exemple #11
0
 /// <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);
Exemple #12
0
 internal static OrderStatusList GetByCriteria(OrderStatusCriteria criteria)
 {
     return(DataPortal.Fetch <OrderStatusList>(criteria));
 }
Exemple #13
0
 internal static async Task <OrderStatusList> GetByCriteriaAsync(OrderStatusCriteria criteria)
 {
     return(await DataPortal.FetchAsync <AsyncChildLoader <OrderStatusList> >(criteria).ContinueWith(t => t.Result.Child));
 }