Quantcast
Channel: User Álvaro García - Software Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 40

One provider for all entities or different according to needs?

$
0
0

I am trying to design in DDD the management of orders to a privider.

The order has to have the information of the provider to which i will order the items. Later I will add lines to the order. This lines will need to have information of the provider, but different than the data that I need for the provider of the order.

For the provider of the order I need the business ID, the name and the address but for the provider of the lines I need only the name.

So I am thinking that in that bounded context I could have two privders class, one with the information needed for the order and other provider for the prvider of the line. But I don't know if it is better, inside the context, to have only one provider that has all the information that could I need for all the classes that need the information of the provider.

Which is best option?

Thanks.


Viewing all articles
Browse latest Browse all 40

Trending Articles