PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Views/Posts/CommentMap.cs

#
C# | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | 30a654408887f65121ccbe907a471cca MD5 | raw file
 1using FluentNHibernate.Mapping;
 2
 3namespace Bifrost.Samples.Blog.Views.Posts
 4{
 5	public class CommentMap : ClassMap<Comment>
 6	{
 7		public CommentMap()
 8		{
 9			Table("Comments");
10			Id(c => c.Id).GeneratedBy.Assigned();
11			Map(c => c.PostId);
12			Map(c => c.Author);
13			Map(c => c.EMail);
14			Map(c => c.Url);
15			Map(c => c.Body);
16			Map(c => c.Occured);
17		}
18	}
19}