Exemple #1
0
        /// <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));
        }
Exemple #2
0
        /// <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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        /// <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));
        }
Exemple #5
0
        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));
        }
Exemple #6
0
        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));
        }
Exemple #7
0
 internal static CartList GetByCriteria(CartCriteria criteria)
 {
     return(DataPortal.Fetch <CartList>(criteria));
 }
Exemple #8
0
 /// <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.StoredProcedures.ExistsCommand.ExecuteAsync(criteria));
 }
Exemple #9
0
 /// <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.StoredProcedures.Cart.Exists(criteria));
 }
Exemple #10
0
 /// <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);
Exemple #11
0
 internal static async Task <CartList> GetByCriteriaAsync(CartCriteria criteria)
 {
     return(await DataPortal.FetchAsync <AsyncChildLoader <CartList> >(criteria).ContinueWith(t => t.Result.Child));
 }
Exemple #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.StoredProcedures.ExistsCommand.Execute(criteria));
 }
Exemple #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);
Exemple #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);