2
I’m developing a project applying the principles of DDD
, I created a class aggregation (Conta
) it will contain the classes (Agencia
) and (Agente
) that as (Conta
) have tables in the database. My question is the following:
I would need to create a class Repository
and a Service class for each of my entities (Account, Agent and Agency) or I should only create the ContaRepository
and within it make the insertions and searches of the 3 classes?
No, you don’t need to create a Repository, but I still have a feeling that you’re not using the Entity Framework. http://answall.com/questions/51536/quando-usar-entity-framework-com-repository-pattern/80696#80696
– Leonel Sanches da Silva