Man, are you sure that you have enough experience in C# (and compilers in general) to lecture me?
I’m not the one mixing up terminology. You keep saying that SaveChanges
is overridden. It’s not. It cannot be overridden because it’s not virtual. Hiding and overriding behave differently, and the difference may matter here.
There are several layers of inheritance between ObjectContext
and ErpContext
, and it’s not clear which class the code you posted came from. We also don’t know which class Db
is declared as. If the method is hidden in a more derived class than what Db
is declared as, calling Db.SaveChanges()
would invoke the base method.
Okay. You won. You are the guru of programming and architecture. And who am I to challenge your ingenious claims. Therefore, I finally stop communicating with you.
Best wishes.
May I quote this
https://www.epiusers.help/t/simple-one-liner-c-to-retrieve-data-from-a-table/44627/7?u=lbarker
I’m afraid I can’t take credit for how C# works. If you doubt what I’m saying, Google it.
Huh, same guy worked for us