Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Fluent NHibernate working with NHibernate 3.x

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

like image 777
Yoann. B Avatar asked Feb 27 '10 23:02

Yoann. B


People also ask

What is the difference between NHibernate and fluent NHibernate?

Fluent NHibernate is another way of mapping or you can say it is an alternative to NHibernate's standard XML mapping files. Instead of writing XML (. hbm. xml files) documents.


1 Answers

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

like image 63
Lachlan Roche Avatar answered Sep 19 '22 15:09

Lachlan Roche