Изменения документа Сценарии
Редактировал(а) Alexandr Fokin 2024/12/07 13:48
<
>
отредактировано Alexandr Fokin
на 2024/02/25 21:00
на 2024/02/25 21:00
отредактировано Alexandr Fokin
на 2024/03/01 13:05
на 2024/03/01 13:05
Изменить комментарий:
К данной версии нет комментариев
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -2,7 +2,7 @@ 2 2 |(% style="width:141px" %)[[JSON>>doc:Разработка.Схемы данных, контракты, форматы.Text.JSON.WebHome]] тип данных|(% style="width:1372px" %)((( 3 3 |(% style="width:117px" %) |(% style="width:1238px" %)Can JSONB GIN indexes be specified in CodeFirst EntityFramework with NPGSQL? 4 4 [[https:~~/~~/stackoverflow.com/questions/54618858/can-jsonb-gin-indexes-be-specified-in-codefirst-entityframework-with-npgsql>>https://stackoverflow.com/questions/54618858/can-jsonb-gin-indexes-be-specified-in-codefirst-entityframework-with-npgsql]] 5 -|(% style="width:117px" %)Тип с ущности|(% style="width:1238px" %)(((5 +|(% style="width:117px" %)Тип столбца и свойства|(% style="width:1238px" %)((( 6 6 JSON Mapping 7 7 [[https:~~/~~/www.npgsql.org/efcore/mapping/json.html?tabs=data-annotations%2Cpoco>>https://www.npgsql.org/efcore/mapping/json.html?tabs=data-annotations%2Cpoco]] 8 8 ... ... @@ -11,7 +11,13 @@ 11 11 ))) 12 12 |(% style="width:117px" %)Отчистка JsonDocument|(% style="width:1238px" %)1) Вызываем Dispose в setter для предыдущего значения. 13 13 2) Делаем сущность Disposable и строим отчистку через Dispose DbContext. 14 +|(% style="width:117px" %)Проблема форматирования|(% style="width:1238px" %)((( 15 +Проблема указания параметров форматирования, с которыми будет выполняться чтение и запись json столбца. 16 + 17 +Serialization options for System.Text.Json support 18 +[[https:~~/~~/github.com/npgsql/efcore.pg/issues/1107>>https://github.com/npgsql/efcore.pg/issues/1107]] 14 14 ))) 20 +))) 15 15 |(% style="width:141px" %)Parameters|(% style="width:1372px" %){{code language="c#"}}public static class QueryParameterExtensions 16 16 { 17 17 public static NpgsqlParameter StructToDbParameter<T>(