Hi,
Telerik OpenAccess throws an error when attempt to update my SQL Table:
Telerik.OpenAccess.Exceptions.OptimisticVerificationException: Row not found: GenericOID@e5e5eae8 License Id=3
UPDATE [users_Licenses] SET [ExpiresOn] = ? WHERE [Id] = ? AND [ExpiresOn] = ?
Params: [@p0=2016-05-11T12:21:37.3083016+02:00 @p1=3 @p2=2016-05-11T12:21:37.2930000]
at OpenAccessRuntime.ExceptionWrapper.Throw()
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.handleException(Exception x, Boolean needsRollback)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.internalCommit(Boolean phase)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.commit()
at LOreal.Mynews.OpenAccess.Services.LicenseService.Update(License instance)
at LOreal.Mynews.Mobile.WebApi.Helpers.Security.LOrealAuthenticationInspector.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
I don't understand why OpenAccess create where clause with filter on [ExpiresOn].
[ExpiresOn] is not an identity field, ([Id] is)
SQL query should be
UPDATE [users_Licenses] SET [ExpiresOn] = ? WHERE [Id] = ?
can some one help me ?
thanks in advance
Eric