/// <summary> /// Create a new Memberships 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="failedPasswordAnswerAttemptWindowsStart">Initial value of the FailedPasswordAnswerAttemptWindowsStart property.</param> public static Memberships CreateMemberships(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 failedPasswordAnswerAttemptWindowsStart) { Memberships memberships = new Memberships(); memberships.ApplicationId = applicationId; memberships.UserId = userId; memberships.Password = password; memberships.PasswordFormat = passwordFormat; memberships.PasswordSalt = passwordSalt; memberships.IsApproved = isApproved; memberships.IsLockedOut = isLockedOut; memberships.CreateDate = createDate; memberships.LastLoginDate = lastLoginDate; memberships.LastPasswordChangedDate = lastPasswordChangedDate; memberships.LastLockoutDate = lastLockoutDate; memberships.FailedPasswordAttemptCount = failedPasswordAttemptCount; memberships.FailedPasswordAttemptWindowStart = failedPasswordAttemptWindowStart; memberships.FailedPasswordAnswerAttemptCount = failedPasswordAnswerAttemptCount; memberships.FailedPasswordAnswerAttemptWindowsStart = failedPasswordAnswerAttemptWindowsStart; return memberships; }
/// <summary> /// Deprecated Method for adding a new object to the Memberships EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMemberships(Memberships memberships) { base.AddObject("Memberships", memberships); }