This article defines the Entity Framework and how it is used in C#Bot applications.
The Entity Framework is a lightweight, extensible, open-source, and cross-platform framework which serves as an Object-Relational Mapper (ORM) for .NET. It is the library which handles the database connection and data access layer of a .NET Core application; it is essentially a collection of libraries which connects the objects in the C# code with those in the database. By allowing developers to work with their database using these .NET objects, this framework eliminates the need for most data-access queries.
Entity Framework Core works with PostgreSQL, which is the database used by our projects.
- Recommended tutorial: Microsoft ‘Getting Started with EF Core’
- Documentation: Entity Framework Core Documentation