FluentNHibernate - Setting default value for DB columns (SQL Server)
- by Nikola Malovic
Hi everyone, 
does anyone know a way how I could set through mapping the default value of a column so for e.g. when I generate DB from mappings I would have DateTime column having getdate() as default value? 
I tried so far this (looks exactlly like what I need) but it doesn't work 
this.Map(x => x.LastPersistedOn, "DateModified") 
    .Access.Property() 
    .Default("getdate()");