NHibernate 2 + Fluent Nhibernate medium trust

妖精的绣舞 提交于 2019-12-30 11:05:38

问题


Will NHibernate 2 and\or Fluent Nhibernate work in a medium trust environment. If not are there any work-arounds?


回答1:


Not sure about fluent NH - I assume it should - it just translates to XML.

With NH itself you will loose bytecode optimization, all your setters/constructors will need to be public. If you need to use lazy loading you will have to have your proxies generated with build (NH proxy generator).

Should you have some permissions enabled in your medium trust settings you can relax some of the restrictions.



来源:https://stackoverflow.com/questions/710903/nhibernate-2-fluent-nhibernate-medium-trust

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