Example #1
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="passwordHash">Initial value of the PasswordHash property.</param>
 /// <param name="passwordSalt">Initial value of the PasswordSalt property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="enabled">Initial value of the Enabled property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="dateLastPasswordChange">Initial value of the DateLastPasswordChange property.</param>
 public static User CreateUser(global::System.Int32 userId, global::System.String userName, global::System.String passwordHash, global::System.String passwordSalt, global::System.String email, global::System.Boolean enabled, global::System.DateTime dateCreated, global::System.DateTime dateLastPasswordChange)
 {
     User user = new User();
     user.UserId = userId;
     user.UserName = userName;
     user.PasswordHash = passwordHash;
     user.PasswordSalt = passwordSalt;
     user.Email = email;
     user.Enabled = enabled;
     user.DateCreated = dateCreated;
     user.DateLastPasswordChange = dateLastPasswordChange;
     return user;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUsers(User user)
 {
     base.AddObject("Users", user);
 }