Example #1
0
        /// <summary>
        /// Returns a <see cref="ProfileList"/> object of the specified criteria.
        /// </summary>
        /// <param name="uniqueID">No additional detail available.</param>
        /// <returns>A <see cref="ProfileList"/> object of the specified criteria.</returns>
        public static ProfileList GetByUniqueID(System.Int32 uniqueID)
        {
            var criteria = new ProfileCriteria {
                UniqueID = uniqueID
            };


            return(DataPortal.Fetch <ProfileList>(criteria));
        }
Example #2
0
        public static async Task <ProfileList> GetByUsernameApplicationNameAsync(System.String username, System.String applicationName)
        {
            var criteria = new ProfileCriteria {
                Username = username, ApplicationName = applicationName
            };


            return(await DataPortal.FetchAsync <ProfileList>(criteria));
        }
Example #3
0
        public static async Task <ProfileList> GetByUniqueIDAsync(System.Int32 uniqueID)
        {
            var criteria = new ProfileCriteria {
                UniqueID = uniqueID
            };


            return(await DataPortal.FetchAsync <ProfileList>(criteria));
        }
Example #4
0
 /// <summary>
 /// Determines if a record exists in the Profiles table in the database for the specified criteria.
 /// </summary>
 public static async Task <bool> ExistsAsync(ProfileCriteria criteria)
 {
     return(await PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.ExecuteAsync(criteria));
 }
Example #5
0
 /// <summary>
 /// Determines if a record exists in the Profiles table in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is an <see cref="Profile"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(ProfileCriteria criteria)
 {
     return(PetShop.Tests.ObjF.ParameterizedSQL.ExistsCommand.Execute(criteria));
 }
Example #6
0
 /// <summary>
 /// CodeSmith generated stub method that is called when fetching the child <see cref="Profile"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="ProfileCriteria"/> 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 OnChildFetching(ProfileCriteria criteria, ref bool cancel);
Example #7
0
 /// <summary>
 /// CodeSmith generated stub method that is called when deleting the <see cref="Profile"/> object.
 /// </summary>
 /// <param name="criteria"><see cref="ProfileCriteria"/> 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(ProfileCriteria criteria, ref bool cancel);
Example #8
0
 public static ProfileList GetByCriteria(ProfileCriteria criteria)
 {
     return(DataPortal.Fetch <ProfileList>(criteria));
 }
Example #9
0
 /// <summary>
 /// Determines if a record exists in the Profile in the database for the specified criteria.
 /// </summary>
 /// <param name="criteria">The criteria parameter is a <see cref="ProfileList"/> object.</param>
 /// <returns>A boolean value of true is returned if a record is found.</returns>
 public static bool Exists(ProfileCriteria criteria)
 {
     return(PetShop.Tests.ObjF.ParameterizedSQL.Profile.Exists(criteria));
 }
Example #10
0
 public static async Task <ProfileList> GetByCriteriaAsync(ProfileCriteria criteria)
 {
     return(await DataPortal.FetchAsync <ProfileList>(criteria));
 }