I have this mapping:
public sealed class AcessoMap : ClassMap<Acesso>
{
public AcessoMap()
{
CompositeId()
.KeyReference(x => x.Associado)
.KeyProperty(x => x.DataHora, k => k.ColumnName("aceDtHor").Type("Timestamp"));
Map(x => x.IP, "aceEndIP");
Map(x => x.NumeroAcesso).Not.Nullable().Generated.Insert();
Map(x => x.DataAcessoAnterior).Not.Nullable().Generated.Insert();
Map(x => x.ServerVariables).LazyLoad().Generated.Insert();
}
}
How can I configure it to DataHora property use database generated value? (Current it have default value on db, that sets it to current timestamp)
Thank you