开发者

Subsonic table mappings

I've searched a lot and I haven't really found an answer.

Is it possible to use POCOs wit开发者_StackOverflow中文版h Subsonic? How do I map tables (which do not look like the POCOs) to my classes?


SubSonic doesn't provide a built in way to map tables to your POCOs.

The closest it would come would be using the ActiveRecord portion of SubSonic which would generate one class per table (with properties for each table column and foreign key relationship to other tables).

Depending on how your POCOs look, you might be able to get data easily (or not) between the generated ActiveRecord classes and your POCOs. Also, the generated ActiveRecord classes are created via templates which you can modify to fit your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜