RelationalStrings.PropertyNotMapped(Object, Object, Object, Object) Method

Definition

The '{propertyType}' property '{entityType}.{property}' could not be mapped to the database type '{storeType}' because the database provider does not support mapping '{propertyType}' properties to '{storeType}' 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'.

C#
public static string PropertyNotMapped (object? propertyType, object? entityType, object? property, object? storeType);

Parameters

propertyType
Object
entityType
Object
property
Object
storeType
Object

Returns

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0