Esempio n. 1
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="loginName">Initial value of the LoginName property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="emailAddress">Initial value of the EmailAddress property.</param>
 public static User CreateUser(global::System.Guid id, global::System.String loginName, global::System.String name, global::System.String emailAddress)
 {
     User user = new User();
     user.ID = id;
     user.LoginName = loginName;
     user.Name = name;
     user.EmailAddress = emailAddress;
     return user;
 }
Esempio n. 2
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);
 }