> For the complete documentation index, see [llms.txt](https://raviram.gitbook.io/ef-core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raviram.gitbook.io/ef-core/introduction/what-is-an-orm.md).

# What is an ORM

## 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.

<figure><img src="/files/XM2YpoG4J12GW6sbKBj4" alt=""><figcaption></figcaption></figure>

### 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.&#x20;

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.&#x20;

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:

{% embed url="<https://hibernate.org/orm/what-is-an-orm/>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://raviram.gitbook.io/ef-core/introduction/what-is-an-orm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
