Sorry....
Are you sure that you don't want it back ?public Item AddItem()
{
InvalidateTotal();
....
return ....
}

etc. etc.

2008/12/16 Fabio Maulo <[email protected]>

> ;) and why you don't want it read-back ?Are you sure that you and want it
> back ?
>
> public Item AddItem()
> {
> InvalidateTotal();
> }
>
> private decimal total?;
> public decimal Total
> {
> get
> {
> if(!total.HasValue)
> total = CalculateTotal();
> return total.Value;
> }
> }
>
> 2008/12/16 Germán Schuager <[email protected]>
>
> Hi,
>>
>> Is there some mapping strategy to have a calculated property persisted
>> into the database (for querying purposes) but not read back?
>>
>> Something like this:
>>
>> public int Total
>> {
>>    get { return calculateTotal(); }
>> }
>>
>>
>> Regards,
>>
>> Germán Schuager
>> http://blog.schuager.com
>>
>> >>
>>
>
>
> --
> Fabio Maulo
>



-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to