milestonetg-public - NHibernate.Mapping.Attributes 5.1.0-preview2

Attribute based mapping for NHibernate.

PM> Install-Package NHibernate.Mapping.Attributes -Version 5.1.0-preview2 -Source https://www.myget.org/F/milestonetg-public/api/v3/index.json

Copy to clipboard

> nuget.exe install NHibernate.Mapping.Attributes -Version 5.1.0-preview2 -Source https://www.myget.org/F/milestonetg-public/api/v3/index.json

Copy to clipboard

> dotnet add package NHibernate.Mapping.Attributes --version 5.1.0-preview2 --source https://www.myget.org/F/milestonetg-public/api/v3/index.json

Copy to clipboard
<PackageReference Include="NHibernate.Mapping.Attributes" Version="5.1.0-preview2" />
Copy to clipboard
source https://www.myget.org/F/milestonetg-public/api/v3/index.json

nuget NHibernate.Mapping.Attributes  ~> 5.1.0-preview2
Copy to clipboard

> choco install NHibernate.Mapping.Attributes --version 5.1.0-preview2 --source https://www.myget.org/F/milestonetg-public/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "milestonetg-public" -SourceLocation "https://www.myget.org/F/milestonetg-public/api/v2"
Install-Module -Name "NHibernate.Mapping.Attributes" -RequiredVersion "5.1.0-preview2" -Repository "milestonetg-public" -AllowPreRelease
Copy to clipboard

What is NHibernate.Mapping.Attributes?

NHibernate requires mapping information to bind your domain model to your database. Usually, it is written (and maintained) in separated hbm.xml files.

With NHibernate.Mapping.Attributes, you can use .NET attributes to decorate your entities and these attributes will be used to generate the mapping information. So you will no longer have to bother with these nasty XML files ;).

Licensed under the terms of the GNU Lesser General Public License.

Build for NHibernate 4.0

Important breaking change: When using the [*Class] attributes, the property Name is automatically deduced only if Name and EntityName are both null. This is due to the fact that this property is optional since you can use EntityName instead. You can turn off this behavior by doing: ((HbmWriterEx) HbmSerializer.Default.HbmWriter).DoNotAutoDetectClassName = true;

Online information

Website

Documentation

Community Group (to ask questions)

Up-to-date source code available at GitHub

  • .NETStandard 2.0
  • .NETStandard 2.0: 2.0.0.0

Owners

Jason M Penniman

Authors

Pierre Henri Kuaté

Project URL

https://github.com/nhibernate/NHibernate.Mapping.Attributes

License

Unknown

Tags

NHibernate, Attributes, NHibernate-Mapping

Info

4 total downloads
3 downloads for version 5.1.0-preview2
Download (65.86 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
5.1.0-preview2 65.86 KB Sun, 18 Mar 2018 22:04:57 GMT 3
5.1.0-preview1 61.09 KB Sun, 18 Mar 2018 20:32:21 GMT 1