Using Castle ActiveRecord with Fluent NHibernate?

旧时模样 提交于 2019-12-10 19:59:40

问题


Has anyone gotten Fluent NHibernate to work with Castle ActiveRecord?

I am particularly interested in Automapping to configure entities for use with the ActiveRecordMediator repository.


回答1:


This combo doesn't work yet. When trying to use ActiveRecordMediator on a FluentNHibernate-configured entity you'll get an ActiveRecordException complaining that you didn't call ActiveRecordStarter.Initialize() or you didn't use the [ActiveRecord] attribute.

However there is work being done on this integration. Wanna help out? I invite you to the castle dev group ;-)




回答2:


Since ActiveRecordMediator can be used with normal nhibernate mapping it should also work with fluent nhibernate.



来源:https://stackoverflow.com/questions/1915454/using-castle-activerecord-with-fluent-nhibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!