I upgraded from EF 4 to EF6. I cannot find a way to update my objects, as in EF4. EF 4 code
myDb.Refresh(RefreshMode.StoreWins, TerminalSession1.TerminalTransactions);
In EF 6.0, I need to do something like
myDb.Entry(TerminalSession1).Reload();
But I do not know if this will load child objects either.
Is there a better way to do this update?
source
share