NHibernate.XFactories
5.1.0
NHibernate X-Factories allows you to merge all those .cfg.xml files into one.
Install-Package NHibernate.XFactories -Version 5.1.0
dotnet add package NHibernate.XFactories --version 5.1.0
<PackageReference Include="NHibernate.XFactories" Version="5.1.0" />
paket add NHibernate.XFactories --version 5.1.0
#r "nuget: NHibernate.XFactories, 5.1.0"
NHibernate X-Factories allow you to combine multiple .cfg.xml into one. X-Factories does this by allowing each session-factory to be named and referred to individually by name. This gives a cleaner and less verbose configuration for using NHiberate between multiple databases.
Setup
Setup is really quite simple.
- Install via NuGet.
- The
nhibernate-configuration-x-factories.xsd
scheme may be included to a Project or Solution and is available in the NuGet package root folder. - Change the
xmlns
attribute of thehibernate-configuration
element in your .cfg.xml tourn:nhibernate-configuration-2.2-x-factories
. - Change
hibernate-configuration
element tohibernate-configuration-x-factories
. - Give the
session-factory
element a name and create as manysession-factory
elements as you like.
NHibernate X-Factories allow you to combine multiple .cfg.xml into one. X-Factories does this by allowing each session-factory to be named and referred to individually by name. This gives a cleaner and less verbose configuration for using NHiberate between multiple databases.
Setup
Setup is really quite simple.
- Install via NuGet.
- The
nhibernate-configuration-x-factories.xsd
scheme may be included to a Project or Solution and is available in the NuGet package root folder. - Change the
xmlns
attribute of thehibernate-configuration
element in your .cfg.xml tourn:nhibernate-configuration-2.2-x-factories
. - Change
hibernate-configuration
element tohibernate-configuration-x-factories
. - Give the
session-factory
element a name and create as manysession-factory
elements as you like.
Dependencies
-
.NETCoreApp 2.0
- NHibernate (>= 5.1.0)
-
.NETFramework 4.6.1
- NHibernate (>= 5.1.0)
-
.NETStandard 2.0
- NHibernate (>= 5.1.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.