Windows表单应用程序的验证使用NHIBERNATE

发布于 2024-12-05 07:00:11 字数 456 浏览 3 评论 0原文

我一直在 Windows 窗体应用程序中使用 Nhibernate(具有流畅的 nhibernate 映射)并进行一些验证和绑定,我也一直在使用 NHibernate Validator,当我们尝试验证某些属性时,我们会遇到此错误:

无法加载类型程序集“NHibernate”中的“NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException”,版本=3.2.0.4000,文化=中性, PublicKeyToken=aa95f207798dfdb4'。

有人可以帮助我们吗?

我们不知道发生了什么,在网络上查找一些解决方案时,我们发现 nhibernate 验证器有一个错误,我们需要修复它或等待下一个版本,这是真的吗?

或者,如果有人可以推荐另一个好的组件来使用 nhibernate 验证/绑定 Windows 窗体应用程序,我们真的很感激。

谢谢!

I've been using Nhibernate (with fluent nhibernate mapping) in a windows forms application and to do some validation and binding, I've been using NHibernate Validator too and when we try to validate some properties we take this error:

Could not load type 'NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException' from assembly 'NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'.

Can someone help us ?

We don't know what is happening and looking some solution in web we found the nhibernate validator has a bug and we need to fix it or wait the next release, is that true?

Or if someone could recommend another good component to validate/binding on windows forms application with nhibernate, we really appreciate it.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

给我一枪 2024-12-12 07:00:11

看起来这是a 已知的错误在最新(1.3.1)版本的NHIBERNATE验证器中。您可以

  • 自己修复(源可用)。可能相对容易。
  • 使用旧版本的NHibernate(例如,应与您的NHV版本兼容)。
  • 将验证在您的域对象中封装,这反过来将使它们与简单的数据容器相反。

Looks like this is a known bug in the latest (1.3.1) version NHibernate Validator. You can

  • fix it yourself (source are available). Might be relatively easy.
  • use older version of NHibernate (3.1.0 for example should be compatible with your version of NHV).
  • encapsulate validation in your domain objects, which in turn will make them real objects as oppose to simple data containers.
旧情别恋 2024-12-12 07:00:11

检查您正在使用的 NHibernate 版本。您使用的 NHV 适用于 NH 3.2。

Check the NHibernate version you're using. The NHV you're using is for NH 3.2.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文