/// <summary> /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUsers(User user) { base.AddObject("Users", user); }
/// <summary> /// Create a new User object. /// </summary> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="registrationDate">Initial value of the RegistrationDate property.</param> /// <param name="lastLoginDate">Initial value of the LastLoginDate property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static User CreateUser(global::System.Guid userID, global::System.String password, global::System.String email, global::System.DateTime registrationDate, global::System.DateTime lastLoginDate, global::System.Boolean isDeleted) { User user = new User(); user.UserID = userID; user.Password = password; user.Email = email; user.RegistrationDate = registrationDate; user.LastLoginDate = lastLoginDate; user.IsDeleted = isDeleted; return user; }