编辑使用上述解决方案,您无需在NHibernate中禁用任何功能,包括延迟加载. DynamicProxy2不会即时生成.pdb文件,从而使所有操作在中等信任的情况下都能平稳运行.will nhibernate work under medium trust out of the box? 解决方案 Castle DynamicProxy2 dll needs to be updated to work with medium trust.Check this linkEDITWith the solution above, you DON'T need to disable ANYTHING in NHibernate, including Lazy Loading. DynamicProxy2 just won't generate .pdb files on the fly, making everything run smoothly on medium trust. 这篇关于nhibernate是否可以开箱即用地具有中等信任度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-06 01:23