# Контекст

[Здесь](/azimut/dokumentaciya/osnovnye-obekty/sushnost.md) мы разобрались что такое сущность и для чего она нужна. Но сущность в голом виде нас не интересует. Мы хотим как минимум ее загружать и сохранять обратно в базу. Для этих целей существует еще один объект - Контекст.

В Контексте мы указываем с какими сущностями он будет работать. Например "Контекст Заказов" будет работать с сущностью DP\_Orders. В 99% случаях контекст работает только с одной сущностью. Исключение - контексты для отчетов.

Контекст это контейнер логики, которая прописывается sql скриптами.

Контекстами пользуются другие объекты системы, чтобы работать с данными. Например [Выборка](/azimut/dokumentaciya/osnovnye-obekty/vyborka.md), [Представление](/azimut/dokumentaciya/osnovnye-obekty/predstavlenie.md), WebAPI, Html представление, Отчет.


---

# Agent Instructions: 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:

```
GET https://projects.itproduct.ru/azimut/dokumentaciya/osnovnye-obekty/kontekst.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
