Пример #1
0
 /// <summary>
 /// Create a new User 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="emailID">Initial value of the EmailID property.</param>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 public static User CreateUser(global::System.Int16 userID, global::System.String userName, global::System.String password, global::System.String emailID, global::System.Int16 roleID)
 {
     User user = new User();
     user.UserID = userID;
     user.UserName = userName;
     user.Password = password;
     user.EmailID = emailID;
     user.RoleID = roleID;
     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);
 }