Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 7
0
 internal static CartList GetByCriteria(CartCriteria criteria)
 {
     return(DataPortal.Fetch <CartList>(criteria));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
Exemplo n.º 11
0
 internal static async Task <CartList> GetByCriteriaAsync(CartCriteria criteria)
 {
     return(await DataPortal.FetchAsync <AsyncChildLoader <CartList> >(criteria).ContinueWith(t => t.Result.Child));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
Exemplo n.º 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);