lundi 2 mars 2015

Using summary objects with domain driven design

I am new at domain driven design. We are creating entity objects to represent our model. And Representing database tables with same schema. But I am a bit confused about summary objects.


Product is an entity and database table. States is an entity and databse table.


I want to get a summary list like this:



StateName ProductName SellCount
---------------------------------------
State-1 Laptop-ESD14 145
State-1 IPhone-FMNL8 1220
State-1 Book-OYLG4 7789


This is a statistics object. Where can I store this object. Is this an Entity or Value or ViewModel?


If this is a view model I can not store it in Domain layer, I can store in Application Layer. In this stuation how can I get this object from database? (Also I am using ORM tools like Entity Framework)


Aucun commentaire:

Enregistrer un commentaire