internal static async Task <SupplierList> GetBySuppIdAsync(System.Int32 suppId)
        {
            var criteria = new SupplierCriteria {
                SuppId = suppId
            };


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


            return(DataPortal.Fetch <SupplierList>(criteria));
        }
Beispiel #3
0
        public static async Task DeleteSupplierAsync(System.Int32 suppId)
        {
            var criteria = new SupplierCriteria {
                SuppId = suppId
            };


            await DataPortal.DeleteAsync <Supplier>(criteria);
        }
Beispiel #4
0
        public static async Task <Supplier> GetBySuppIdAsync(System.Int32 suppId)
        {
            var criteria = new SupplierCriteria {
                SuppId = suppId
            };


            return(await DataPortal.FetchAsync <Supplier>(criteria));
        }
Beispiel #5
0
        public static void DeleteSupplier(System.Int32 suppId)
        {
            var criteria = new SupplierCriteria {
                SuppId = suppId
            };


            DataPortal.Delete <Supplier>(criteria);
        }
Beispiel #6
0
        /// <summary>
        /// Returns a <see cref="Supplier"/> object of the specified criteria.
        /// </summary>
        /// <param name="suppId">No additional detail available.</param>
        /// <returns>A <see cref="Supplier"/> object of the specified criteria.</returns>
        public static Supplier GetBySuppId(System.Int32 suppId)
        {
            var criteria = new SupplierCriteria {
                SuppId = suppId
            };


            return(DataPortal.Fetch <Supplier>(criteria));
        }
 internal static async Task <SupplierList> GetByCriteriaAsync(SupplierCriteria criteria)
 {
     return(await DataPortal.FetchAsync <AsyncChildLoader <SupplierList> >(criteria).ContinueWith(t => t.Result.Child));
 }
 internal static SupplierList GetByCriteria(SupplierCriteria criteria)
 {
     return(DataPortal.Fetch <SupplierList>(criteria));
 }
 /// <summary>
 /// Determines if a record exists in the Supplier in the database for the specified criteria.
 /// </summary>
 public static async Task <bool> ExistsAsync(SupplierCriteria criteria)
 {
     return(await PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria));
 }
 /// <summary>
 /// Determines if a record exists in the Supplier in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is a <see cref="SupplierList"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(SupplierCriteria criteria)
 {
     return(PetShop.Tests.ObjF.ParameterizedSQL.Supplier.Exists(criteria));
 }
 /// <summary>
 /// CodeSmith generated stub method that is called when fetching the child <see cref="Supplier"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="SupplierCriteria"/> 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(SupplierCriteria criteria, ref bool cancel);
Beispiel #12
0
 /// <summary>
 /// Determines if a record exists in the Supplier table in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is an <see cref="Supplier"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(SupplierCriteria criteria)
 {
     return(PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.Execute(criteria));
 }
Beispiel #13
0
 /// <summary>
 /// CodeSmith generated stub method that is called when deleting the <see cref="Supplier"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="SupplierCriteria"/> 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(SupplierCriteria criteria, ref bool cancel);