Created
November 20, 2011 09:12
-
-
Save orhanveli/1380049 to your computer and use it in GitHub Desktop.
fluent nhiberante guid mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public TagMap() | |
{ | |
Table("general_tags"); | |
#region EntityBase | |
//Id(x => x.Id, "tagId").GeneratedBy.HiLo("nhibernate_hilo", "tag_NextHi", "5"); | |
Id(x => x.Id, "tagId").GeneratedBy.Guid(); | |
Map(x => x.IsDeleted, "isDeleted").CustomType(typeof(bool)); | |
#endregion | |
Map(x => x.Tag, "tag"); | |
Map(x => x.UrlName, "urlName"); | |
HasMany(x => x.TagRelations).Table("general_content_tags").KeyColumn("tagId"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment