Hello there.
Like in every application I need to somehow implement concurency handling. I would like to implement the "First Save Wins" concurency model. I dont have a timestap column on my tables.
Something like:
AnalitikaEntity analitikaEntity = new AnalitikaEntity("51200");
AnalitikaEntity analitikaEntity2 = new AnalitikaEntity("51200");
adapter.FetchEntity(analitikaEntity);
adapter.FetchEntity(analitikaEntity2);
analitikaEntity2.Norma = 1;
adapter.SaveEntity(analitikaEntity2);
analitikaEntity.Norma = 2;
// now would pop an exception !!
adapter.SaveEntity(analitikaEntity);
Can I use for this any LLBLGen classes or do I have to implement it on my own ?
I read something about IConcurrencyPredicateFactory at Frans blog. But if I do understand it right,this is usable only in the timestapvalue case. Or am I wrong ?
I'm using the adapter aproach.