As I have said before, I am a part time programmer and seem to be little rusty all of the time. With that said, after following the help instructions, I am unable to get SF concurrency using RowVersioning to work. User A and User B are editing the same record at the same time using the code below. User A saves the record. Then User B saves the record and the BO does not throw an exception. What am I doing wrong? Thanks for the help!
I have the following properties set on the ContactsBO:
CollisionNoficationType = ThrowException
RowVersionOrTimestampColumn = ContactRowVersion (datatype int - allow nulls)
UpdateConcurrencyType = OptimisticRowVersion
Code Below..............................
Using loBO As New ContactsBO
loBO.FillByPrimaryKey(contactID)
If loBO.IsEmpty Then
loBO.Edit()
loBO.UserID = GlobalVariables.CurrentUserID
loBO.Save()
MsgBox(
Ems.HandleException(