So what is it a framework any different work is a tool we use to access a database more accurately it's
classified as an object relational map her or him which means it maps data in a relational database
into objects of our applications.
In the old days before and his remark we had to do this mapping manually which involved opening a connection
to the database executing a command reading the data.
And finally remember to close the connection with an object relational mapper.
We don't have to do this stuff anymore.
So we work at a higher level of abstraction and that framework provides a class called DB context which
is a gateway to our database IDB context has one or more DB sets which were present tables in our database
.
We use link to query these DB sets and enter the firmware will translate our link where is to sequel
queries at runtime.
It opens a connection to the database reads the data maps of to objects and adds them to DB sets in
our DB context as we add modify or remove objects and this DB sets and the framework keeps track of
these changes.
And then when we ask it to persist the changes again it will automatically generate SQL statements and
executes them on our database.
So this was in February.
Now there are two ways or two workflows to use in editing the framework.
One is called database first.
The other one is called code first and that's one way to cover it.
Next