Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="userID">Initial value of the userID property.</param>
 /// <param name="roleID">Initial value of the roleID property.</param>
 /// <param name="login">Initial value of the login property.</param>
 /// <param name="fullname">Initial value of the fullname property.</param>
 /// <param name="password">Initial value of the password property.</param>
 public static User CreateUser(global::System.Int32 userID, global::System.Int32 roleID, global::System.String login, global::System.String fullname, global::System.String password)
 {
     User user = new User();
     user.userID = userID;
     user.roleID = roleID;
     user.login = login;
     user.fullname = fullname;
     user.password = password;
     return user;
 }