I searched, but did not find much on this subject. Has anyone seen a brief “order of operations” for a DBContext, including things like instantiating, validating, saving, etc.? I'm mostly interested because, using LINQPad with my EF 4.3 Code First, it launches two queries before any of my own. One of them is related to the history of migration, which, as I understand it, is related to the fact that we use EF Migrations and try to find out whether it needs to be updated automatically, and the other for the EdmMetadata table, which I do not understand, because it sounds like this. not necessary if we use EFMigrations.
A lack of understanding of why a single query is called makes me wonder if there are other parts of the DBContext life cycle that I don’t know about, which can be useful for understanding / overriding. Thanks in advance!
source
share