Entity Framework Core (CRUD Operation in .NET Core 3.0)

Опубликовано: 30 Сентябрь 2024
на канале: DotNet Core Central
16,978
180

Entity Framework Core is the .Net Core version of Entity Framework. Which is an ORM (Object Relational Mapper) tool for .Net Framework to work with databases.
Entity Framework Core has the following features, which differentiates it from the classic Entity Framework:

1. It is cross-platform (by the virtue of being built for .Net Core)
2. Extensible
3. And lightweight compared to classic Entity Framework

The high-level topics, that I am going to cover in this video are:

1. Using Entity Framework Core to Create a new record in SQL Server database
2. Using Entity Framework Core to Update an existing record in SQL Server database
3. Finally, using Entity Framework Core to Delete an existing record in SQL Server database

Entity Framework Core supports multiple databases. SQL Server being the most common one.

Conclusion:
Implementing ORM functionality with Entity Framework Core is extremely simple and easy. I am pleasantly surprised by how far the Entity Framework has come and the simplicity it has achieved.

Most importantly, it is very easy to use either custom SQL or Stored Procedures with Entity Framework Core apart from using the default behavior. The transactional code is also very familiar as in ADO.Net.

Blog: https://dotnetcorecentral.com/blog/en...