简体   繁体   English

使用Fluent NHibernate和NHibernate 3.3

[英]Using Fluent NHibernate with NHibernate 3.3

I have just seen that NHibernate 3.3 is out and I have tried implementing it in a fresh project. 我刚刚看到NHibernate 3.3已经出来了,我已经尝试在一个新项目中实现它。

Much like with version 3.2 I have run into issues with using Fluent NHibernate, I have added version Fluent NHibernate version 1.3 and am getting the following error message. 与版本3.2非常相似我遇到了使用Fluent NHibernate的问题,我添加了版本Fluent NHibernate 1.3版并且收到以下错误消息。

Could not load file or assembly 'NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. 

Can I get fluent safely running with the latest version of NHibernate? 我可以使用最新版本的NHibernate安全地运行吗? I know previously building the FluentNHibernate source against NHibernate could work. 我知道以前构建针对NHibernate的FluentNHibernate源代码可以正常工作。 Is this recommended or have things changed significantly enough in 3.3 to make issues likely? 这是推荐还是在3.3中有足够的变化来解决问题?

I have checked the Fluent NHibernate site and I can't see much recent activity. 我检查了Fluent NHibernate网站,我看不到最近的活动。 Does anyone know if James is planning on continuing supporting Fluent I know he had some doubts. 有谁知道詹姆斯是否打算继续支持Fluent我知道他有些疑惑。

http://lostechies.com/jamesgregory/2011/04/13/me-on-nhibernate-3-2/ http://lostechies.com/jamesgregory/2011/04/13/me-on-nhibernate-3-2/

Really do hope support continues as NHibernate's mapping by code just does not feel as intuitive and there is still not much information out there on it. 真的希望支持继续,因为NHibernate的代码映射感觉并不直观,并且仍然没有太多的信息。

Cheers 干杯

Steve 史蒂夫

Just get the latest sources and compile it against the latest NHibernate. 只需获取最新的源代码并针对最新的NHibernate进行编译。 As long as NHibernate doesn't change something in the XML configuration schema, this will always work. 只要NHibernate不改变XML配置模式中的某些内容,这将始终有效。 I'm already using it that way without problems. 我已经在没有问题的情况下使用它。

You have two options here. 你有两个选择。

  1. Put assembly redirect (You can try to do it with Nuget command Add-BindingRedirect 放置程序集重定向 (您可以尝试使用Nuget命令Add-BindingRedirect执行此操作
  2. Compile from source code 从源代码编译

To answer the second part of your question... 回答你问题的第二部分......

James posted this to the FNH Google Group on Jan 27, 2012: James于2012年1月27日将此帖发布给FNH Google Group:

Hey everyone, 嘿大家,

I've noticed people are starting to get a bit restless around here. 我注意到人们在这里开始有点不安。 I suppose you all deserve a bit of an explanation. 我想你们都应该得到一些解释。

Fluent NHibernate is not dead; 流利的NHibernate并没有死; however, it is severely neglected. 然而,它被严重忽视了。 The reasons I'll go into in a moment, but I don't intend on letting the project die; 我稍后会讨论的原因,但我并不打算让项目死掉; it may just have to remain in its neglected state for a while longer. 它可能只需要在一段时间内保持在被忽视的状态。 The pull requests are occasionally being dealt with, but it's only me here now and I just simply don't have the time to deal with it. 拉动请求偶尔会被处理,但现在只有我在这里,我只是没有时间处理它。

Help would be appreciated, but I don't expect it. 帮助将不胜感激,但我不指望它。 If anyone wants to, get in touch (james @ jagregory.com); 如果有人愿意,请联系(james @ jagregory.com); I'm more interested in project management help than code right now, as we're still fairly active on that front (contributors, that is). 我现在对项目管理帮助比对代码更感兴趣,因为我们在这方面仍然相当活跃(贡献者,就是这样)。

There isn't really a roadmap at this point in time, due to lack of activity; 由于缺乏活动,目前还没有真正的路线图; but I've always planned on getting a 1.3/4 release out then pushing on to a cleaner-tighter 2.0 release; 但是我一直计划在1.3 / 4版本发布之后推出更清洁的2.0版本; when that'll happen is anyone's guess right now. 什么时候发生这是任何人现在的猜测。

Personal stuff: feel free to skip if you've heard enough. 个人资料:如果你听够了,可以随意跳过。 So the reason for all this slacking is that I've quit my job in London, relocated to Australia, and joined ThoughtWorks in Sydney (and now temporarily in Melbourne). 所以这种松懈的原因是我辞去了在伦敦的工作,搬到了澳大利亚,并在悉尼加入了ThoughtWorks(现在暂时在墨尔本)。 It's a big move, quite literally halfway around the world. 这是一个很大的举动,实际上是全世界的一半。 I'm having to reestablish myself over here and that's a very time consuming experience; 我不得不在这里重新建立自己,这是一个非常耗时的经历; new country, new job, new city, new friends, etc... My priorities have shifted entirely away from non-essential projects and once the day is over, the last thing I want to do is boot up the VM and crank out some code. 新国家,新工作,新城市,新朋友等...我的优先事项已经完全转移到非必要项目之外,一旦结束,我要做的最后一件事就是启动VM并制定一些码。 I hate to dissapoint people, and I hate to neglect FNH, but my priorities have (temporarily) changed. 我讨厌让人失望,我讨厌忽视FNH,但我的优先事项(暂时)改变了。

Hope that at least clarifies what some people are thinking. 希望至少澄清一些人的想法。 Feel free to ask any questions and I'll do my best to actually answer. 随意提出任何问题,我会尽力回答。

Cheers, James 干杯,詹姆斯

PS Mailing list messages - sorry about that. PS邮件列表消息 - 抱歉。 Google Groups apparently decided to stop notifying me of new messages. Google网上论坛显然决定不再通知我新消息。 All outstanding ones have been approved. 所有优秀的都已获批准。

I offered to help with some of the admin work, but after a couple of email exchanges with him, did not hear anything further. 我主动提供了一些管理工作的帮助,但在与他进行了几次电子邮件交流之后,没有听到任何进一步的消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM