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