Example #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);
 }
Example #2
0
 public User Create(User user)
 {
     ausv1Context.Users.AddObject(user);
     ausv1Context.SaveChanges();
     return user;
 }
Example #3
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="idUser">Initial value of the idUser property.</param>
 /// <param name="identification">Initial value of the Identification property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 /// <param name="insDateTime">Initial value of the InsDateTime property.</param>
 /// <param name="updDateTime">Initial value of the UpdDateTime property.</param>
 public static User CreateUser(global::System.Int32 idUser, global::System.String identification, global::System.Boolean active, global::System.DateTimeOffset insDateTime, global::System.DateTimeOffset updDateTime)
 {
     User user = new User();
     user.idUser = idUser;
     user.Identification = identification;
     user.Active = active;
     user.InsDateTime = insDateTime;
     user.UpdDateTime = updDateTime;
     return user;
 }