Пример #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);
 }
Пример #2
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="role">Initial value of the Role property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="middleName">Initial value of the MiddleName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="designation">Initial value of the Designation property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static User CreateUser(global::System.Int32 userID, global::System.String userName, global::System.String password, global::System.String role, global::System.String firstName, global::System.String middleName, global::System.String lastName, global::System.String designation, global::System.DateTime createdDate)
 {
     User user = new User();
     user.UserID = userID;
     user.UserName = userName;
     user.Password = password;
     user.Role = role;
     user.FirstName = firstName;
     user.MiddleName = middleName;
     user.LastName = lastName;
     user.Designation = designation;
     user.CreatedDate = createdDate;
     return user;
 }