// Default contructor that set entity to field public aspnet_MembershipModel(aspnet_Membership aspnet_membership) { this._aspnet___membership = aspnet_membership; this._application_id = aspnet_membership.ApplicationId; this._user_id = aspnet_membership.UserId; this._password = aspnet_membership.Password; this._password_format = aspnet_membership.PasswordFormat; this._password_salt = aspnet_membership.PasswordSalt; this._mobile_pin = aspnet_membership.MobilePIN; this._email = aspnet_membership.Email; this._lowered_email = aspnet_membership.LoweredEmail; this._password_question = aspnet_membership.PasswordQuestion; this._password_answer = aspnet_membership.PasswordAnswer; this._is_approved = aspnet_membership.IsApproved; this._is_locked_out = aspnet_membership.IsLockedOut; this._create_date = aspnet_membership.CreateDate; this._last_login_date = aspnet_membership.LastLoginDate; this._last_password_changed_date = aspnet_membership.LastPasswordChangedDate; this._last_lockout_date = aspnet_membership.LastLockoutDate; this._failed_password_attempt_count = aspnet_membership.FailedPasswordAttemptCount; this._failed_password_attempt_window_start = aspnet_membership.FailedPasswordAttemptWindowStart; this._failed_password_answer_attempt_count = aspnet_membership.FailedPasswordAnswerAttemptCount; this._failed_password_answer_attempt_window_start = aspnet_membership.FailedPasswordAnswerAttemptWindowStart; this._comment = aspnet_membership.Comment; this._originalaspnet_Membership = aspnet_membership.DeepClone(); }
/// <summary> /// Create a new aspnet_Membership object. /// </summary> /// <param name="applicationId">Initial value of the ApplicationId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="passwordFormat">Initial value of the PasswordFormat property.</param> /// <param name="passwordSalt">Initial value of the PasswordSalt property.</param> /// <param name="isApproved">Initial value of the IsApproved property.</param> /// <param name="isLockedOut">Initial value of the IsLockedOut property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="lastLoginDate">Initial value of the LastLoginDate property.</param> /// <param name="lastPasswordChangedDate">Initial value of the LastPasswordChangedDate property.</param> /// <param name="lastLockoutDate">Initial value of the LastLockoutDate property.</param> /// <param name="failedPasswordAttemptCount">Initial value of the FailedPasswordAttemptCount property.</param> /// <param name="failedPasswordAttemptWindowStart">Initial value of the FailedPasswordAttemptWindowStart property.</param> /// <param name="failedPasswordAnswerAttemptCount">Initial value of the FailedPasswordAnswerAttemptCount property.</param> /// <param name="failedPasswordAnswerAttemptWindowStart">Initial value of the FailedPasswordAnswerAttemptWindowStart property.</param> public static aspnet_Membership Createaspnet_Membership(global::System.Guid applicationId, global::System.Guid userId, global::System.String password, global::System.Int32 passwordFormat, global::System.String passwordSalt, global::System.Boolean isApproved, global::System.Boolean isLockedOut, global::System.DateTime createDate, global::System.DateTime lastLoginDate, global::System.DateTime lastPasswordChangedDate, global::System.DateTime lastLockoutDate, global::System.Int32 failedPasswordAttemptCount, global::System.DateTime failedPasswordAttemptWindowStart, global::System.Int32 failedPasswordAnswerAttemptCount, global::System.DateTime failedPasswordAnswerAttemptWindowStart) { aspnet_Membership aspnet_Membership = new aspnet_Membership(); aspnet_Membership.ApplicationId = applicationId; aspnet_Membership.UserId = userId; aspnet_Membership.Password = password; aspnet_Membership.PasswordFormat = passwordFormat; aspnet_Membership.PasswordSalt = passwordSalt; aspnet_Membership.IsApproved = isApproved; aspnet_Membership.IsLockedOut = isLockedOut; aspnet_Membership.CreateDate = createDate; aspnet_Membership.LastLoginDate = lastLoginDate; aspnet_Membership.LastPasswordChangedDate = lastPasswordChangedDate; aspnet_Membership.LastLockoutDate = lastLockoutDate; aspnet_Membership.FailedPasswordAttemptCount = failedPasswordAttemptCount; aspnet_Membership.FailedPasswordAttemptWindowStart = failedPasswordAttemptWindowStart; aspnet_Membership.FailedPasswordAnswerAttemptCount = failedPasswordAnswerAttemptCount; aspnet_Membership.FailedPasswordAnswerAttemptWindowStart = failedPasswordAnswerAttemptWindowStart; return aspnet_Membership; }
/// <summary> /// Deprecated Method for adding a new object to the aspnet_Membership EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToaspnet_Membership(aspnet_Membership aspnet_Membership) { base.AddObject("aspnet_Membership", aspnet_Membership); }
// Default contructor public aspnet_MembershipModel() { this.IsNewItem = true; this._aspnet___membership = new aspnet_Membership(); }
// Delete a existed aspnet_Membership public void Deleteaspnet_Membership(aspnet_Membership _aspnet_Membership) { unitOfWork.Delete<aspnet_Membership>(_aspnet_Membership); }
// Add a new aspnet_Membership public aspnet_Membership Addaspnet_Membership(aspnet_Membership _aspnet_Membership) { unitOfWork.Add<aspnet_Membership>(_aspnet_Membership); return _aspnet_Membership; }
// Update a existed aspnet_Membership public aspnet_Membership Updateaspnet_Membership(aspnet_Membership _aspnet_Membership) { unitOfWork.Update<aspnet_Membership>(_aspnet_Membership); return _aspnet_Membership; }
// Refresh an existed aspnet_Membership public aspnet_Membership Refeshaspnet_Membership(aspnet_Membership _aspnet_Membership) { unitOfWork.Refresh<aspnet_Membership>(_aspnet_Membership); return _aspnet_Membership; }