1.what Is Entity Framework Core
1.what Is Entity Framework Core
What is ORM?
An ORM (Object-Relational Mapper) framework like Entity Framework (EF) Core helps developers by
automatically creating classes that represent database tables and generating SQL queries to interact
with those tables. This eliminates the need for developers to write a lot of manual data access code,
making it easier and faster to work with databases in applications.
Data access code refers to the code that developers write to interact
with a database. This includes tasks such as connecting to the
database, querying data, inserting, updating, and deleting records
(CRUD operations), and managing transactions. With an ORM
framework like Entity Framework Core, much of this code is
abstracted away, and developers can work with databases using
high-level programming constructs rather than writing SQL queries
directly.
The ORM Framework sits between our application code and the
Database. It eliminates the need for most custom data-access
codes we usually write without an ORM.
EF Core Development Approaches
Entity Framework Core supports two development approaches. They are
as follows:
1. Code-First Approach
2. Database-First Approach
So, when you use EF Core with SQL Server, the SQL Server
database provider for EF Core knows how to translate your C#
code into SQL queries that SQL Server can understand. This
includes things like how to query the database, how to update
records, and how to handle transactions, all in a way that is specific
to SQL Server.
On the other hand, if you switch to using SQLite with EF Core, the
SQLite database provider for EF Core will handle these operations
in a way that is specific to SQLite.
1. Entity Framework (EF) 6.x is a stable and fully tested ORM for .NET
Framework applications,