PageRenderTime 29ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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
Possible License(s): CC-BY-SA-3.0
  1. using FluentNHibernate.Mapping;
  2. namespace Bifrost.Samples.Blog.Views.Tags
  3. {
  4. public class TagMap : ClassMap<Tag>
  5. {
  6. public TagMap()
  7. {
  8. Table("Tags");
  9. Id(t => t.Id).GeneratedBy.Assigned();
  10. Map(t => t.Name);
  11. }
  12. }
  13. }