UIL, BOL and LLBLGen Entiites...

Posts   
 
    
Stranger
User
Posts: 23
Joined: 22-Nov-2005
# Posted on: 26-Jul-2006 15:49:35   

I have a question about layering ... Is it correct to pass the LLBLGenEntities to UI? (UI is showing in XML, Text, Dialog or Command Line or anything else...)

I think it wil be very complex ... My solution is creating a DataStructure(DS) from related LLBLGen entities and BOL object have a read and Save(DS) method.

For eample an OrderDS may be related to ItemEntity, SupplierEntity, InventoryEntity, ...

In this solution it is possible to fill this DS by XML, text file, or in Window Dialog or even Command Line ... and after filling it, the Save(DS) will be called ...

If i want to use LLBLGen Entities in UIL, I should know the DB Design in UIL and filling the entities according to DB Design, and it will be very complex. But DS usually is simpler!

Are you agree? I will be pleased to know ur IDEA ...

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 26-Jul-2006 17:36:41   

There is no right way of doing it. It all depends on what is your needs and what your are more compfortable with.

You may pass generated entities objects to the UI to be used there, or you may use some DTOs or structures, and bound the entities to the BL/DAL layer.

It's pure architecture and strategic matter which has no right or wrong limits.