Subsonic map POCO to table of a different name

371 views Asked by At

I started a small project and wanted to use Subsonic's SimpleRepository for my database layer. If I have table in my database called Member and I want to create a POCO called TeamMember. Can I map class TeamMember to table Member via an attribute or some other method? It is possible that what I'm asking is not how the SimpleRepository objects are supposed to be used and if this is the case I would appreciate any suggestions.

Thank you, - e r i c

1

There are 1 answers

0
AudioBubble On BEST ANSWER

You can - but I might suggest using Inheritance instead. Remember - SimpleRepo is model-->DB, not the other way round.