Code: Select all
System.InvalidOperationException: Cannot refresh Entity. Record does not exist.
at Devart.Data.Linq.Provider.DataProvider.GetAutoSyncValues(MetaType type, IDbCommand dbCommand, IList`1 autoSyncFields, IList`1 autoSyncParameters, IList`1 keyFields, IList`1 keyParameters)
at Devart.Data.Linq.o.a(a A_0, MetaType A_1, h A_2, ModifiedMemberInfo[] A_3, Boolean A_4)
at Devart.Data.Linq.l.a(i A_0, z A_1, Object A_2, Boolean A_3)
at Devart.Data.Linq.u.a(l A_0, z A_1, Boolean A_2)
at Devart.Data.Linq.u.a(DataContext A_0, ConflictMode A_1)
at Devart.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
Code: Select all
DB.LogUsers.InsertOnSubmit(new LogUser {
Action = action,
Ip = ip,
Logtime = DateTime.Now,
Message = message,
Sessionid = sessionID,
Success = success,
UserName = userName
});
DB.SubmitChanges();
Code: Select all
This is the first call in the app that inserts anything, we're just record a login timestamp. Any clue as to what's wrong here, some error in our model that doesn't play well with the newer versions? I'm trying to debug the other issue I just posted with Union/Concat...swapping to old versions to make our application work is eating a bit of time here, would appreciate any help. As always, we can zip and send the model if needed. Thanks!