Partial Classes Referencing DBSpecific Classes (Ok?)

Posts   
 
    
LukeO
User
Posts: 58
Joined: 23-Jul-2007
# Posted on: 23-Jul-2007 23:10:08   

I'm using partial classes to add business logic which (from what I've read) sounds like a proper place for this but I've run into some issues:

  1. Does it make sense to reference the DBSpecific classes? Specifically I'm implementing my own lazy-loading procedure for several other entity classes).

  2. Should I NOT do it this way and use BOTH partial classes AND inheritence classes to do what I want to do?

V2 Final Release (Adapter mode)

Thanks, -Luke

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 24-Jul-2007 11:42:14   

For business logic I'd go for Manager Classes. (i.e Business Layer). Otherwise you'd better use the SelfServicing model instead of the adapter.

LukeO
User
Posts: 58
Joined: 23-Jul-2007
# Posted on: 24-Jul-2007 18:19:31   

Thanks.

Walaa wrote:

For business logic I'd go for Manager Classes. (i.e Business Layer). Otherwise you'd better use the SelfServicing model instead of the adapter.