Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to Expose BOL entity class using Façade Design Pattern

$
0
0

Hi,

I’m trying to learn the implementation of the Façade design pattern in a demo application. I have spent some time reading articles and watching some videos on YouTube regarding the subject. I created a demo application trying to implement it. The demo application contains windows application as UI and class library as business object layer (BOL). I BOL contain the Façade class and an interface which I use for all of the BOL classes so the client who will consume the BOL will not be effected when any changes made to any of BO classes. The demo application work fine as a start for me, but I’m still thinking about one issue and I’m still struggling to understand and resolve it.

The BOL encapsulate all of BO classes and their entity classes and the Façade class with interface are the only objects exposed to the client. The interface that I created for the BO classes but my issue here is the BO entity classes, How can I expose them to the client or make one of the Façade class return one of them? I tried to create a second interface for that reason but it didn’t work.

Please I need your help and advice regarding how I can expose the BO entity using an interface.

VS 2013

Framework 4.5.1

VB.NET

Kind regards.


Samijf


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>