Timeline for How do you handle objects that need custom behavior, and need to exist as an entity in the database?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 8, 2012 at 22:06 | vote | accept | Scott Whitlock | ||
| Nov 8, 2012 at 22:06 | comment | added | Scott Whitlock | Hmm, I have a restriction that each table has to use a uniqueidentifier column as the primary key. Using your method would imply that I'm adding a second key (int) but I guess that's not the end of the world. If I did that, I could make it a discriminator for the NHibernate mapping, and let it auto-generate the correct sub-class. I think that makes yours the right answer. | |
| Nov 8, 2012 at 18:06 | history | answered | mike30 | CC BY-SA 3.0 |