Business layer access to the data layer

Posted by rerun on Programmers See other posts from Programmers or by rerun
Published on 2011-03-01T23:29:32Z Indexed on 2011/03/01 23:31 UTC
Read the original article Hit count: 297

Filed under:
|

I have a Business layer (BL) and a Data layer (DL). I have an object o with a child objects collection of Type C. I would like to provide a semantics like the following o.Children.Add("info"). In the BL I would like to have a static CLASS that all of business layer classes uses to get a reference to the current datalayer instance. Is there any issue with that or must I use the factory pattern to limit creation to A class in the BL that knows the DL instance.

© Programmers or respective owner

Related posts about code-layout

Related posts about n-tier