Пример #1
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="claimedIdentifier">Initial value of the ClaimedIdentifier property.</param>
 /// <param name="isAdmin">Initial value of the IsAdmin property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.String claimedIdentifier, global::System.Boolean isAdmin)
 {
     User user = new User();
     user.ID = id;
     user.ClaimedIdentifier = claimedIdentifier;
     user.IsAdmin = isAdmin;
     return user;
 }
Пример #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);
 }