From a purely NHib viewpoint, you don't need to persist the computed
value. You can map a formula like so and then you can use it in your
Linq specifications just like any other property:
<property name="FullName" formula="FirstName + ' ' + LastName" />
I don't know how this would (could?) get mapped in FNH <blush/>
The other option is to shift the computation into your database, but
that depends on your RDBMS. SQL Server is capable of supporting
computed columns on a table, so I would expect most others could too.
Note: both of these options could map into a straightforward property
on your class, but then you won't get the FullName property updating
in response to a change on the FirstName property. If you need that,
then you'll need to code it up within your class.
Cheers,
John
> > - Hudsonhttp://www.bestguesstheory.comhttp://
twitter.com/HudsonAkridge- Hide quoted text -
>
> - Show quoted text -