How to create entity correctly? [EF CORE]
I have a following model:
how to store it correctly in database?
should it be 1 - 1 or many-many? how to configure it in ef core?
maybe I should add Id property to ?
for example:
2 Replies
also what if I want to do smth like that in future:
public Guid WorkingTaskId {get;set;}
in RequiredQualifications
looks badit looks like many to many to me, assuming you can have many tasks that pick from the same set of qualifications
in which case you use a join table/entity
in EF core you can model it by giving the task a collection of qualifications and the qualifications a collection of tasks