Entity Specific Interfaces

Posts   
 
    
Posts: 93
Joined: 13-Feb-2008
# Posted on: 30-Jul-2008 15:20:28   

What I'm thinking about is generating an interface for each entity. After searching the forum I've found a couple of related posts and one in particular advised that this was unnecessary because it was basically just redefining the entity definition. And what good is an interface that is only implemented in one class...

I guess my angle is, what if Otis hits the lottery (Do they have lotteries in Europe?) and punts LLBLGen in favor of a nice long vacation. simple_smile

I think by generating these interfaces and coding against them I can remove the dependency on LLBLGen Entity's from the UI code. Plus if i introduce manager interfaces as well...


IEnumerable<IMessage> GetMessages(){}

vs


EntityCollection<MessageEntity> GetMessages(){}

I can really make strides towards a DAL/BLL agnostic framework. Has anyone ventured down this path with LLBLGen before? Thoughts?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 30-Jul-2008 16:07:26   

I think this thread might fit more in the Architecture forum.

Posts: 93
Joined: 13-Feb-2008
# Posted on: 30-Jul-2008 16:28:52   
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 30-Jul-2008 17:44:45   

Marked as done, continued in architecture forum.

Frans Bouma | Lead developer LLBLGen Pro