/// <summary> /// Create a new Task object. /// </summary> /// <param name="taskId">Initial value of the TaskId property.</param> /// <param name="server">Initial value of the Server property.</param> /// <param name="login">Initial value of the Login property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="info">Initial value of the Info property.</param> /// <param name="port">Initial value of the Port property.</param> /// <param name="isCompleted">Initial value of the IsCompleted property.</param> /// <param name="isProcessed">Initial value of the IsProcessed property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="dedicated">Initial value of the Dedicated property.</param> public static Task CreateTask(global::System.Int32 taskId, global::System.String server, global::System.String login, global::System.String password, global::System.String info, global::System.Int16 port, global::System.Boolean isCompleted, global::System.Boolean isProcessed, global::System.Int32 userId, global::System.Int32 dedicated) { Task task = new Task(); task.TaskId = taskId; task.Server = server; task.Login = login; task.Password = password; task.Info = info; task.Port = port; task.IsCompleted = isCompleted; task.IsProcessed = isProcessed; task.UserId = userId; task.Dedicated = dedicated; return task; }
/// <summary> /// Deprecated Method for adding a new object to the Tasks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTasks(Task task) { base.AddObject("Tasks", task); }