This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Is it possible to specify a formula for a read-only property on one of my entities? In NHibernate, I would specify this as follows: <property name="Total" formula="(select SUM(t.Cost) from ChildTable t where t.Id = Id)" /> I know I can achieve this in each query, but I was hoping to only have this logic once - and utilize it for every usage of the class. |
|
|
This isn't currently possible. We have a feature that is similar, but doesn't handle your particular requirement. We'll have a think about whether we can add support for this, but I can't make any promises. |
|