Fluent 错误无效的对象名称“hibernate_unique_key”
当我可以很好地从表中提取数据时,但是当我尝试“VerifyTheMappings
”流利时,我收到“hibernate_unique_key”错误
如果我打开 SQL 探查器,我会看到正在运行以下查询
select next_hi from hibernate_unique_key with (updlock, rowlock)
:爆破。使用 Fluent NHibernate 设置 HiLo 映射是否需要做一些特殊的事情?
编辑:经过进一步阅读后,问题似乎出在原始设置上。在此链接中,他们正在使用HiLo
但他们也在使用
Session = SessionSource.CreateSession();
SessionSource.BuildSchema(Session);
不管它仍然不起作用 有其他人以前遇到过这个问题吗?
When I Can pull data from my table fine but when I attempt to 'VerifyTheMappings
' Fluent I get an error of "hibernate_unique_key"
If I turn on the SQL profiler I see the following query being run:
select next_hi from hibernate_unique_key with (updlock, rowlock)
Which will blow up. Is there something Special you need to do to set up HiLo Mapping with Fluent NHibernate?
EDIT: After some further reading it appears that the issue might be with they Original setup. In this link they are using HiLo
But they are also using
Session = SessionSource.CreateSession();
SessionSource.BuildSchema(Session);
Regardless it still is not work has anyone else had this issue before ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你需要使用Session Source,至于为什么我不确定
you need to use Session Source, as to why I am not sure