Subsonic custom mapping of objects to tables
Posted
by codekaizen
on Stack Overflow
See other posts from Stack Overflow
or by codekaizen
Published on 2009-12-13T06:02:42Z
Indexed on
2010/04/08
20:23 UTC
Read the original article
Hit count: 389
Geeting,
I'm using Compact Framework 3.5 and have tenatively settled on a custom build of Subsonic 3.0 to do data access. The trouble is that I am used to developing model-first but am also interested in keeping control of my DB schema. Therefore, neither ActiveRecord or Repository appears to meet my needs, and I want to use my existing POCO model and map it to my existing tables. I'm used to doing this via NHibernate and Entity Framework.
After some investigation, it appears that I might be able to author a custom QueryMapping to give me the custom mapping I want. Before I start down this path, however, I'd like to see some kind of example of this being done. I can't seem to find any on the web, and wonder if anyone could give input on experience with Subsonic, model-first and a custom Table-per-Type and Table-per-Hierarchy mapping.
© Stack Overflow or respective owner