/// <summary>
        /// Returns a <see cref="CartList"/> object of the specified criteria.
        /// </summary>
        /// <param name="uniqueID">No additional detail available.</param>
        /// <returns>A <see cref="CartList"/> object of the specified criteria.</returns>
        internal static CartList GetByUniqueID(System.Int32 uniqueID)
        {
            var criteria = new CartCriteria {
                UniqueID = uniqueID
            };


            return(DataPortal.Fetch <CartList>(criteria));
        }
        /// <summary>
        /// Returns a <see cref="CartList"/> object of the specified criteria.
        /// </summary>
        /// <param name="isShoppingCart">No additional detail available.</param>
        /// <returns>A <see cref="CartList"/> object of the specified criteria.</returns>
        internal static CartList GetByIsShoppingCart(System.Boolean isShoppingCart)
        {
            var criteria = new CartCriteria {
                IsShoppingCart = isShoppingCart
            };


            return(DataPortal.Fetch <CartList>(criteria));
        }
        internal static async Task <CartList> GetByIsShoppingCartAsync(System.Boolean isShoppingCart)
        {
            var criteria = new CartCriteria {
                IsShoppingCart = isShoppingCart
            };


            return(await DataPortal.FetchAsync <AsyncChildLoader <CartList> >(criteria).ContinueWith(t => t.Result.Child));
        }
        /// <summary>
        /// Returns a <see cref="CartList"/> object of the specified criteria.
        /// </summary>
        /// <param name="cartId">No additional detail available.</param>
        /// <returns>A <see cref="CartList"/> object of the specified criteria.</returns>
        internal static CartList GetByCartId(System.Int32 cartId)
        {
            var criteria = new CartCriteria {
                CartId = cartId
            };


            return(DataPortal.Fetch <CartList>(criteria));
        }
        internal static async Task <CartList> GetByUniqueIDAsync(System.Int32 uniqueID)
        {
            var criteria = new CartCriteria {
                UniqueID = uniqueID
            };


            return(await DataPortal.FetchAsync <AsyncChildLoader <CartList> >(criteria).ContinueWith(t => t.Result.Child));
        }
        internal static async Task <CartList> GetByCartIdAsync(System.Int32 cartId)
        {
            var criteria = new CartCriteria {
                CartId = cartId
            };


            return(await DataPortal.FetchAsync <AsyncChildLoader <CartList> >(criteria).ContinueWith(t => t.Result.Child));
        }
 internal static CartList GetByCriteria(CartCriteria criteria)
 {
     return(DataPortal.Fetch <CartList>(criteria));
 }
 /// <summary>
 /// Determines if a record exists in the Cart in the database for the specified criteria.
 /// </summary>
 public static async Task <bool> ExistsAsync(CartCriteria criteria)
 {
     return(await PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria));
 }
 /// <summary>
 /// Determines if a record exists in the Cart in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is a <see cref="CartList"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(CartCriteria criteria)
 {
     return(PetShop.Tests.ObjF.ParameterizedSQL.Cart.Exists(criteria));
 }
 /// <summary>
 /// CodeSmith generated stub method that is called when fetching the child <see cref="Cart"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="CartCriteria"/> 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(CartCriteria criteria, ref bool cancel);
 internal static async Task <CartList> GetByCriteriaAsync(CartCriteria criteria)
 {
     return(await DataPortal.FetchAsync <AsyncChildLoader <CartList> >(criteria).ContinueWith(t => t.Result.Child));
 }
Example #12
0
 /// <summary>
 /// Determines if a record exists in the Cart table in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is an <see cref="Cart"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(CartCriteria criteria)
 {
     return(PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.Execute(criteria));
 }
Example #13
0
 /// <summary>
 /// CodeSmith generated stub method that is called when deleting the child <see cref="Cart"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="CartCriteria"/> object containing the criteria of the object to delete.</param>
 /// <param name="connection"></param>
 /// <param name="cancel">Value returned from the method indicating whether the object deletion should proceed.</param>
 partial void OnDeleting(CartCriteria criteria, SqlConnection connection, ref bool cancel);
Example #14
0
 /// <summary>
 /// CodeSmith generated stub method that is called when deleting the child <see cref="Cart"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="CartCriteria"/> 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(CartCriteria criteria, ref bool cancel);