You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class OrganizationModule
{
public int Id { get; set; }
public int OldSystemId { get; set; }
public string Name { get; set; } = null!;
public ModuleType Type { get; set; }
public LTree Path { get; set; }
}
and when I will try get any data. I have this error:
"Exception occurred: The 'LTree' property 'OrganizationModule.Path' could not be mapped to the
database type 'ltree' because the database provider does not support mapping 'LTree' properties to 'ltree' 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 usi
ng 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
The text was updated successfully, but these errors were encountered:
Hello. I have next entity class
with this EntityConfig class
It`s generated this migration
But in db snapshot class we have this:
and when I will try get any data. I have this error:
"Exception occurred: The 'LTree' property 'OrganizationModule.Path' could not be mapped to the
database type 'ltree' because the database provider does not support mapping 'LTree' properties to 'ltree' 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 usi
ng 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
The text was updated successfully, but these errors were encountered: