IdentityUser, how to configure OnModelCreating with domain entities
Im trying to follow Clean Architecture
I use a custom class, ApplicationUser (inherits IdentityUser), and its implemented in Infrastructure because it relates to DataBase, external source
I have other entities, for example, class Vote, that should have one-to-one relationship to ApplicationUser. But i can not use ApplicationUser class in Domain (where Vote and other entities are stored), leading to that i can not make one-to-one relationship between ApplicationUser and Vote (though i really need to).
Im asking for a solution that wouldnt violate Clean Architecture and other practices
2 Replies