best way to reference business objects from presentation layer..?

Posted by Vytas999 on Stack Overflow See other posts from Stack Overflow or by Vytas999
Published on 2010-03-30T19:26:58Z Indexed on 2010/03/30 19:33 UTC
Read the original article Hit count: 509

I want to develop an enterprise app that includes a WindowsForms presentation layer, middle-tier components for business logic and data access, and a MsSQL Server database. Middle-tier components should contain some business objects and will be called from presentation layer using .NET Remoting. Whitch is the best way (and why) to reference these business objects from presentation layer?

a) Create class library project, implementing business objects. Reference this project from presentation layer and middle-tier layer.
b) Create interface library project defining business objects. Create class library project implementing interfaces. Reference class library project from middle-tier layer. Reference interface library project from presentation layer.
c) Create separate class library projects for middle-tier and presentation layer. Reference corresponding project from presentation layer.

© Stack Overflow or respective owner

Related posts about business-objects

Related posts about reference