This question is locked. New answers and comments are not allowed.
Hello, I'm new to Telerik and I'm trying having trouble getting a remove and readd to work.
Here is my test code snippet:
InspectionReport testNewIR = CopyIR(iScope, ir); |
string IR_ID = irID.ToString(); |
InspectionReport air = InspectionReport.LoadIR(IR_ID, iScope); |
iScope.Transaction.Begin(); |
iScope.Remove(air); |
iScope.Transaction.Commit(); |
iScope.Transaction.Begin(); |
iScope.Add(testNewIR); |
iScope.Transaction.Commit(); |
Here is the exception that I'm getting:
"Instance of 'ppiatm.QAReporter.Data.ActionItem' with identity '714015106-3c49cf84-361b-4805-a8aa-946f0fc04c0d' already exists in the cache of the object scope."
The ActionItem was actually removed from the database, but for some reason it's still in the IScope cache.
What I'm trying to do is update the local database with an updated object from a central server.
Can anyone point me to what I'm doing wrong?
thanks,
Gene