Я экспериментирую с. 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.
Следует ли мне отказаться от идеи использовать этот тип данных или есть работа?
Я искал некоторые решения, но все они требуют написания строительных лесов вручную, и на данный момент я недостаточно уверен, чтобы сделать это