EF Core
Getting started with EF Core
Getting started with EF Core
  • Introduction
    • What is an ORM
    • Entity Framework Core
    • EF Core architecture
    • EF Core Approaches
  • Basics of EF Core
    • Create the project
      • Create the model & context
    • Create migration
    • CRUD using EF
      • Creating many entities
      • Update & Delete
    • Adding a property
      • Add migration
  • Entity Relationships
    • Add related entity
      • Add Vehicle
      • Modify Student
      • Modify context
      • Add migration
    • Manipulate related data
  • Entity Configuration
    • Fluent APIs
      • Frequently used APIs
    • Data Annotations
      • Frequently used annotations
Powered by GitBook
On this page
  • What is ORM?
  • The Object-Relational Impedance Mismatch
  1. Introduction

What is an ORM

NextEntity Framework Core

Last updated 2 years ago

What is ORM?

ORM will allow your application to interact with databases in an object-orientated way. You can define tables and their relationship using the ORM library and then communicate with database tables.

Your applications will be able to interact with databases in terms of objects, where each table will be represented by a model class. These classes will have access to numerous functions from the ORM library and these functions will perform specific database actions like create, read, update, delete, etc.

The Object-Relational Impedance Mismatch

Object-Relational Impedance Mismatch' (sometimes called the 'paradigm mismatch') is just a fancy way of saying that object models and relational models do not work very well together.

RDBMSs represent data in a tabular format (a spreadsheet is a good visualization for those not familiar with RDBMSs), whereas object-oriented languages, such as C# and Java, represent it as an interconnected graph of objects.

Loading and storing graphs of objects using a tabular relational database exposes us to many mismatch problems. These topics are beyond the scope of this discussion, nevertheless you can get a fair idea here:

What is Object/Relational Mapping? - Hibernate ORMHibernate
Logo