I have an MVC 5 project where I have separated out my models into a deparate project, say Project.Models. The Identity (ApplicationUser) model and its DbContext are still in the main project, as appears in the default MVC 5 project scaffold. One of the entities in the Project.Models assembly must have a property that is a list of ApplicationUsers.
Now I am starting to think that separating out the entity models into a separate project was not a good idea, because now I have the entity models and the Idenity models in separate contexts and assemblies.
How can I make a list of ApplicaitonUsers be part of an entity object if these are in separate assemblies? Should I merge the projects back into one assembly and DbContexgt or is there an easy way to solve this? I cannot define a DbSet<MainProject.ApplicationUser> in DbContext of Project.Models because this would mean circular reference.
Thanks.