S
SonicChen
i havn't dive deep into the entity framework(ef), but we encounter some
problem when we design subsystem in linq to sql which maybe be same as ef.
we need to create dependent business model classes in different
datacontext(subsystem), one subsystem dependent on another, such as the
relation between order management subsytem and product management subsystem,
so we need to use the model like this, order.items[0].product, but these
classes attached to different datacontext, and the transaction seems to be
the problem too.
I think it's caused by the datacontext acts as two roles: business object
container and data access gateway, they should be separated to different
components.
Appreciated for any response.
problem when we design subsystem in linq to sql which maybe be same as ef.
we need to create dependent business model classes in different
datacontext(subsystem), one subsystem dependent on another, such as the
relation between order management subsytem and product management subsystem,
so we need to use the model like this, order.items[0].product, but these
classes attached to different datacontext, and the transaction seems to be
the problem too.
I think it's caused by the datacontext acts as two roles: business object
container and data access gateway, they should be separated to different
components.
Appreciated for any response.