LLBL Pro version = 2.5 final
runtime version = v2.0.50727
Using ASP.NET 2.0
Database = MS SQL 2005
Selfservicing
In my webapp I'm storing an Entity in the Viewstate. I'm attempting to implement concurrency control as described in LLBGen documentation. The Entity is retrieved from Viewstate and the Entity.Save() method is called. In a partial class I have overriden the Entity OnInitialized() method to set the ConcurrencyPredicateFactoryToUse.
What happens is the Entity does not get commited to the database when the timestamp values don't match, but Entity.Save() returns true and the ORMConcurrencyException does not get thrown. I have tried passing the a filter predicate to the Entity.Save() method directly and get the same exact behavior. I suspect it must have something to do with the way the Entity get deserialized from viewstate, but I'm not sure how to force the ORMConcurrencyException to be thrown or at least have the Save() method retrun false when a concurrency conflict ocurrs.
Any ideas?