编辑使用上述解决方案,您无需禁用 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 是否具有开箱即用的中等信任度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-24 12:22