/// <summary> /// Create a new User object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="login">Initial value of the Login property.</param> /// <param name="fIO">Initial value of the FIO property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="birthday">Initial value of the Birthday property.</param> /// <param name="isAllow">Initial value of the IsAllow property.</param> /// <param name="postId">Initial value of the PostId property.</param> /// <param name="isAdmin">Initial value of the IsAdmin property.</param> public static User CreateUser(global::System.Int32 id, global::System.String login, global::System.String fIO, global::System.String password, global::System.DateTime birthday, global::System.Boolean isAllow, global::System.Int32 postId, global::System.Boolean isAdmin) { User user = new User(); user.Id = id; user.Login = login; user.FIO = fIO; user.Password = password; user.Birthday = birthday; user.IsAllow = isAllow; user.PostId = postId; user.IsAdmin = isAdmin; return user; }
/// <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); }