Database Reference
In-Depth Information
public virtual string CorrelationId { get; set; }
public virtual string ReplyToAddress { get; set; }
public virtual bool Recoverable { get; set; }
public virtual Nullable<System.DateTime> Expires {
get; set; }
public virtual string Headers { get; set; }
public virtual byte[] Body { get; set; }
public virtual long RowVersion { get; set; }
}
}
Then, we will create the mapping. A more detailed description can be found at ht-
tp://github.com/jagregory/fluent-nhibernate/wiki/Getting-started .
The code snippet for mapping of Id and other variables will appear as follows:
using FluentNHibernate.Mapping;
namespace MVCApp.Mapping
{
public class AuditExt2Map :
ClassMap<MVCApp.Models.AuditExt2>
{
public AuditExt2Map()
{
Table("audit");
Id(x => x.Id);
Map(x => x.ReplyToAddress);
Map(x => x.Recoverable);
Map(x => x.Expires);
Map(x => x.Headers);
Map(x => x.Body);
Map(x => x.RowVersion);
}
}
}
Search WWH ::




Custom Search