/// <summary> /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUsers(User user) { base.AddObject("Users", user); }
/// <summary> /// Create a new User object. /// </summary> /// <param name="userId">Initial value of the userId property.</param> /// <param name="email">Initial value of the email property.</param> /// <param name="hashedPAssword">Initial value of the hashedPAssword property.</param> /// <param name="salt">Initial value of the salt property.</param> /// <param name="strkey">Initial value of the strkey property.</param> /// <param name="firstName">Initial value of the firstName property.</param> /// <param name="lastName">Initial value of the lastName property.</param> /// <param name="createdOn">Initial value of the createdOn property.</param> /// <param name="lastActivityAt">Initial value of the lastActivityAt property.</param> /// <param name="lastLoginAt">Initial value of the lastLoginAt property.</param> /// <param name="lastLockoutAt">Initial value of the lastLockoutAt property.</param> /// <param name="lastPasswordChangedAt">Initial value of the lastPasswordChangedAt property.</param> /// <param name="isLockedOut">Initial value of the isLockedOut property.</param> /// <param name="isApproved">Initial value of the isApproved property.</param> /// <param name="receiveEmail">Initial value of the receiveEmail property.</param> /// <param name="isConfirmed">Initial value of the isConfirmed property.</param> /// <param name="passwordQuestion">Initial value of the passwordQuestion property.</param> /// <param name="passwordAnswer">Initial value of the passwordAnswer property.</param> /// <param name="failedPasswordAttemptCount">Initial value of the failedPasswordAttemptCount property.</param> /// <param name="failedPasswordAnswerAttemptCount">Initial value of the failedPasswordAnswerAttemptCount property.</param> public static User CreateUser(global::System.Int32 userId, global::System.String email, global::System.String hashedPAssword, global::System.String salt, global::System.String strkey, global::System.String firstName, global::System.String lastName, global::System.DateTime createdOn, global::System.DateTime lastActivityAt, global::System.DateTime lastLoginAt, global::System.DateTime lastLockoutAt, global::System.DateTime lastPasswordChangedAt, global::System.Boolean isLockedOut, global::System.Boolean isApproved, global::System.Boolean receiveEmail, global::System.Boolean isConfirmed, global::System.String passwordQuestion, global::System.String passwordAnswer, global::System.Int32 failedPasswordAttemptCount, global::System.Int32 failedPasswordAnswerAttemptCount) { User user = new User(); user.userId = userId; user.email = email; user.hashedPAssword = hashedPAssword; user.salt = salt; user.strkey = strkey; user.firstName = firstName; user.lastName = lastName; user.createdOn = createdOn; user.lastActivityAt = lastActivityAt; user.lastLoginAt = lastLoginAt; user.lastLockoutAt = lastLockoutAt; user.lastPasswordChangedAt = lastPasswordChangedAt; user.isLockedOut = isLockedOut; user.isApproved = isApproved; user.receiveEmail = receiveEmail; user.isConfirmed = isConfirmed; user.passwordQuestion = passwordQuestion; user.passwordAnswer = passwordAnswer; user.failedPasswordAttemptCount = failedPasswordAttemptCount; user.failedPasswordAnswerAttemptCount = failedPasswordAnswerAttemptCount; return user; }