/// <summary> /// Create a new Task object. /// </summary> /// <param name="taskId">Initial value of the TaskId property.</param> /// <param name="projectId">Initial value of the ProjectId property.</param> /// <param name="categoryId">Initial value of the CategoryId property.</param> /// <param name="statusId">Initial value of the StatusId property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="assignedTo">Initial value of the AssignedTo property.</param> /// <param name="assignedDate">Initial value of the AssignedDate property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="completedDate">Initial value of the CompletedDate property.</param> /// <param name="estimatedCompletedDate">Initial value of the EstimatedCompletedDate property.</param> /// <param name="duration">Initial value of the Duration property.</param> /// <param name="estimatedDuration">Initial value of the EstimatedDuration property.</param> /// <param name="isArchived">Initial value of the IsArchived property.</param> /// <param name="notes">Initial value of the Notes property.</param> /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="sprintId">Initial value of the SprintId property.</param> /// <param name="labels">Initial value of the Labels property.</param> public static Task CreateTask(global::System.Int32 taskId, global::System.Int32 projectId, global::System.Int32 categoryId, global::System.Int32 statusId, global::System.String description, global::System.Int32 assignedTo, global::System.DateTime assignedDate, global::System.DateTime startDate, global::System.DateTime completedDate, global::System.DateTime estimatedCompletedDate, global::System.Decimal duration, global::System.Decimal estimatedDuration, global::System.Boolean isArchived, global::System.String notes, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate, global::System.Int32 createdBy, global::System.DateTime createdDate, global::System.Int32 sprintId, global::System.String labels) { Task task = new Task(); task.TaskId = taskId; task.ProjectId = projectId; task.CategoryId = categoryId; task.StatusId = statusId; task.Description = description; task.AssignedTo = assignedTo; task.AssignedDate = assignedDate; task.StartDate = startDate; task.CompletedDate = completedDate; task.EstimatedCompletedDate = estimatedCompletedDate; task.Duration = duration; task.EstimatedDuration = estimatedDuration; task.IsArchived = isArchived; task.Notes = notes; task.ModifiedBy = modifiedBy; task.ModifiedDate = modifiedDate; task.CreatedBy = createdBy; task.CreatedDate = createdDate; task.SprintId = sprintId; task.Labels = labels; 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); }