开发者

Best practice: Creating ORM objects at runtime by scheme stored in DB

At my current project(huge enterprise system) I'm faced to scenario when "simple" objects like table, reference list are created at runtime via system info stored in the same DB(special sys tables). Users can create those simple objects and relations between them.

The complicated objects are created by developers. For the first case We are using SqlOM, and for the second Linq2Sql. So business logic is a mixture of those concepts(sqlOM+linq2sql).

Now I'm thinking about migration to Entity Framework or another ORM that support开发者_运维问答s to create concrete objects and mapping at runtime. Does anybody can give me an advice?


You should checkout Fluent NHibernate for this sort of scenario. http://fluentnhibernate.org/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜