What type to return when querying multiple entities in Repository layer?
问题 I have the following layers involved in this question: Service Layer (Using IoC to call Repository) Domain Model (POCO / Domain Entities, defined repository Interfaces) Repository Layer (EF .edmx and implemented repositories) A lot of times it's really straight forward: Repository layer queries database via Entity Framework and returns IList<SomeDomainEntity> to caller which was Service Layer. The type returned is a type defined in the Domain Model. The problem I'm running into is when I need