You have two options
Create a custom type for nhibernate and specify it in the mapping as
.CustomType
. Therefore you'll have to implement a small interface which does the conversion to and fromQuantLib.Date
You simply change the type of the date property to System.DateTime and add another property which read/writes to the date property but uses your
QuantLib.Date
, pseudocode:public QuantLib.Date QDate { get{ // read from this.date and create a new QuantLib.Date } set{ // write to this.date } }