Just started with Star UML
to draw a class diagram
.
As with any application, MyBLL
(business layer) creates an instance of Model
after interacting with the DAO
(database layer).
More or less, the simplified (for clarity) class diagram looks like this:
It is obvious that the model class will no longer be used after BLL is done.
What should I use here?
aggregation
orcomposition
while mappingMyBLL
toMyModel
.I have used a
composition
relationship fromMyBLL
toMyDAO
. My logic is after theBLL
layer exists,MyDAO
will no longer exist because it is referenced inMyBLL
. Is this correct?
Note: This is for a WebAPI
project that I am creating using C#.