I am in a strange situation right now, I have two entities:
public class Proyect
{
int id;
List<int> stages;
}
public class Stage
{
//PK, not FK to proyect
int id;
}
I know that this is not the best way to model this kind of relation (n->1) but it was done this way and we can't change it.
Does someone know, how do I relate this entities (notation or overriding onModelCreation)?
We are using c#, ET4, VS2012, WS8.
idinStagea primary key or a foreign key in toProyect?