/// <summary>
 /// Create a new Task object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="taskDescription">Initial value of the TaskDescription property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="isDone">Initial value of the IsDone property.</param>
 /// <param name="timeSpent">Initial value of the TimeSpent property.</param>
 /// <param name="creatorId">Initial value of the CreatorId property.</param>
 public static Task CreateTask(global::System.Int32 id, global::System.String taskDescription, global::System.DateTime dateCreated, global::System.Boolean isDone, global::System.TimeSpan timeSpent, global::System.Int32 creatorId)
 {
     Task task = new Task();
     task.Id = id;
     task.TaskDescription = taskDescription;
     task.DateCreated = dateCreated;
     task.IsDone = isDone;
     task.TimeSpent = timeSpent;
     task.CreatorId = creatorId;
     return task;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Tasks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTasks(Task task)
 {
     base.AddObject("Tasks", task);
 }