/// <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="id">Initial value of the Id property.</param> /// <param name="userName">Initial value of the userName property.</param> /// <param name="password">Initial value of the password property.</param> /// <param name="firstName">Initial value of the firstName property.</param> /// <param name="lastName">Initial value of the lastName property.</param> /// <param name="role">Initial value of the role property.</param> /// <param name="email">Initial value of the email property.</param> public static User CreateUser(global::System.Int32 id, global::System.String userName, global::System.String password, global::System.String firstName, global::System.String lastName, global::System.Int32 role, global::System.String email) { User user = new User(); user.Id = id; user.userName = userName; user.password = password; user.firstName = firstName; user.lastName = lastName; user.role = role; user.email = email; return user; }