如何获得流利的NHibernate与NHibernate 3.x工作 [英] How to get Fluent NHibernate working with NHibernate 3.x

查看:116
本文介绍了如何获得流利的NHibernate与NHibernate 3.x工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何获得流利的NHibernate与最新的NHibernate 3.x干线

pre> 无法加载文件或程序集'NHibernate,Version = 2.1.2.4000,Culture = neutral,PublicKeyToken = aa95f207798dfdb4'或其依赖项之一。

编辑:

FluentNhibernate文件PersistanceConfiguration
$ b $ pre $ lt; code> public TThisConfiguration Cache(Action< CacheSettingsBuilder> cacheExpression)
{
cacheExpression(cache) ;
return(TThisConfiguration)this;





$ b

不明白,FluentNHibernate是针对NH 3.x编译的, p>

解决方案

FluentNHibernate 下载页面在NHibernate 3.0和2.1.2中有稳定的pre-release(pre 1.2)二进制文件。

How to get Fluent NHibernate working with latest NHibernate 3.x trunk

I got the following Exception :

Could not load file or assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies.

EDIT :

This exception occurs in FluentNhibernate file PersistanceConfiguration

    public TThisConfiguration Cache(Action<CacheSettingsBuilder> cacheExpression)
    {
        cacheExpression(cache);
        return (TThisConfiguration)this;
    }

Don't understand, FluentNHibernate is well compiled against NH 3.x

解决方案

The FluentNHibernate download page has stable pre-release (pre 1.2) binaries for NHibernate 3.0 and 2.1.2

这篇关于如何获得流利的NHibernate与NHibernate 3.x工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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