PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Views/Tags/TagMap.cs

#
C# | 14 lines | 13 code | 1 blank | 0 comment | 0 complexity | 47c96a756e7a9cf9030542978840c72b MD5 | raw file
 1using FluentNHibernate.Mapping;
 2
 3namespace Bifrost.Samples.Blog.Views.Tags
 4{
 5    public class TagMap : ClassMap<Tag>
 6    {
 7        public TagMap()
 8        {
 9            Table("Tags");
10            Id(t => t.Id).GeneratedBy.Assigned();
11            Map(t => t.Name);
12        }
13    }
14}