Implementing Interfaces

Posts   
 
    
Fishy avatar
Fishy
User
Posts: 392
Joined: 15-Apr-2004
# Posted on: 06-Jun-2007 17:08:40   

Hi All,

I have a data base that has several tables that have similar fields. I would like to declare an interface that would expose those similar properties.

Where would be the best place to have that code?

Thanks,

Fishy

Fishy avatar
Fishy
User
Posts: 392
Joined: 15-Apr-2004
# Posted on: 06-Jun-2007 17:16:07   

Looking at the docs, it seems that Partial Classes would be the best place to store these.

So, I assume I create the class in the EntityClasses folder.

Sorry to waste anybody's time on this.

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 07-Jun-2007 09:21:31   

Fishy wrote:

Looking at the docs, it seems that Partial Classes would be the best place to store these. So, I assume I create the class in the EntityClasses folder.

Any folder will do as long as partial class is within the same namespace (within same assembly of course) as the original one.