How a domain object can include a property that calculates a value from other associated database properties, so that the computed property can be used both in an instance of a domain object and in the db level by nhibernate.linq.
I would like to be able to use the property when working directly with the object:
Console.WriteLine(Entity.Calculated.ToString());
And when working with nhibernate.linq
var q = from e in session.Linq<Entity>() where e.Calculated > 0 select e;
source share