Пример #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="aspnetUserId">Initial value of the AspnetUserId property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.Guid aspnetUserId)
 {
     User user = new User();
     user.ID = id;
     user.AspnetUserId = aspnetUserId;
     return user;
 }