This question is locked. New answers and comments are not allowed.
Hello,
I have the following class:
In forward mapping wizard I set identity single field and autoinc verify by version with field version.
Then I created a web page with a RadGrid and and OpenAccessDatasource, in the MasterTableView dataKeyValues="Id,Version"
I can add rows but when I try to update or delete an already existing row I get the following error:
Telerik.OpenAccess.Exceptions.NoSuchObjectException: No row for FormaModel.Citiy ('cities') GenericOID@a City id=0 NOTRES
I have been trying diferent versions for the last 3 days but with any success.
Seems like grid is not sending keyvalues for edited row
Thanks,
Miguel
I have the following class:
[Telerik.OpenAccess.Persistent(IdentityField = "id", VersionField = "version")] public class City { protected Int64 id; protected Int64 version; [FieldAlias("id")] public Int64 Id { get { return id; } } [FieldAlias("version")] public Int64 Version { get { return version; } set { version = value; } } private string name; public string Name { get { return name; } set { name= value; } } }In forward mapping wizard I set identity single field and autoinc verify by version with field version.
Then I created a web page with a RadGrid and and OpenAccessDatasource, in the MasterTableView dataKeyValues="Id,Version"
I can add rows but when I try to update or delete an already existing row I get the following error:
Telerik.OpenAccess.Exceptions.NoSuchObjectException: No row for FormaModel.Citiy ('cities') GenericOID@a City id=0 NOTRES
[NoSuchObjectException: No row for FormaModel.NivelEstudios ('cities') GenericOID@a City id=0 NOTRES ] Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e) +28 Telerik.OpenAccess.RT.ExceptionWrapper.Throw() +34 OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.handleException(Exception x) +1455 OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.getObjectById(Object oid, Boolean validate) +1129 OpenAccessRuntime.DataObjects.UnsynchronizedPMProxy.getObjectById(Object o, Boolean b) +61 Telerik.OpenAccess.RT.ObjectScope.GetObjectById(IObjectId oid) +147I have been trying diferent versions for the last 3 days but with any success.
Seems like grid is not sending keyvalues for edited row
Thanks,
Miguel