Answer the question
In order to leave comments, you need to log in
How to build a database structure correctly?
There are the following models:
public class Duty
{
public int DutyId { get; set; }
public int dateId { get; set; }
public Date DateOfDuty { get; set; }
public int typeOfDutyId { get; set; }
public TypeOfDuty typeOfDuty { get; set; }
public List<DutyOfPerson> DutyPerson { get; set; }
}
public class TypeOfDuty
{
public int typeOfDutyId { get; set; }
public string Name { get; set; }
public List<RoleInDuty> rolesInDuty { get; set; }
}
public class RoleInDuty
{
public int roleInDutyId { get; set; }
public string Name { get; set; }
public int typeOfDutyId { get; set; }
}
public class Person
{
public int PersonId { get; set; }
public string Name { get; set; }
public List<DutyOfPerson> DutyPerson{ get; set; }
}
public class DutyPerson
{
public int DutyId { get; set; }
public Duty Duty { get; set; }
public int PersonId { get; set; }
public Person Person { get; set; }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question