예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the User EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUser(User user)
 {
     base.AddObject("User", user);
 }
예제 #2
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="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="dateModified">Initial value of the DateModified property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 public static User CreateUser(global::System.Guid id, global::System.String userName, global::System.String firstName, global::System.String lastName, global::System.String email, global::System.DateTime dateCreated, global::System.DateTime dateModified, global::System.Boolean active)
 {
     User user = new User();
     user.Id = id;
     user.UserName = userName;
     user.FirstName = firstName;
     user.LastName = lastName;
     user.Email = email;
     user.DateCreated = dateCreated;
     user.DateModified = dateModified;
     user.Active = active;
     return user;
 }