Пример #1
0
 /// <summary>
 /// Create a new Users object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="role">Initial value of the Role property.</param>
 public static Users CreateUsers(global::System.Int32 userId, global::System.String userName, global::System.String password, global::System.String role)
 {
     Users users = new Users();
     users.UserId = userId;
     users.UserName = userName;
     users.Password = password;
     users.Role = role;
     return users;
 }
Пример #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(Users users)
 {
     base.AddObject("Users", users);
 }