Entity Framework Core Scaffolding «Не удалось найти сопоставление типов для столбца с типом данных'ierarchyid '. Пропуск столбца» - PullRequest
0 голосов
/ 18 июня 2020

Я экспериментирую с. net core, entity framework и sqlserver, я подумал, что hierarchyID - идеальный тип данных для того, что я пытаюсь смоделировать. Но когда я сформировал базу данных, EF C не смог отобразить иерархию.

Could not find type mapping for column 'dbo.ingredient.hierarchy_id' with data type 'hierarchyid'. Skipping column.
Could not scaffold the primary key for 'dbo.ingredient'. The following columns in the primary key could not be scaffolded: hierarchy_id.
Unable to generate entity type for table 'dbo.ingredient'.
Could not find type mapping for column 'dbo.ingredient_location.ingredient_id' with data type 'hierarchyid'. Skipping column.
Could not find type mapping for column 'dbo.locations.location' with data type 'geography'. Skipping column.
Could not find type mapping for column 'dbo.pantry_ingredient.ingredient_id' with data type 'hierarchyid'. Skipping column.

Следует ли мне отказаться от идеи использовать этот тип данных или есть работа?

Я искал некоторые решения, но все они требуют написания строительных лесов вручную, и на данный момент я недостаточно уверен, чтобы сделать это

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...