Business Logic Layer and DAL

Posts   
 
    
Krish
User
Posts: 91
Joined: 02-Jan-2008
# Posted on: 11-Aug-2008 16:05:42   

How do you separate the BLL and DAL into two separate assemblies in LLBLGen. I am using version 2.6 Self-servicing two class templates. Do you have to use the adapter template to acheive this.

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 11-Aug-2008 16:36:33   

why do you need 2 assemblies? client/server? If so then you can use pocos/dtos on the client and keep the domain entities on the server (adapter or SS will for for this scenario) the server would need to map the pocos to entities. If you want the entities on both the client and server, then you must use adapter.

If your designing a thick client or web app I would keep the code in one inclusive assembly and abstract the layers logically by objects, not physically by assemblies.