/// <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="email">Initial value of the email property.</param> /// <param name="password">Initial value of the password property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="reputation">Initial value of the reputation property.</param> /// <param name="location_id">Initial value of the location_id property.</param> /// <param name="isFlagged">Initial value of the isFlagged property.</param> /// <param name="isDisabled">Initial value of the isDisabled property.</param> /// <param name="isAdmin">Initial value of the isAdmin property.</param> /// <param name="isDeleted">Initial value of the isDeleted property.</param> public static User CreateUser(global::System.Int32 id, global::System.String email, global::System.String password, global::System.String name, global::System.Int32 reputation, global::System.Int32 location_id, global::System.Boolean isFlagged, global::System.Boolean isDisabled, global::System.Boolean isAdmin, global::System.Boolean isDeleted) { User user = new User(); user.id = id; user.email = email; user.password = password; user.name = name; user.reputation = reputation; user.location_id = location_id; user.isFlagged = isFlagged; user.isDisabled = isDisabled; user.isAdmin = isAdmin; user.isDeleted = isDeleted; return user; }