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" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NHibernate.XFactories --version 5.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NHibernate.XFactories, 5.1.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

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.

  1. Install via NuGet.
  2. The nhibernate-configuration-x-factories.xsd scheme may be included to a Project or Solution and is available in the NuGet package root folder.
  3. Change the xmlns attribute of the hibernate-configuration element in your .cfg.xml to urn:nhibernate-configuration-2.2-x-factories.
  4. Change hibernate-configuration element to hibernate-configuration-x-factories.
  5. Give the session-factory element a name and create as many session-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.

  1. Install via NuGet.
  2. The nhibernate-configuration-x-factories.xsd scheme may be included to a Project or Solution and is available in the NuGet package root folder.
  3. Change the xmlns attribute of the hibernate-configuration element in your .cfg.xml to urn:nhibernate-configuration-2.2-x-factories.
  4. Change hibernate-configuration element to hibernate-configuration-x-factories.
  5. Give the session-factory element a name and create as many session-factory elements as you like.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
5.1.0 2,607 3/19/2018
5.0.0 694 12/19/2017