Ejemplo n.º 1
0
        /// <summary>
        /// Returns a <see cref="LineItemList"/> object of the specified criteria.
        /// </summary>
        /// <param name="orderId">No additional detail available.</param>
        /// <returns>A <see cref="LineItemList"/> object of the specified criteria.</returns>
        public static LineItemList GetByOrderId(System.Int32 orderId)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId
            };


            return(DataPortal.Fetch <LineItemList>(criteria));
        }
Ejemplo n.º 2
0
        public static async Task <LineItemList> GetByOrderIdAsync(System.Int32 orderId)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId
            };


            return(await DataPortal.FetchAsync <LineItemList>(criteria));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns a <see cref="LineItemList"/> 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="LineItemList"/> object of the specified criteria.</returns>
        public static LineItemList GetByOrderIdLineNum(System.Int32 orderId, System.Int32 lineNum)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId, LineNum = lineNum
            };


            return(DataPortal.Fetch <LineItemList>(criteria));
        }
Ejemplo n.º 4
0
        internal static async Task <LineItem> GetByOrderIdChildAsync(System.Int32 orderId)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId
            };


            return(await DataPortal.FetchAsync <LineItem>(criteria));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Returns a <see cref="LineItem"/> object of the specified criteria.
        /// </summary>
        /// <param name="orderId">No additional detail available.</param>
        /// <returns>A <see cref="LineItem"/> object of the specified criteria.</returns>
        internal static LineItem GetByOrderIdChild(System.Int32 orderId)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId
            };


            return(DataPortal.Fetch <LineItem>(criteria));
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Returns a <see cref="LineItem"/> 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="LineItem"/> object of the specified criteria.</returns>
        internal static LineItem GetByOrderIdLineNumChild(System.Int32 orderId, System.Int32 lineNum)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId, LineNum = lineNum
            };


            return(DataPortal.Fetch <LineItem>(criteria));
        }
Ejemplo n.º 7
0
        public static async Task DeleteLineItemAsync(System.Int32 orderId, System.Int32 lineNum)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId, LineNum = lineNum
            };


            await DataPortal.DeleteAsync <LineItem>(criteria);
        }
Ejemplo n.º 8
0
        public static async Task <LineItem> GetByOrderIdLineNumAsync(System.Int32 orderId, System.Int32 lineNum)
        {
            var criteria = new LineItemCriteria {
                OrderId = orderId, LineNum = lineNum
            };


            return(await DataPortal.FetchAsync <LineItem>(criteria));
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Determines if a record exists in the LineItem in the database for the specified criteria.
 /// </summary>
 public static async Task <bool> ExistsAsync(LineItemCriteria criteria)
 {
     return(await PetShop.Tests.ObjF.StoredProcedures.ExistsCommand.ExecuteAsync(criteria));
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Determines if a record exists in the LineItem in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is a <see cref="LineItemList"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(LineItemCriteria criteria)
 {
     return(PetShop.Tests.ObjF.StoredProcedures.LineItem.Exists(criteria));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// CodeSmith generated stub method that is called when fetching the child <see cref="LineItem"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="LineItemCriteria"/> 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(LineItemCriteria criteria, ref bool cancel);
Ejemplo n.º 12
0
 public static async Task <LineItemList> GetByCriteriaAsync(LineItemCriteria criteria)
 {
     return(await DataPortal.FetchAsync <LineItemList>(criteria));
 }
Ejemplo n.º 13
0
 public static LineItemList GetByCriteria(LineItemCriteria criteria)
 {
     return(DataPortal.Fetch <LineItemList>(criteria));
 }
Ejemplo n.º 14
0
 /// <summary>
 /// CodeSmith generated stub method that is called when deleting the <see cref="LineItem"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="LineItemCriteria"/> 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(LineItemCriteria criteria, ref bool cancel);