Exemple #1
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="isBanned">Initial value of the IsBanned property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.String email, global::System.Boolean isBanned)
 {
     User user = new User();
     user.ID = id;
     user.Email = email;
     user.IsBanned = isBanned;
     return user;
 }
Exemple #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);
 }