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.

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.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
5.1.0 905 3/19/2018
5.0.0 429 12/19/2017