2011-11-29 64 views

回答

2

我不知道有任何新的版本。 FNH 1.2不適用於開箱即用的NH3.2。你需要設置你的app.config像這樣綁定:FYI

<dependentAssembly> 
     <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" /> 
     <bindingRedirect oldVersion="0.0.0.0-3.2.0.4000" newVersion="3.2.0.4000" /> 
    </dependentAssembly> 

:我使用這個設置

+0

對NHibernate.ByteCode.LinFu代理工廠也一樣嗎? – sternr

+0

Bytocode提供者應該對FHN透明,所以它應該可以工作。使用FNH,您只需配置它:.ProxyFactoryFactory(「NHibernate.Bytecode.DefaultProxyFactoryFactory,NHibernate」) –

+0

如果您使用NuGet並安裝最新的FNH軟件包,它與NH 3.2兼容 –