示例#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="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="zip">Initial value of the Zip property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="isAdmin">Initial value of the IsAdmin property.</param>
 /// <param name="active_Fl">Initial value of the Active_Fl property.</param>
 public static User CreateUser(global::System.Int32 userID, global::System.String firstName, global::System.String lastName, global::System.String email, global::System.String password, global::System.DateTime createDate, global::System.String address, global::System.String city, global::System.String zip, global::System.String state, global::System.Boolean isAdmin, global::System.Boolean active_Fl)
 {
     User user = new User();
     user.UserID = userID;
     user.FirstName = firstName;
     user.LastName = lastName;
     user.Email = email;
     user.Password = password;
     user.CreateDate = createDate;
     user.Address = address;
     user.City = city;
     user.Zip = zip;
     user.State = state;
     user.IsAdmin = isAdmin;
     user.Active_Fl = active_Fl;
     return user;
 }