TL;DR;
Can you summarise what happens when I instantiate a instance of class that extends EF DbContext???
Long
I want to learn as much as I can about it and only reading the source code is not being very productive because of the various reference to interfaces and abstract classes...
I was hoping that with a step by step, I would be able to more easily identify which part am dealing with...
I would like to contribute with the project and I want to have a sound understanding of everything...
So, can you describe what happens when I instantiate a class such as this one bellow?:
public class ProductContext : DbContext
{
public DbSet<Category> Categories { get; set; }
public DbSet<Product> Products { get; set; }
}
edit 1
Let me exemplify the kind of answer i'm looking for, using as a example, "starting a car":
First you insert the key in the socket. Turning the key is actually a 3 steps action. When you turn it just a bit, validating that the key fits the lock and powered by the internal battery, the car starts electrical systems, accounting the amount of gas, turns off external lights like break-lights and headlights, turns off A/C and reverts all the power for a internal electric engine, that will turn the main engine.
if you turn it a bit more, sync systems will fire up, alongside the gas pump and the electrical engine, causing the crankshaft to spin and put the pistons in motion, which is the reverse mode of regular operation. If any gears are "set" the car will move and the main engine start will fail. If not the gas pump will spray gas in the piston chamber, the sync system will cause a spark, exploring the gas, and starting the main engine. After that the electric engine will stop, a transformer will enter in action replenishing the main battery.
If the sync system and gas pump continue to function flawlessly, the ignition in the pistons will continue to happen in a 4-cycle manner and the car will be ready to drive. If not the car will die, and the whole process can be repeated.
Now pls note that although "complete" and "technical" various points were not noted, such as oil, water-cooling, mechanics internals of the engine, gear box and others... but if you are capable of doing so PLS do it!