/// <summary> /// Create a new Task object. /// </summary> /// <param name="taskId">Initial value of the TaskId property.</param> /// <param name="categoryId">Initial value of the CategoryId property.</param> /// <param name="storyId">Initial value of the StoryId property.</param> /// <param name="description">Initial value of the Description property.</param> public static Task CreateTask(global::System.Int32 taskId, global::System.Int32 categoryId, global::System.Int32 storyId, global::System.String description) { Task task = new Task(); task.TaskId = taskId; task.CategoryId = categoryId; task.StoryId = storyId; task.Description = description; 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); }