Skip to content

Instantly share code, notes, and snippets.

@adlerpagliarini
Created April 14, 2019 23:09
Show Gist options
  • Save adlerpagliarini/13903b246e27319670fc930589a25f06 to your computer and use it in GitHub Desktop.
Save adlerpagliarini/13903b246e27319670fc930589a25f06 to your computer and use it in GitHub Desktop.
public class Developer : IdentityEntity
{
public string Name { get; set; }
public DevType DevType { get; set; }
private ICollection<TaskToDo> _tasksToDo { get; set; }
public virtual IReadOnlyCollection<TaskToDo> TasksToDo { get { return _tasksToDo as Collection<TaskToDo>; } }
public Developer()
{
_tasksToDo = new Collection<TaskToDo>();
}
public void AddItemToDo(TaskToDo todo)
{
var _todo = new TaskToDo() {
Start = todo.Start,
DeadLine = todo.DeadLine,
Title = todo.Title,
Status = todo.Status,
Id = this.Id
};
_tasksToDo.Add(_todo);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment