/// <summary> /// Create a new Task object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="details">Initial value of the details property.</param> /// <param name="taskGroupId">Initial value of the TaskGroupId property.</param> /// <param name="clientId">Initial value of the clientId property.</param> /// <param name="datePosted">Initial value of the DatePosted property.</param> public static Task CreateTask(global::System.Int32 id, global::System.String details, global::System.Int32 taskGroupId, global::System.Int32 clientId, global::System.DateTime datePosted) { Task task = new Task(); task.Id = id; task.details = details; task.TaskGroupId = taskGroupId; task.clientId = clientId; task.DatePosted = datePosted; 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); }