Understanding updateRestriction predicate parameter on Save

Posts   
 
    
jvail
User
Posts: 4
Joined: 10-Sep-2008
# Posted on: 30-Oct-2008 08:30:13   

If I build a predicate and pass it into Save on an entity as the updateRestriction, should the Save not happen if a record is found that matches the predicate? I am guessing it should not...but it is. I checked my predicate expression in the visualizer to make sure it is correct. Does the updateRestriction mean "don't update records that match the predicate"? I didn't see anything about it in the documentation. I just want to make sure I am understanding how this is supposed to work before I keep troubleshooting....I've been staring at this for hours. disappointed

I am using v2.6 and SQL Server 2000.

Thanks! Jeff

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 30-Oct-2008 09:37:09   

It's the other way around. updateRestriction is meant for concurrency checks in an Update query, so only update will take place if the filter evaluates to true.