/// <summary>
        /// Returns a <see cref="AccountList"/> object of the specified criteria.
        /// </summary>
        /// <param name="accountId">No additional detail available.</param>
        /// <returns>A <see cref="AccountList"/> object of the specified criteria.</returns>
        internal static AccountList GetByAccountId(System.Int32 accountId)
        {
            var criteria = new AccountCriteria {
                AccountId = accountId
            };


            return(DataPortal.Fetch <AccountList>(criteria));
        }
        internal static async Task <AccountList> GetByAccountIdAsync(System.Int32 accountId)
        {
            var criteria = new AccountCriteria {
                AccountId = accountId
            };


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


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


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