TimeStamp handled as readonly property

Posts   
 
    
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 12-Feb-2004 19:15:23   

It seems that sqlserver timestamp datatype is handled as a readonly property in an entity.

I am persisting an entity.currencyTS in viewstate of webpage and then right before saving with concurrency handling I am needing to stuff the old value in my new instance of entity, so to use save overload for predicate.

Is there a lower level command to set timestamp to old value for the concurrency comparison that I am needing here?

Thanks,

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39826
Joined: 17-Aug-2003
# Posted on: 12-Feb-2004 20:16:37   

Yes, myEntity.Fields(index).ForcedCurrentValueWrite(value)

simple_smile

it's read-only because the field is generated by sqlserver.

Frans Bouma | Lead developer LLBLGen Pro