Issues with EFCore
Hello everyone, I am trying to use ApplyConfigurationsFromAssembly but it seems to not be finding any configurations
Instead, I have to apply configurations like this
and to apply them in correct order or migrations won't work, I am not sure what could be causing this issue, I have a clean architecture solution split into multiple projects. Could anyone point me to the right direction?
6 Replies
it seems to not be finding any configurationswhat makes you say this?
because when I don't do this
I get error that it can't link 2 entities to its foreign keys
where are you calling
modelBuilder.ApplyConfigurationsFromAssembly()
?
inside my DbContext
I also tried calling base on bottom, also doesn't work
Inside the Dashboard.Persistence project\
what's
UserConfiguration
look like?