Exemple #1
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);
 }
Exemple #2
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="passwordHash">Initial value of the PasswordHash property.</param>
 /// <param name="passwordSalt">Initial value of the PasswordSalt property.</param>
 /// <param name="isApproved">Initial value of the IsApproved property.</param>
 /// <param name="lastActivityDate">Initial value of the LastActivityDate property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.String email, global::System.DateTime createdDate, global::System.DateTime modifiedDate, global::System.Byte[] rowVersion, global::System.String passwordHash, global::System.String passwordSalt, global::System.Boolean isApproved, global::System.DateTime lastActivityDate)
 {
     User user = new User();
     user.Id = id;
     user.Email = email;
     user.CreatedDate = createdDate;
     user.ModifiedDate = modifiedDate;
     user.RowVersion = rowVersion;
     user.PasswordHash = passwordHash;
     user.PasswordSalt = passwordSalt;
     user.IsApproved = isApproved;
     user.LastActivityDate = lastActivityDate;
     return user;
 }