I have two aggregate root :
Event :
Id - name - title - categoryId
Category :
Id - CategoryName
These model are separate aggregate roots in my project.and i have a viewmodel from these models(asp.net mvc) :
EventViewModel:
Id - name - title - CategoryId - CategoryName
Problem : because these are separate aggregate root then i cant't use navigation property . and reference by id(categoryId).so what is best solution for map viewmodel?
- join query in entityframework?
- navigation property?
- change view model by combine 2 models and map them separely(coupling)?
thanks,