Пример #1
0
        /// <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));
        }
Пример #2
0
        internal static async Task <Order> GetByOrderIdChildAsync(System.Int32 orderId)
        {
            var criteria = new OrderCriteria {
                OrderId = orderId
            };


            return(await DataPortal.FetchAsync <Order>(criteria));
        }
Пример #3
0
        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));
        }
Пример #5
0
 /// <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.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria));
 }
Пример #6
0
 /// <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.ParameterizedSQL.ExistsCommand.Execute(criteria));
 }
Пример #7
0
 /// <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);
Пример #8
0
 /// <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));
 }
 /// <summary>
 /// Determines if a record exists in the Order in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is a <see cref="OrderList"/> 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.ParameterizedSQL.Order.Exists(criteria));
 }