/// <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);
 }
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userEmail">Initial value of the UserEmail property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 /// <param name="userType_Id">Initial value of the UserType_Id property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.String userEmail, global::System.String userName, global::System.String password, global::System.Int32 customerId, global::System.Int32 userType_Id)
 {
     User user = new User();
     user.Id = id;
     user.UserEmail = userEmail;
     user.UserName = userName;
     user.Password = password;
     user.CustomerId = customerId;
     user.UserType_Id = userType_Id;
     return user;
 }
 public void DeleteUser(User user)
 {
     _repository.Delete<User>(user);
 }
 public void EditUser(User user)
 {
     _repository.Edit<User>(user);
 }
 public void CreateUser(User user, bool transaction)
 {
     _repository.Create<User>(user);
 }