Configure HierarchyId in modular solution #20814
-
Si I tried to configure it on the src.EntityFramework CoreModule but it doesn't work this is what you guys have in the documentation Unable to create a 'DbContext' of type ''. The exception 'The 'HierarchyId' property 'Node.HierarchyId' could not be mapped to the database type 'hierarchyid' because the database provider does not support mapping 'HierarchyId' properties to 'hierarchyid' columns. Consider mapping to a different database type or converting the property value to a type supported by the database using a value converter. See https://aka.ms/efcore-docs-value-converters for more information. Alternately, exclude the property from the model using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed. HierarchyId must be configured in ProyectContexFactory
|
Beta Was this translation helpful? Give feedback.
Fixed.
HierarchyId must be configured in ProyectContexFactory