NHibernate 3 Alpha - proxyfactory.factory_class?

I play with NHibernate 3 alpha, but try my best to configure my SessionFactory.

I have the following:

 var config = new Configuration().Configure();
 _sessionFactory = config.BuildSessionFactory();

However, there are no factory proxies provided in the provided 3-alpha dlls. Those. NHibernate.ByteCode.Castle, NHibernate.ByteCode.LinFu, and Spring, all equipped with nHib 2.x, are not listed here.

So, as part of the 3 alpha package, I looked at NHibernate.Example.Web and used it provided by NHibernate.ByteCode.LinFu; this example uses it in its config.hbm.

So my hibernate.cfg.xml has

<property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property>

When the second line does not work with the above code when creating Factory

NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException    = "NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu" proxy factory. : - NHibernate.Bytecode . - Name, 'proxyfactory.factory_class' a > session- factory,

, LinFu ref CopyLocal stacktrace, :

System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1 (MessageRpc & rpc)

       System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)   InnerException: System.IO.FileLoadException

       Message = "NHibernate, Version = 3.0.0.1002, Culture = neutral, PublicKeyToken = null" . . ( HRESULT: 0x80131040)        = mscorlib       FileName = NHibernate, Version = 3.0.0.1002, Culture = neutral, PublicKeyToken = null       FusionLog ==== ===

LOG: DisplayName = NHibernate, Version = 3.0.0.1002, Culture = neutral, PublicKeyToken = null  ( )

LOG: Appbase = file:///C:/Dev/SilverTracker/src/SilverTracker/SilverTracker.Web.Services/

LOG: Initial PrivatePath = > C:\Dev\SilverTracker\src\SilverTracker\SilverTracker.Web.Services\bin

: NHibernate.ByteCode.LinFu, Version = 3.0.0.1002, Culture = , PublicKeyToken = null.

:

{ " NHibernate, Version = 3.0.0.1002, Culture = neutral, PublicKeyToken = null . . ( HRESULT: 0x80131040)": "NHibernate, Version = 3.0.0.1002, Culture = neutral, PublicKeyToken = null" }

, , nHib 3.

, !

3? , 3 .

WCF.NET 4.0. Im , 2.x, linq.

.

+3
1

numpty, (alpha 2), , .

:

, , - ​​ .

+1

Source: https://habr.com/ru/post/1764375/


All Articles