Weird. With the runtime libs of 16 march, I test this:
[Test]
[ExpectedException(typeof(SD.LLBLGen.Pro.ORMSupportClasses.ORMConcurrencyException))]
public void UnitOfWorkRestrictionFailTest()
{
using(DataAccessAdapter adapter = new DataAccessAdapter())
{
PredicateExpression filter = new PredicateExpression();
filter.Add(PredicateFactory.CompareValue(CustomerFieldIndex.CompanyName, ComparisonOperator.Equal, "Soldes"));
CustomerEntity chops = new CustomerEntity("CHOPS");
Assert.IsTrue(adapter.FetchEntity(chops));
UnitOfWork2 uow =new UnitOfWork2();
chops.Country = "Holland";
uow.AddForSave(chops, filter, false, false);
uow.Commit(adapter, true);
}
}
And it succeeds. (which is logical, CHOPS' company isn't 'Soldes')
Could you please check if the filter actually prohibits the save from updating a row?