Answer the question
In order to leave comments, you need to log in
What is the difference between EntityFramework Core and older versions?
I'm studying Adam Freeman's book "ASP.NET CORE with examples for professionals"
I've reached the part where I'm working with the database. The author creates an object of models, context, changes the Startup class and fiddles with builders that are incomprehensible to me.
But, since the version used by the author is outdated, I decided to study EF2 on my own on the Internet.
It turned out that to add to the EF project, it is enough to create an object of models and a contex with the definition of the OnConfiguring () method.
Is EF2 really oversimplified or am I doing something wrong?
I'm using ASP.NET CORE 2.0.
Answer the question
In order to leave comments, you need to log in
The Startup class is present in ASP.Net Core applications, in which the application is configured and such a thing as a dependency injection system, you don’t need this to work with EF itself, Startup is specifically the specifics of building an ASP.Net application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question