/// <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); }
/// <summary> /// Create a new Task object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="status_Int">Initial value of the Status_Int property.</param> /// <param name="percentCompleted">Initial value of the PercentCompleted property.</param> public static Task CreateTask(global::System.Int32 id, global::System.Int32 status_Int, global::System.Int32 percentCompleted) { Task task = new Task(); task.ID = id; task.Status_Int = status_Int; task.PercentCompleted = percentCompleted; return task; }