"isDirty" on a single field/property?

Posts   
 
    
zuma
User
Posts: 16
Joined: 18-Mar-2008
# Posted on: 23-Apr-2009 09:33:28   

Is it possible, to determine, whether the value of an entity-field/-property has been changed or not? I need to check - before saving the entity - whether a certain field of the entity was changed or not. "isDirty" on the entity-level is not suitable for me, because it just says in general, that some field was changed. I have to know, whether a certain field/property was changed or not before I save the entity.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 23-Apr-2009 09:54:57   

myEntity.Fields[fieldname].IsChanged

LLBLGen checks this value before saving an entity, and only attempt to save fields which have been changed.