Since Our Identity models are in the Infrastructure Layer and other Entities are in the Domain Layer, I was wonder to know how can we have navigation between an Entity and User Model?
For instance, I have two models, User and Content, Each user has 0 or manycontents so there should be a List in User Model, and in Content there should be a foreign Key of User
Public class User{
Public List<Content> Contents{get;set;}
}
Since Our Identity models are in the Infrastructure Layer and other Entities are in the Domain Layer, I was wonder to know how can we have navigation between an Entity and User Model?
For instance, I have two models, in
User
andContent
, Eachuser
has0
ormany
contents
so there should be a ListUser
Model, and inContent
there should be aforeign Key
ofUser