Esempio n. 1
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdByUserId">Initial value of the CreatedByUserId property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="modifiedByUserId">Initial value of the ModifiedByUserId property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static User CreateUser(global::System.Int64 id, global::System.String userName, global::System.String firstName, global::System.String lastName, global::System.String email, global::System.Decimal rowVersion, global::System.String createdBy, global::System.Int64 createdByUserId, global::System.DateTime createdDate, global::System.String modifiedBy, global::System.Int64 modifiedByUserId, global::System.DateTime modifiedDate)
 {
     User user = new User();
     user.Id = id;
     user.UserName = userName;
     user.FirstName = firstName;
     user.LastName = lastName;
     user.Email = email;
     user.RowVersion = rowVersion;
     user.CreatedBy = createdBy;
     user.CreatedByUserId = createdByUserId;
     user.CreatedDate = createdDate;
     user.ModifiedBy = modifiedBy;
     user.ModifiedByUserId = modifiedByUserId;
     user.ModifiedDate = modifiedDate;
     return user;
 }
Esempio n. 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);
 }