milestonetg-public - NHibernate.Mapping.Attributes 5.1.0-preview1
Attribute based mapping for NHibernate.
PM> Install-Package NHibernate.Mapping.Attributes -Version 5.1.0-preview1 -Source https://www.myget.org/F/milestonetg-public/api/v3/index.json
> nuget.exe install NHibernate.Mapping.Attributes -Version 5.1.0-preview1 -Source https://www.myget.org/F/milestonetg-public/api/v3/index.json
> dotnet add package NHibernate.Mapping.Attributes --version 5.1.0-preview1 --source https://www.myget.org/F/milestonetg-public/api/v3/index.json
<PackageReference Include="NHibernate.Mapping.Attributes" Version="5.1.0-preview1" />
Copy to clipboard
source https://www.myget.org/F/milestonetg-public/api/v3/index.json
nuget NHibernate.Mapping.Attributes ~> 5.1.0-preview1
Copy to clipboard
> choco install NHibernate.Mapping.Attributes --version 5.1.0-preview1 --source https://www.myget.org/F/milestonetg-public/api/v2
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-preview1" -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: 2.0.0.0
OwnersJason M Penniman |
AuthorsPierre Henri Kuaté |
Project URLhttps://github.com/nhibernate/NHibernate.Mapping.Attributes |
LicenseUnknown |
TagsNHibernate, Attributes, NHibernate-Mapping |
Info2 total downloads |
0 downloads for version 5.1.0-preview1 |
Download (61.09 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 | 2 | ||||
5.1.0-preview1 | 61.09 KB | Sun, 18 Mar 2018 20:32:21 GMT | 0 |