Created
April 14, 2019 23:09
-
-
Save adlerpagliarini/13903b246e27319670fc930589a25f06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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