I have created multiple layers i.e.
- SharedUtility
- Domain
- Infra.Data
- Core
- IoC
- WebApi
I am following onion architecture like structure so the domain layer reference is added to the Infra.Data layer and Infra.Data layer reference is added in the Core layer not the way around. My question is that my data context is in Infra.Data layer and my fluent api configurations are in Core layer implemented through IEntityTypeConfiguration, is it the correct position if i am not wrong, all the core business principles should be in Core Layer and all the configurations should also be provided there but the method OnModelCreating in the Infra.Data complains because of its reference. Can somebody explains to me how to achieve it