/// <summary> /// Create a new Task object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="boardColumnId">Initial value of the BoardColumnId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="position">Initial value of the Position property.</param> public static Task CreateTask(global::System.Guid id, global::System.Guid boardColumnId, global::System.String name, global::System.String description, global::System.Int16 position) { Task task = new Task(); task.Id = id; task.BoardColumnId = boardColumnId; task.Name = name; task.Description = description; task.Position = position; 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); }
private void DetachTasks(Task entity) { entity.BoardColumn = null; }
private bool FilterTasks(Task entity) { return (entity.BoardColumnId == this.Id); }
private void AttachTasks(Task entity) { entity.BoardColumn = this; }