In my class i have a boolean property:
public virtual bool IsDefaultPrice
{
get;
set;
}
I want to set the value of that property in my mapping based on the values of some columns in my db table.
in my table i have two columns : price1 and price2.
I want that if price1 = 0 AND price2 = 0, then IsDefaultPrice = true, otherwise IsDefaultPrice = false.
Can i achieve this through the fluent nhibernate mapping of my class?
Thanks in advance.