/// <summary>
 /// Deprecated Method for adding a new object to the User EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUser(User user)
 {
     base.AddObject("User", user);
 }
Beispiel #2
0
 public void CreateUser(User source)
 {
     context.User.AddObject(source);
 }
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.Int32 roleID, global::System.String firstName, global::System.String userName, global::System.String password, global::System.DateTime createdDate)
 {
     User user = new User();
     user.ID = id;
     user.RoleID = roleID;
     user.FirstName = firstName;
     user.UserName = userName;
     user.Password = password;
     user.CreatedDate = createdDate;
     return user;
 }