NHibernate 2 + Fluent Nhibernate中等信任 [英] NHibernate 2 + Fluent Nhibernate medium trust

查看:152
本文介绍了NHibernate 2 + Fluent Nhibernate中等信任的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NHibernate 2和或者Fluent Nhibernate会在一个中等信任的环境中工作。如果没有任何解决方法?

解决方案

不知道流利NH - 我认为它应该 - 它只是转换为XML 。

使用NH本身,你将会失去字节码优化,你所有的setter / constructor都需要公开。如果你需要使用延迟加载,你将不得不使用build生成代理( NH代理生成器)。

如果您在中等信任设置中启用了某些权限,则可以放松一些限制。


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

解决方案

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.

这篇关于NHibernate 2 + Fluent Nhibernate中等信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆