MapTo/test/MapTo.Integration.Tests/Data/Models/Employee.cs

29 lines
627 B
C#
Raw Normal View History

2021-12-24 20:06:06 +03:00
namespace MapTo.Integration.Tests.Data.Models
{
public class Employee
{
private Manager _manager;
public int Id { get; set; }
public string EmployeeCode { get; set; }
public Manager Manager
{
get => _manager;
set
{
if (value == null)
{
_manager.Employees.Remove(this);
}
else
{
value.Employees.Add(this);
}
_manager = value;
}
}
}
2021-04-09 09:48:23 +03:00
}