RelationalStrings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
String resources used in EF exceptions, etc.
These strings are exposed publicly for use by database providers and extensions. It is unusual for application code to need these strings.
public static class RelationalStrings
type RelationalStrings = class
Public Class RelationalStrings
- Inheritance
-
RelationalStrings
Properties
BadCheckConstraintString |
Unable to deserialize check constraint from model metadata. See inner exception for details. |
BadSequenceString |
Obsolete.
Unable to deserialize a sequence from model metadata. See inner exception for details. |
BadSequenceType |
Invalid type for sequence. Valid types are long (the default), int, short, byte and decimal. |
CannotChangeWhenOpen |
The instance of DbConnection is currently in use. The connection can only be changed when the existing connection is not being used. |
CannotCompareComplexTypeToNull |
Comparing complex types to null is not supported. |
CannotSetAliasOnJoin |
Join expressions have no aliases; set the alias on the enclosed table expression. |
ClientGroupByNotSupported |
Unable to translate the given 'GroupBy' pattern. Call 'AsEnumerable' before 'GroupBy' to evaluate it client-side. |
ConflictingAmbientTransaction |
An ambient transaction has been detected. The ambient transaction needs to be completed before starting a new transaction on this connection. |
ConflictingEnlistedTransaction |
The connection is currently enlisted in a transaction. The enlisted transaction needs to be completed before starting a new transaction. |
ConnectionAndConnectionString |
Both an existing DbConnection and a connection string have been configured. When an existing DbConnection is used the connection string must be set on that connection. |
DatabaseModelMissing |
Obsolete.
The database model hasn't been initialized. The model needs to be finalized and processed with 'RelationalModelConvention' before the database model can be accessed. |
DistinctOnCollectionNotSupported |
Using 'Distinct' operation on a projection containing a collection is not supported. |
EmptyCollectionNotSupportedAsInlineQueryRoot |
Empty collections are not supported as inline query roots. |
ErrorMaterializingValue |
An error occurred while reading a database value. See the inner exception for more information. |
ExecuteDeleteOnNonEntityType |
The operation 'ExecuteDelete' requires an entity type which corresponds to the database table to be modified. The current operation is being applied on a non-entity projection. Remove any projection to non-entity types. |
FromSqlNonComposable |
'FromSql' or 'SqlQuery' was called with non-composable SQL and with a query composing over it. Consider calling 'AsEnumerable' after the method to perform the composition on the client side. |
InsufficientInformationToIdentifyElementOfCollectionJoin |
Unable to translate a collection subquery in a projection since either parent or the subquery doesn't project necessary information required to uniquely identify it and correctly generate results on the client side. This can happen when trying to correlate on keyless entity type. This can also happen for some cases of projection before 'Distinct' or some shapes of grouping key in case of 'GroupBy'. These should either contain all key properties of the entity that the operation is applied on, or only contain simple property access expressions. |
InsufficientInformationToIdentifyOuterElementOfCollectionJoin |
Unable to translate collection subquery in projection since the parent query doesn't project key columns of all of it's tables which are required to generate results on client side. This can happen when trying to correlate on keyless entity or when using 'Distinct' or 'GroupBy' operations without projecting all of the key columns. |
InvalidArgumentToExecuteUpdate |
The 'setPropertyCalls' argument to 'ExecuteUpdate' may only contain a chain of 'SetProperty' expressing the properties to be updated. |
InvalidCommandTimeout |
The specified CommandTimeout value is not valid. It must be a positive number. |
InvalidMaxBatchSize |
The specified MaxBatchSize value is not valid. It must be a positive number. |
InvalidMinBatchSize |
The specified MinBatchSize value is not valid. It must be a positive number. |
JsonEmptyString |
The database returned the empty string when a JSON object was expected. |
JsonEntityWithTableSplittingIsNotSupported |
Table splitting is not supported for entities containing entities mapped to JSON. |
JsonNodeMustBeHandledByProviderSpecificVisitor |
This node should be handled by provider-specific sql generator. |
JsonPropertyNameShouldBeConfiguredOnNestedNavigation |
The JSON property name should only be configured on nested owned navigations. |
JsonQueryLinqOperatorsNotSupported |
Composing LINQ operators over collections inside JSON documents isn't supported or hasn't been implemented by your EF provider. |
MappingFragmentMissingName |
Table name must be specified to configure a table-specific property mapping. |
MethodNeedsToBeImplementedInTheProvider |
This method needs to be implemented in the provider. |
MigrationDownMissing |
The 'Down' method for this migration has not been implemented. Both the 'Up' abd 'Down' methods must be implemented to support reverting migrations. |
MissingOrderingInSelectExpression |
'Reverse' could not be translated to the server because there is no ordering on the server side. |
MissingResultSetWhenSaving |
A result set was was missing when reading the results of a SaveChanges operation; this may indicate that a stored procedure was configured to return results in the EF model, but did not. Check your stored procedure definitions. |
ModificationCommandBatchAlreadyComplete |
Cannot add commands to a completed ModificationCommandBatch. |
ModificationCommandBatchNotComplete |
Cannot execute an ModificationCommandBatch which hasn't been completed. |
MultipleProvidersConfigured |
Multiple relational database provider configurations found. A context can only be configured to use a single database provider. |
NestedAmbientTransactionError |
A root ambient transaction was completed before the nested transaction. The nested transactions should be completed first. |
NoActiveTransaction |
The connection does not have any active transactions. |
NoConnectionOrConnectionString |
A relational store has been configured without specifying either the DbConnection or connection string to use. |
NoDbCommand |
Cannot create a DbCommand for a non-relational query. |
NoneRelationalTypeMappingOnARelationalTypeMappingSource |
'FindMapping' was called on a 'RelationalTypeMappingSource' with a non-relational 'TypeMappingInfo'. |
NoProviderConfigured |
No relational database providers are configured. Configure a database provider using 'OnConfiguring' or by creating an ImmutableDbContextOptions with a configured database provider and passing it to the context. |
NoSetPropertyInvocation |
An 'ExecuteUpdate' call must specify at least one 'SetProperty' invocation, to indicate the properties to be updated. |
OnlyConstantsSupportedInInlineCollectionQueryRoots |
Only constants are supported inside inline collection query roots. |
PendingAmbientTransaction |
This connection was used with an ambient transaction. The original ambient transaction needs to be completed before this connection can be used outside of it. |
ProjectionMappingCountMismatch |
Unable to translate set operations when both sides don't assign values to the same properties in the nominal type. Please make sure that the same properties are included on both sides, and consider assigning default values if a property doesn't require a specific value. |
QueryFromSqlInsideExists |
The query contains usage of 'Any' or 'AnyAsync' operation after 'FromSqlRaw' or 'FromSqlInterpolated' method. Using this raw SQL query more than once isn't currently supported. Replace the use of 'Any' or 'AnyAsync' with 'Count' or 'CountAsync'. See https://go.microsoft.com/fwlink/?linkid=2174053 for more information. |
RelationalNotInUse |
Relational-specific methods can only be used when the context is using a relational database provider. |
SelectCanOnlyBeBuiltOnCollectionJsonQuery |
SelectExpression can only be built over a JsonQueryExpression that represents a collection within the JSON document. |
SelectExpressionUpdateNotSupportedWhileMutable |
SelectExpression.Update() is not supported while the expression is in mutable state. |
SetOperationNotWithinEntityTypeHierarchy |
Set operations (Union, Concat, Intersect, Except) are only supported over entity types within the same type hierarchy. |
SetOperationsNotAllowedAfterClientEvaluation |
Unable to translate set operation after client projection has been applied. Consider moving the set operation before the last 'Select' call. |
SetOperationsOnDifferentStoreTypes |
Unable to translate set operation when matching columns on both sides have different store types. |
SetPropertyMethodInvoked |
The SetProperty<TProperty> method can only be used within 'ExecuteUpdate' method. |
SplitQueryString |
This LINQ query is being executed in split-query mode, and the SQL shown is for the first query to be executed. Additional queries may also be executed depending on the results of the first query. |
SqlFunctionArgumentsAndMappingsMismatch |
The number of argument type mappings does not match the number of arguments. |
SqlFunctionNullArgumentMapping |
One of the specified argument type mappings was null. |
SqlFunctionUnexpectedInstanceMapping |
An instance type mapping was specified without an instance expression. |
TransactionAlreadyStarted |
The connection is already in a transaction and cannot participate in another transaction. |
TransactionAssociatedWithDifferentConnection |
The specified transaction is not associated with the current connection. Only transactions associated with the current connection may be used. |
TransactionSuppressedMigrationInUserTransaction |
User transaction is not supported with a TransactionSuppressed migrations or a retrying execution strategy. |
UpdateStoreException |
An error occurred while saving the entity changes. See the inner exception for details. |
VisitChildrenMustBeOverridden |
'VisitChildren' must be overridden in the class deriving from 'SqlExpression'. |
Methods
AbstractTpc(Object, Object) |
The corresponding CLR type for entity type '{entityType}' cannot be instantiated, but the entity type was mapped to '{storeObject}' using the 'TPC' mapping strategy. Only instantiable types should be mapped. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
CannotProjectNullableComplexType(Object) |
You are attempting to project out complex type '{complexType}' via an optional navigation; that is currently not supported. Either project out the complex type in a non-optional context, or project the containing entity type along with the complex type. |
CannotTranslateNonConstantNewArrayExpression(Object) |
The query contained a new array expression containing non-constant elements, which could not be translated: '{newArrayExpression}'. |
CaseElseResultTypeUnexpected(Object, Object) |
The result type of '{elseResultType}' in the else clause is invalid. The expected type is '{resultType}'. |
CaseWhenClauseResultTypeUnexpected(Object, Object) |
The result type of '{whenResultType}' in a when clause is invalid. The expected type is '{resultType}'. |
CaseWhenClauseTestTypeUnexpected(Object, Object) |
The operand type of '{whenOperandType}' in a when clause is invalid. The expected type is '{expectedWhenOperandType}'. |
CompiledModelFunctionParameterTypeMapping(Object, Object, Object, Object) |
The function parameter '{function}({parameter})' has a custom type mapping configured. Configure it in '{customize}' in a partial '{className}' class instead. |
CompiledModelFunctionTranslation(Object) |
The function '{function}' has a custom translation. Compiled model can't be generated, because custom function translations are not supported. |
CompiledModelFunctionTypeMapping(Object, Object, Object) |
The function '{function}' has a custom type mapping configured. Configure it in '{customize}' in a partial '{className}' class instead. |
ComputedColumnSqlUnspecified(Object, Object) |
The computed column SQL has not been specified for the column '{table}.{column}'. Specify the SQL before using Entity Framework to create the database schema. |
ConflictingColumnServerGeneration(Object, Object, Object) |
{conflictingConfiguration} cannot be set for '{property}' at the same time as {existingConfiguration}. Remove one of these configurations. |
ConflictingOriginalRowValues(Object, Object, Object, Object, Object) |
Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row, but have different original property values for the properties {firstProperty} and {secondProperty} mapped to '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values. |
ConflictingOriginalRowValuesSensitive(Object, Object, Object, Object, Object, Object) |
Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row with the key value '{keyValue}', but have different original property values {firstConflictingValues} and {secondConflictingValues} for the column '{column}'. |
ConflictingRowUpdateTypes(Object, Object, Object, Object) |
An instance of entity type '{firstEntityType}' is marked as '{firstState}', but an instance of entity type '{secondEntityType}' is marked as '{secondState}' and both are mapped to the same row. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. |
ConflictingRowUpdateTypesSensitive(Object, Object, Object, Object, Object, Object) |
The instance of entity type '{firstEntityType}' with the key value '{firstKeyValue}' is marked as '{firstState}', but the instance of entity type '{secondEntityType}' with the key value '{secondKeyValue}' is marked as '{secondState}' and both are mapped to the same row. |
ConflictingRowValues(Object, Object, Object, Object, Object) |
Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row, but have different property values for the properties {firstProperty} and {secondProperty} mapped to '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values. |
ConflictingRowValuesSensitive(Object, Object, Object, Object, Object, Object) |
Instances of types '{firstEntityType}' and '{secondEntityType}' are mapped to the same row with the key value '{keyValue}', but have different property values '{firstConflictingValue}' and '{secondConflictingValue}' for the column '{column}'. |
ConflictingSeedValues(Object, Object, Object) |
A seed entity for entity type '{entityType}' has the same key value as another seed entity mapped to the same table '{table}', but have different values for the column '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values. |
ConflictingSeedValuesSensitive(Object, Object, Object, Object, Object, Object) |
A seed entity for entity type '{entityType}' has the same key value {keyValue} as another seed entity mapped to the same table '{table}', but have different values for the column '{column}' - '{firstValue}', '{secondValue}'. |
ConflictingTypeMappingsInferredForColumn(Object) |
Conflicting type mappings were inferred for column '{column}'. |
ContainerTypeOnNestedOwnedEntityType(Object) |
The entity type '{entityType}' has a container column type configured, but is nested in another owned type. The container column type can only be specified on a top-level owned type mapped to a container. |
ContainerTypeOnNonContainer(Object) |
The entity type '{entityType}' has a container column type configured, but is not mapped to a container column, such as for JSON. The container column type can only be specified on a top-level owned type mapped to a container. |
CreateIndexOperationWithInvalidSortOrder(Object, Object) |
{numSortOrderProperties} values were provided in CreateIndexOperations.IsDescending, but the operation has {numColumns} columns. |
DataOperationNoProperty(Object, Object) |
There is no property mapped to the column '{table}.{column}' which is used in a data operation. Either add a property mapped to this column, or specify the column types in the data operation. |
DataOperationNoTable(Object) |
There is no entity type mapped to the table '{table}' which is used in a data operation. Either add the corresponding entity type to the model, or specify the column types in the data operation. |
DbFunctionExpressionIsNotMethodCall(Object) |
The provided DbFunction expression '{expression}' is invalid. The expression must be a lambda expression containing a single method call to the target static method. Default values can be provided as arguments if required, e.g. '() => SomeClass.SomeMethod(null, 0)' |
DbFunctionGenericMethodNotSupported(Object) |
The DbFunction '{function}' is generic. Mapping generic methods as a DbFunction is not supported. |
DbFunctionInvalidInstanceType(Object, Object) |
The DbFunction '{function}' defined on type '{type}' must be either a static method or an instance method defined on a DbContext subclass. Instance methods on other types are not supported. |
DbFunctionInvalidIQueryableOwnedReturnType(Object, Object) |
The DbFunction '{function}' has an invalid return type '{type}'. Owned entity types cannot be used as the return type of a DbFunction. |
DbFunctionInvalidIQueryableReturnType(Object, Object) |
The DbFunction '{function}' has an invalid return type '{type}'. Non-scalar functions must return 'IQueryable' of a valid entity type. |
DbFunctionInvalidParameterName(Object, Object) |
The DbFunction '{function}' does not have a parameter named '{parameter}'. |
DbFunctionInvalidParameterType(Object, Object, Object) |
The parameter '{parameter}' for the DbFunction '{function}' has an invalid type '{type}'. Ensure the parameter type can be mapped by the current provider. |
DbFunctionInvalidReturnEntityType(Object, Object, Object) |
The DbFunction '{function}' returns '{type}', but '{elementType}' is not a mapped entity type. Ensure that '{elementType}' is included in the model. |
DbFunctionInvalidReturnType(Object, Object) |
The DbFunction '{function}' has an invalid return type '{type}'. Ensure that the return type can be mapped by the current provider. |
DbFunctionNameEmpty(Object) |
The DbFunction '{function}' has no name set. Name is a required property of a DbFunction. |
DbFunctionNonScalarCustomTranslation(Object) |
Cannot set custom translation on the DbFunction '{function}' since it is not a scalar function. |
DbFunctionNullableValueReturnType(Object, Object) |
The DbFunction '{function}' returns a SqlExpression of type '{type}', which is a nullable value type. DbFunctions must return expressions with non-nullable value types, even when they may return null. |
DefaultValueSqlUnspecified(Object, Object) |
The default value SQL has not been specified for the column '{table}.{column}'. Specify the SQL before using Entity Framework to create the database schema. |
DefaultValueUnspecified(Object, Object) |
The default value has not been specified for the column '{table}.{column}'. Specify a value before using Entity Framework to create the database schema. |
DeleteDataOperationNoModel(Object) |
The data deletion operation on '{table}' is not associated with a model. Either add a model to the migration, or specify the column types in all data operations. |
DeleteDataOperationTypesCountMismatch(Object, Object, Object) |
The number of key column types ({typesCount}) doesn't match the number of key columns ({columnsCount}) for the data deletion operation on '{table}'. Provide the same number of key column types and key columns. |
DeleteDataOperationValuesCountMismatch(Object, Object, Object) |
The number of key values ({valuesCount}) doesn't match the number of key columns ({columnsCount}) for the data deletion operation on '{table}'. Provide the same number of key values and key columns. |
DerivedStrategy(Object, Object) |
The derived entity type '{entityType}' was configured with the '{strategy}' mapping strategy. Only the root entity type should be configured with a mapping strategy. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
DerivedTypeTable(Object, Object) |
Obsolete.
The entity type '{entityType}' cannot be mapped to a table because it is derived from '{baseType}'. Only base entity types can be mapped to a table. |
DuplicateCheckConstraint(Object, Object, Object) |
The check constraint '{checkConstraint}' cannot be added to the entity type '{entityType}' because another check constraint with the same name already exists on entity type '{conflictingEntityType}'. |
DuplicateCheckConstraint(Object, Object) |
The check constraint '{checkConstraint}' cannot be added to the entity type '{entityType}' because another check constraint with the same name already exists. |
DuplicateCheckConstraintSqlMismatch(Object, Object, Object, Object, Object) |
The check constraints '{checkConstraint1}' on '{entityType1}' and '{checkConstraint2}' on '{entityType2}' are both mapped to '{checkConstraintName}', but with different defining SQL. |
DuplicateColumnNameCollationMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different collations ('{collation1}' and '{collation2}'). |
DuplicateColumnNameCommentMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different comments ('{comment1}' and '{comment2}'). |
DuplicateColumnNameComputedSqlMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different computed values ('{value1}' and '{value2}'). |
DuplicateColumnNameConcurrencyTokenMismatch(Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but have different concurrency token configurations. |
DuplicateColumnNameDataTypeMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different data types ('{dataType1}' and '{dataType2}'). |
DuplicateColumnNameDefaultSqlMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different default values ('{value1}' and '{value2}'). |
DuplicateColumnNameFixedLengthMismatch(Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but have different fixed length configuration. |
DuplicateColumnNameIsStoredMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different stored computed column settings ('{value1}' and '{value2}'). |
DuplicateColumnNameMaxLengthMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different maximum lengths ('{maxLength1}' and '{maxLength2}'). |
DuplicateColumnNameNullabilityMismatch(Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different column nullability settings. |
DuplicateColumnNameOrderMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use different column orders ('{columnOrder1}' and '{columnOrder2}'). |
DuplicateColumnNamePrecisionMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different precisions ('{precision1}' and '{precision2}'). |
DuplicateColumnNameProviderTypeMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured to use differing provider types ('{type1}' and '{type2}'). |
DuplicateColumnNameSameHierarchy(Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but the properties are contained within the same hierarchy. All properties on an entity type must be mapped to unique different columns. |
DuplicateColumnNameScaleMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but are configured with different scales ('{scale1}' and '{scale2}'). |
DuplicateColumnNameUnicodenessMismatch(Object, Object, Object, Object, Object, Object) |
'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}', but have different unicode configurations. |
DuplicateForeignKeyColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but use different columns ({columnNames1} and {columnNames2}). |
DuplicateForeignKeyDeleteBehaviorMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but configured with different delete behavior ('{deleteBehavior1}' and '{deleteBehavior2}'). |
DuplicateForeignKeyPrincipalColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but referencing different principal columns ({principalColumnNames1} and {principalColumnNames2}). |
DuplicateForeignKeyPrincipalTableMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but referencing different principal tables ('{principalTable1}' and '{principalTable2}'). |
DuplicateForeignKeyTableMismatch(Object, Object, Object, Object, Object, Object, Object) |
The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{foreignKeyName}', but are declared on different tables ('{table1}' and '{table2}'). |
DuplicateForeignKeyUniquenessMismatch(Object, Object, Object, Object, Object, Object) |
The foreign keys {foreignKeyProperties1} on '{entityType1}' and {foreignKeyProperties2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}', but with different uniqueness configurations. |
DuplicateIndexColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different columns ({columnNames1} and {columnNames2}). |
DuplicateIndexFiltersMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different filters ('{filter1}' and '{filter2}'). |
DuplicateIndexSortOrdersMismatch(Object, Object, Object, Object, Object, Object) |
The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different sort orders. |
DuplicateIndexTableMismatch(Object, Object, Object, Object, Object, Object, Object) |
The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{indexName}', but are declared on different tables ('{table1}' and '{table2}'). |
DuplicateIndexUniquenessMismatch(Object, Object, Object, Object, Object, Object) |
The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but with different uniqueness configurations. |
DuplicateKeyColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object) |
The keys {keyProperties1} on '{entityType1}' and {keyProperties2} on '{entityType2}' are both mapped to '{table}.{keyName}', but with different columns ({columnNames1} and {columnNames2}). |
DuplicateKeyTableMismatch(Object, Object, Object, Object, Object, Object, Object) |
The keys {keyProperties1} on '{entityType1}' and {keyProperties2} on '{entityType2}' are both mapped to '{keyName}', but on different tables ('{table1}' and '{table2}'). |
DuplicateSeedData(Object, Object) |
A seed entity for entity type '{entityType}' has the same key value as another seed entity mapped to the same table '{table}'. Key values should be unique across seed entities. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values. |
DuplicateSeedDataSensitive(Object, Object, Object) |
A seed entity for entity type '{entityType}' has the same key value {keyValue} as another seed entity mapped to the same table '{table}'. Key values should be unique across seed entities. |
EitherOfTwoValuesMustBeNull(Object, Object) |
Either {param1} or {param2} must be null. |
EntityShortNameNotUnique(Object, Object, Object) |
The short name for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy must have a unique short name. Either rename one of the types or call modelBuilder.Entity<TEntity>().Metadata.SetDiscriminatorValue("NewShortName"). |
EntitySplittingConflictingMainFragment(Object, Object) |
Entity type '{entityType}' has a split mapping for '{storeObject}', but is it also mapped to the same object. Split mappings should not duplicate the main mapping. |
EntitySplittingHierarchy(Object, Object) |
Entity type '{entityType}' has a split mapping for '{storeObject}', but it also participates in an entity type hierarchy. Split mappings are not supported for hierarchies. |
EntitySplittingMissingPrimaryKey(Object, Object) |
Entity type '{entityType}' has a split mapping for '{storeObject}', but the primary key properties aren't fully mapped. Map all primary key properties to columns on '{storeObject}'. |
EntitySplittingMissingProperties(Object, Object) |
Entity type '{entityType}' has a split mapping for '{storeObject}', but it doesn't map any non-primary key property to it. Map at least one non-primary key property to a column on '{storeObject}'. |
EntitySplittingMissingPropertiesMainFragment(Object, Object) |
Entity type '{entityType}' has a split mapping, but it doesn't map any non-primary key property to the main store object. Keep at least one non-primary key property mapped to a column on '{storeObject}'. |
EntitySplittingMissingRequiredPropertiesOptionalDependent(Object, Object, Object) |
Entity type '{entityType}' has a split mapping and is an optional dependent sharing a store object, but it doesn't map any required non-shared property to the main store object. Keep at least one required non-shared property mapped to a column on '{storeObject}' or mark '{entityType}' as a required dependent by calling '{requiredDependentConfig}'. |
EntitySplittingUnmappedMainFragment(Object, Object, Object) |
Entity type '{entityType}' has a split mapping for '{storeObject}', but it doesn't have a main mapping of the same type. Map '{entityType}' to '{storeObjectType}'. |
EntitySplittingUnmatchedMainTableSplitting(Object, Object, Object, Object) |
Entity type '{entityType}' has a split mapping for '{storeObject}' that is shared with the entity type '{principalEntityType}', but the main mappings of these types do not share a table. Map the split fragments of '{entityType}' to non-shared tables or map the main fragment to '{principalStoreObject}'. |
ErrorMaterializingProperty(Object, Object) |
An error occurred while reading a database value for property '{entityType}.{property}'. See the inner exception for more information. |
ErrorMaterializingPropertyNullReference(Object, Object, Object) |
An error occurred while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was null. |
ErrorMaterializingValueInvalidCast(Object, Object) |
An error occurred while reading a database value. The expected type was '{expectedType}' but the actual value was of type '{actualType}'. |
ErrorMaterializingValueNullReference(Object) |
An error occurred while reading a database value. The expected type was '{expectedType}' but the actual value was null. |
ExecuteDeleteOnTableSplitting(Object) |
The operation 'ExecuteDelete' is being applied on the table '{tableName}' which contains data for multiple entity types. Applying this delete operation will also delete data for other entity type(s), hence it is not supported. |
ExecuteOperationOnEntitySplitting(Object, Object) |
The operation '{operation}' is being applied on entity type '{entityType}', which uses entity splitting. 'ExecuteDelete'/'ExecuteUpdate' operations on entity types using entity splitting is not supported. |
ExecuteOperationOnKeylessEntityTypeWithUnsupportedOperator(Object, Object) |
The operation '{operation}' cannot be performed on keyless entity type '{entityType}', since it contains an operator not natively supported by the database provider. |
ExecuteOperationOnTPC(Object, Object) |
The operation '{operation}' is being applied on entity type '{entityType}', which is using the TPC mapping strategy and is not a leaf type. 'ExecuteDelete'/'ExecuteUpdate' operations on entity types participating in TPC hierarchies is only supported for leaf types. |
ExecuteOperationOnTPT(Object, Object) |
The operation '{operation}' is being applied on entity type '{entityType}', which is using the TPT mapping strategy. 'ExecuteDelete'/'ExecuteUpdate' operations on hierarchies mapped as TPT is not supported. |
ExecuteOperationWithUnsupportedOperatorInSqlGeneration(Object) |
The operation '{operation}' contains a select expression feature that isn't supported in the query SQL generator, but has been declared as supported by provider during translation phase. This is a bug in your EF Core provider, please file an issue. |
ExecuteUpdateSubqueryNotSupportedOverComplexTypes(Object) |
ExecuteUpdate is being used over a LINQ operator which isn't natively supported by the database; this cannot be translated because complex type '{complexType}' is projected out. Rewrite your query to project out the containing entity type instead. |
ExpectedNonNullParameter(Object) |
Expected a non-null value for query parameter '{parameter}'. |
FromSqlMissingColumn(Object) |
The required column '{column}' was not present in the results of a 'FromSql' operation. |
FunctionOverrideMismatch(Object, Object) |
The property '{propertySpecification}' has specific configuration for the function '{function}', but it isn't mapped to a column on that function return. Remove the specific configuration, or map an entity type that contains this property to '{function}'. |
HasDataNotSupportedForEntitiesMappedToJson(Object) |
Can't use HasData for entity type '{entity}'. HasData is not supported for entities mapped to JSON. |
IncompatibleTableCommentMismatch(Object, Object, Object, Object, Object) |
Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and the comment '{comment}' does not match the comment '{otherComment}'. |
IncompatibleTableDerivedRelationship(Object, Object, Object) |
Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and there is a relationship between their primary keys in which '{entityType}' is the dependent, but '{entityType}' has a base entity type mapped to a different table. Either map '{otherEntityType}' to a different table, or invert the relationship between '{entityType}' and '{otherEntityType}'. |
IncompatibleTableExcludedMismatch(Object, Object, Object) |
Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and is excluded from migrations on one entity type but not on the other. Exclude the table from migrations on all entity types mapped to the table. |
IncompatibleTableKeyNameMismatch(Object, Object, Object, Object, Object, Object, Object) |
Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and the name '{keyName}' of the primary key {primaryKey} does not match the name '{otherName}' of the primary key {otherPrimaryKey}. |
IncompatibleTableNoRelationship(Object, Object, Object) |
Cannot use table '{table}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and potentially other entity types, but there is no linking relationship. Add a foreign key to '{entityType}' on the primary key properties and pointing to the primary key on another entity type mapped to '{table}'. |
IncompatibleViewDerivedRelationship(Object, Object, Object) |
Cannot use view '{view}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and there is a relationship between their primary keys in which '{entityType}' is the dependent, but '{entityType}' has a base entity type mapped to a different view. Either map '{otherEntityType}' to a different view, or invert the relationship between '{entityType}' and '{otherEntityType}'. |
IncompatibleViewNoRelationship(Object, Object, Object) |
Cannot use view '{view}' for entity type '{entityType}' since it is being used for entity type '{otherEntityType}' and there is no relationship between their primary keys. |
InconsistentNumberOfArguments(Object, Object, Object) |
'{name}' was constructed with {argumentCount} arguments, but the nullability was defined for {argumentNullabilityCount} arguments. When in doubt use 'false' for nullability argument. |
IncorrectDefaultValueType(Object, Object, Object, Object, Object) |
Cannot set default value '{value}' of type '{valueType}' on property '{property}' of type '{propertyType}' in entity type '{entityType}'. |
InsertDataOperationNoModel(Object) |
The data insertion operation on '{table}' is not associated with a model. Either add a model to the migration, or specify the column types in all data operations. |
InsertDataOperationTypesCountMismatch(Object, Object, Object) |
The number of column types ({typesCount}) doesn't match the number of columns ({columnsCount}) for the data insertion operation on '{table}'. Provide the same number of column types and columns. |
InsertDataOperationValuesCountMismatch(Object, Object, Object) |
The number of values ({valuesCount}) doesn't match the number of columns ({columnsCount}) for the data insertion operation on '{table}'. Provide the same number of values and columns. |
InvalidCommandTimeout(Object) |
The specified 'CommandTimeout' value '{value}' is not valid. It must be a positive number. |
InvalidDerivedTypeInEntityProjection(Object, Object) |
The specified entity type '{derivedType}' is not derived from '{entityType}'. |
InvalidFromSqlArguments(Object, Object) |
A FromSqlExpression has an invalid arguments expression type '{expressionType}' or value type '{valueType}'. |
InvalidKeySelectorForGroupBy(Object, Object) |
The grouping key '{keySelector}' is of type '{keyType}' which is not valid key. |
InvalidMappedFunctionDerivedType(Object, Object, Object) |
The entity type '{entityType}' is mapped to the 'DbFunction' named '{functionName}', but is derived from '{baseEntityType}'. Derived entity types cannot be mapped to a function. |
InvalidMappedFunctionUnmatchedReturn(Object, Object, Object, Object) |
The entity type '{entityType}' is mapped to the 'DbFunction' named '{functionName}' with return type '{returnType}'. Ensure that the mapped function returns 'IQueryable<{clrType}>'. |
InvalidMappedFunctionWithParameters(Object, Object, Object) |
The entity type '{entityType}' is mapped to the 'DbFunction' named '{functionName}' with parameters {parameters}. Ensure that the mapped function doesn't have any parameters. |
InvalidMappedSqlQueryDerivedType(Object, Object) |
The entity type '{entityType}' is mapped to a SQL query, but is derived from '{baseEntityType}'. Derived entity types cannot be mapped to a different SQL query than the base entity type. |
InvalidMappingStrategy(Object, Object) |
The mapping strategy '{mappingStrategy}' specified on '{entityType}' is not supported. |
InvalidMaxBatchSize(Object) |
The specified 'MaxBatchSize' value '{value}' is not valid. It must be a positive number. |
InvalidMinBatchSize(Object) |
The specified 'MinBatchSize' value '{value}' is not valid. It must be a positive number. |
InvalidPropertyInSetProperty(Object) |
The following lambda argument to 'SetProperty' does not represent a valid property to be set: '{propertyExpression}'. |
InvalidValueInSetProperty(Object) |
The following lambda argument to 'SetProperty' does not represent a valid value: '{valueExpression}'. |
JsonCantNavigateToParentEntity(Object, Object, Object) |
Can't navigate from JSON-mapped entity '{jsonEntity}' to its parent entity '{parentEntity}' using navigation '{navigation}'. Entities mapped to JSON can only navigate to their children. |
JsonEntityMappedToDifferentTableOrViewThanOwner(Object, Object, Object, Object) |
Entity '{jsonType}' is mapped to JSON and also to a table or view '{tableOrViewName}', but its owner '{ownerType}' is mapped to a different table or view '{ownerTableOrViewName}'. Every entity mapped to JSON must also map to the same table or view as its owner. |
JsonEntityMappedToDifferentViewThanOwner(Object, Object, Object, Object) |
Entity '{jsonType}' is mapped to JSON and also to a view '{viewName}', but its owner '{ownerType}' is mapped to a different view '{ownerViewName}'. Every entity mapped to JSON must also map to the same view as its owner. |
JsonEntityMissingKeyInformation(Object) |
JSON entity '{jsonEntity}' is missing key information. This is not allowed for tracking queries since EF can't correctly build identity for this entity object. |
JsonEntityMultipleRootsMappedToTheSameJsonColumn(Object, Object) |
Multiple owned root entities are mapped to the same JSON column '{column}' in table '{table}'. Each owned root entity must map to a different column. |
JsonEntityOrCollectionProjectedAtRootLevelInTrackingQuery(Object) |
JSON entity or collection can't be projected directly in a tracked query. Either disable tracking by using '{asNoTracking}' method or project the owner entity instead. |
JsonEntityOwnedByNonJsonOwnedType(Object, Object) |
Owned entity type '{nonJsonType}' is mapped to table '{table}' and contains JSON columns. This is currently not supported. All owned types containing a JSON column must be mapped to a JSON column themselves. |
JsonEntityReferencingRegularEntity(Object) |
Entity type '{jsonEntity}' is mapped to JSON and has a navigation to a regular entity which is not the owner. |
JsonEntityWithDefaultValueSetOnItsProperty(Object, Object) |
Setting a default value on properties of an entity mapped to JSON is not supported. Entity: '{jsonEntity}', property: '{property}'. |
JsonEntityWithExplicitlyConfiguredJsonPropertyNameOnKey(Object, Object) |
Key property '{keyProperty}' on JSON-mapped entity '{jsonEntity}' should not have its JSON property name configured explicitly. |
JsonEntityWithExplicitlyConfiguredKey(Object, Object) |
The property '{entityType}.{property}' is configured as part of the primary key. Explicitly configured primary keys are not supported on entities stored in JSON collections, and any key configuration should be removed. |
JsonEntityWithExplicitlyConfiguredOrdinalKey(Object) |
Entity type '{jsonEntity}' is part of a collection mapped to JSON and has its ordinal key defined explicitly. Only implicitly defined ordinal keys are supported. |
JsonEntityWithIncorrectNumberOfKeyProperties(Object, Object, Object) |
Entity type '{jsonEntity}' has an incorrect number of primary key properties. Expected number is: {expectedCount}, actual number is: {actualCount}. |
JsonEntityWithMultiplePropertiesMappedToSameJsonProperty(Object, Object) |
Entity '{jsonEntity}' is mapped to JSON and contains multiple properties or navigations which are mapped to the same JSON property '{property}'. Each property should map to a unique JSON property. |
JsonEntityWithNonTphInheritanceOnOwner(Object) |
Entity type '{rootType}' references entities mapped to JSON. Only TPH inheritance is supported for those entities. |
JsonEntityWithOwnerNotMappedToTableOrView(Object) |
Entity type '{entity}' references entities mapped to JSON but is not itself mapped to a table or a view. This is not supported. |
JsonErrorExtractingJsonProperty(Object, Object) |
An error occurred while reading a JSON value for property '{entityType}.{propertyName}'. See the inner exception for more information. |
JsonProjectingCollectionElementAccessedUsingParmeterNoTrackingWithIdentityResolution(Object, Object) |
Using a parameter to access the element of a JSON collection '{entityTypeName}' is not supported when using '{asNoTrackingWithIdentityResolution}'. Use a constant, or project the entire JSON entity collection instead. |
JsonProjectingEntitiesIncorrectOrderNoTrackingWithIdentityResolution(Object, Object) |
When using '{asNoTrackingWithIdentityResolution}' entities mapped to JSON must be projected in a particular order. Project entire collection of entities '{entityTypeName}' before its individual elements. |
JsonProjectingQueryableOperationNoTrackingWithIdentityResolution(Object) |
Projecting queryable operations on JSON collection is not supported for '{asNoTrackingWithIdentityResolution}'. |
JsonReaderInvalidTokenType(Object) |
Invalid token type: '{tokenType}'. |
JsonRequiredEntityWithNullJson(Object) |
Entity {entity} is required but the JSON element containing it is null. |
JsonValueReadWriterMissingOnTypeMapping(Object, Object, Object) |
Type mapping type '{typeMapping}', which is being used on property '{property}' on entity type '{entityType}' in a JSON document, has not defined a JsonValueReaderWriter. |
KeylessMappingStrategy(Object, Object) |
The mapping strategy '{mappingStrategy}' used for '{entityType}' is not supported for keyless entity types. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
LastUsedWithoutOrderBy(Object) |
Queries performing '{method}' operation must have a deterministic sort order. Rewrite the query to apply an 'OrderBy' operation on the sequence before calling '{method}'. |
MappedFunctionNotFound(Object, Object) |
The entity type '{entityType}' is mapped to the DbFunction named '{functionName}', but no DbFunction with that name was found in the model. Ensure that the entity type mapping is configured using the model name of a function in the model. |
MethodOnNonTphRootNotSupported(Object, Object) |
Using '{methodName}' on DbSet of '{entityType}' is not supported since '{entityType}' is part of hierarchy and does not contain a discriminator property. |
MethodOnNonTPHRootNotSupported(Object, Object) |
Using '{methodName}' on DbSet of '{entityType}' is not supported since '{entityType}' is part of hierarchy and does not contain a discriminator property. |
MigrationNotFound(Object) |
The migration '{migrationName}' was not found. |
MigrationSqlGenerationMissing(Object) |
SQL generation for the operation '{operation}' is not supported by the current database provider. Database providers must implement the appropriate method in 'MigrationsSqlGenerator' to support this operation. |
MissingConcurrencyColumn(Object, Object, Object) |
Entity type '{entityType}' doesn't contain a property mapped to the store-generated concurrency token column '{missingColumn}' which is used by another entity type sharing the table '{table}'. Add a store-generated property to '{entityType}' which is mapped to the same column; it may be in shadow state. |
MissingIdentifyingProjectionInDistinctGroupBySubquery(Object) |
Unable to translate collection subquery in projection since it uses 'Distinct' or 'Group By' operations and doesn't project key columns of all of it's tables which are required to generate results on client side. Missing column: {column}. Either add column(s) to the projection or rewrite query to not use 'GroupBy'/'Distinct' operation. |
MissingParameterValue(Object) |
No value was provided for the required parameter '{parameter}'. |
ModificationCommandInvalidEntityState(Object, Object) |
Cannot save changes for an entity of type '{entityType}' in state '{entityState}'. This may indicate a bug in Entity Framework, please open an issue at https://go.microsoft.com/fwlink/?linkid=2142044. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values of the entity. |
ModificationCommandInvalidEntityState(Object) |
Cannot save changes for an entity in state '{entityState}'. |
ModificationCommandInvalidEntityStateSensitive(Object, Object, Object) |
Cannot save changes for an entity of type '{entityType}' with primary key values {keyValues} in state '{entityState}'. This may indicate a bug in Entity Framework, please open an issue at https://go.microsoft.com/fwlink/?linkid=2142044. |
MultipleEntityPropertiesInSetProperty(Object, Object) |
Multiple 'SetProperty' invocations refer to properties on different entity types ('{entityType1}' and '{entityType2}'). A single 'ExecuteUpdate' call can only update the properties of a single entity type. |
MultipleTablesInExecuteUpdate(Object, Object) |
Multiple 'SetProperty' invocations refer to different tables ('{propertySelector1}' and '{propertySelector2}'). A single 'ExecuteUpdate' call can only update the columns of a single table. |
NamedConnectionStringNotFound(Object) |
A named connection string was used, but the name '{name}' was not found in the application's configuration. Note that named connection strings are only supported when using 'IConfiguration' and a service provider, such as in a typical ASP.NET Core application. See https://go.microsoft.com/fwlink/?linkid=850912 for more information. |
NestedCollectionsNotSupported(Object, Object, Object) |
The property '{propertyType} {type}.{property}' is a primitive collection of a primitive collection. Nested primitive collections are not yet supported with relational database providers. |
NoAliasOnTable(Object) |
No alias is defined on table: '{table}'. |
NonConstantOrParameterAsInExpressionValue(Object) |
Expression of type '{type}' isn't supported in the values of an InExpression; only constants and parameters are supported. |
NonQueryTranslationFailedWithDetails(Object, Object) |
The LINQ expression '{expression}' could not be translated. Additional information: {details} See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. |
NonScalarFunctionCannotBeNullable(Object) |
Cannot set 'IsNullable' on DbFunction '{functionName}' since the function does not represent a scalar function. |
NonScalarFunctionParameterCannotPropagatesNullability(Object, Object) |
Cannot set 'PropagatesNullability' on parameter '{parameterName}' of DbFunction '{functionName}' since function does not represent a scalar function. |
NonTphDiscriminatorValueNotString(Object, Object) |
The specified discriminator value '{value}' for '{entityType}' is not a string. Configure a string discriminator value instead. |
NonTphMappingStrategy(Object, Object) |
The mapping strategy '{mappingStrategy}' specified on '{entityType}' is not supported for entity types with a discriminator. |
NonTphStoredProcedureClash(Object, Object, Object) |
Both '{entityType}' and '{otherEntityType}' are mapped to the stored procedure '{sproc}'. All the entity types in a non-TPH hierarchy (one that doesn't have a discriminator) must be mapped to different stored procedures. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
NonTphTableClash(Object, Object, Object) |
Both '{entityType}' and '{otherEntityType}' are mapped to the table '{table}'. All the entity types in a non-TPH hierarchy (one that doesn't have a discriminator) must be mapped to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
NonTPHTableClash(Object, Object, Object) |
Both '{entityType}' and '{otherEntityType}' are mapped to the table '{table}'. All the entity types in a hierarchy that don't have a discriminator must be mapped to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
NonTphViewClash(Object, Object, Object) |
Both '{entityType}' and '{otherEntityType}' are mapped to the view '{view}'. All the entity types in a non-TPH hierarchy (one that doesn't have a discriminator) must be mapped to different views. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
NonTPHViewClash(Object, Object, Object) |
Both '{entityType}' and '{otherEntityType}' are mapped to the view '{view}'. All the entity types in a hierarchy that don't have a discriminator must be mapped to different views. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
NullKeyValue(Object, Object) |
Unable to modify a row in table '{table}' because its key column '{keyColumn}' is null. |
NullTypeMappingInSqlTree(Object) |
Expression '{sqlExpression}' in the SQL tree does not have a type mapping assigned. |
OneOfThreeValuesMustBeSet(Object, Object, Object) |
Exactly one of '{param1}', '{param2}' or '{param3}' must be set. |
OneOfTwoValuesMustBeSet(Object, Object) |
Exactly one of '{param1}' or '{param2}' must be set. |
OptionalDependentWithDependentWithoutIdentifyingProperty(Object) |
Entity type '{entityType}' is an optional dependent using table sharing and containing other dependents without any required non shared property to identify whether the entity exists. If all nullable properties contain a null value in database then an object instance won't be created in the query causing nested dependent's values to be lost. Add a required property to create instances with null values for other properties or mark the incoming navigation as required to always create an instance. |
ParameterNotObjectArray(Object) |
Cannot use the value provided for parameter '{parameter}' because it isn't assignable to type object[]. |
PropertyNotMapped(Object, Object, Object, Object) |
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'. |
PropertyNotMappedToTable(Object, Object, Object) |
The property '{property}' on entity type '{entityType}' is not mapped to '{table}'. |
ReadonlyEntitySaved(Object) |
The entity type '{entityType}' is not mapped to a table, therefore the entities cannot be persisted to the database. Call 'ToTable' in 'OnModelCreating' to map it to a table. |
RelationalCloneNotImplemented(Object) |
The '{mapping}' does not support 2.2 style type mapping. The database provider needs to be updated to support the full set of mapping customization. |
SelectExpressionNonTphWithCustomTable(Object) |
Cannot create a 'SelectExpression' with a custom 'TableExpressionBase' since the result type '{entityType}' is part of a hierarchy and does not contain a discriminator property. |
SelectExpressionNonTPHWithCustomTable(Object) |
Cannot create a 'SelectExpression' with a custom 'TableExpressionBase' since the result type '{entityType}' is part of a hierarchy and does not contain a discriminator property. |
SetOperationOverDifferentStructuralTypes(Object, Object) |
Set operations over different entity or complex types are not supported ('{type1}' and '{type2}'). |
SetOperationsRequireAtLeastOneSideWithValidTypeMapping(Object) |
A set operation '{setOperationType}' requires valid type mapping for at least one of its sides. |
SharedRowEntryCountMismatch(Object, Object, Object, Object) |
The entity of type '{entityType}' is sharing the table '{tableName}' with entities of type '{missingEntityType}', but there is no entity of this type with the same key value that has been marked as '{state}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. |
SharedRowEntryCountMismatchSensitive(Object, Object, Object, Object, Object) |
The entity of type '{entityType}' is sharing the table '{tableName}' with entities of type '{missingEntityType}', but there is no entity of this type with the same key value '{keyValue}' that has been marked as '{state}'. |
SqlQueryOverrideMismatch(Object, Object) |
The property '{propertySpecification}' has specific configuration for the SQL query '{query}', but isn't mapped to a column on that query. Remove the specific configuration, or map an entity type that contains this property to '{query}'. |
SqlQueryUnmappedType(Object) |
The element type '{elementType}' used in 'SqlQuery' method is not natively supported by your database provider. Either use a supported element type, or use ModelConfigurationBuilder.DefaultTypeMapping to define a mapping for your type. |
StoredKeyTypesNotConvertable(Object, Object, Object, Object) |
The foreign key column '{fkColumnName}' has '{fkColumnType}' values which cannot be compared to the '{pkColumnType}' values of the associated principal key column '{pkColumnName}'. To use 'SaveChanges` or 'SaveChangesAsync', foreign key column types must be comparable with principal key column types. |
StoredProcedureCurrentValueParameterOnDelete(Object, Object) |
Current value parameter '{parameter}' is not allowed on delete stored procedure '{sproc}'. Use HasOriginalValueParameter() instead. |
StoredProcedureDeleteNonKeyProperty(Object, Object, Object) |
The property '{entityType}.{property}' is mapped to a parameter of the stored procedure '{sproc}', but only concurrency token and key properties are supported for Delete stored procedures. |
StoredProcedureDuplicateOriginalValueParameter(Object, Object) |
The original value parameter for the property '{property}' cannot be added to the stored procedure '{sproc}' because another original value parameter for this property already exists. |
StoredProcedureDuplicateParameter(Object, Object) |
The parameter for the property '{property}' cannot be added to the stored procedure '{sproc}' because another parameter for this property already exists. |
StoredProcedureDuplicateParameterName(Object, Object) |
The parameter '{parameter}' cannot be added to the stored procedure '{sproc}' because another parameter with this name already exists. |
StoredProcedureDuplicateResultColumn(Object, Object) |
The result column for the property '{property}' cannot be added to the stored procedure '{sproc}' because another result column for this property already exists. |
StoredProcedureDuplicateResultColumnName(Object, Object) |
The result column '{column}' cannot be added to the stored procedure '{sproc}' because another result column with this name already exists. |
StoredProcedureDuplicateRowsAffectedParameter(Object) |
The rows affected parameter cannot be added to the stored procedure '{sproc}' because the rows affected are already returned via another parameter, via the stored procedure return value or via a result column. |
StoredProcedureDuplicateRowsAffectedResultColumn(Object) |
The rows affected result column cannot be added to the stored procedure '{sproc}' because the rows affected are already returned via another column, via a parameter or via the stored procedure return value. |
StoredProcedureGeneratedPropertiesNotMapped(Object, Object, Object) |
The entity type '{entityType}' is mapped to the stored procedure '{sproc}', however the store-generated properties {properties} are not mapped to any output parameter or result column. |
StoredProcedureInputParameterForInsertNonSaveProperty(Object, Object, Object, Object, Object) |
Input parameter '{parameter}' of insert stored procedure '{sproc}' is mapped to property '{property}' of entity type '{entityType}', but that property is configured with BeforeSaveBehavior '{behavior}', and so cannot be saved on insert. |
StoredProcedureInputParameterForUpdateNonSaveProperty(Object, Object, Object, Object, Object) |
Input parameter '{parameter}' of update stored procedure '{sproc}' is mapped to property '{property}' of entity type '{entityType}', but that property is configured with AfterSaveBehavior '{behavior}', and so cannot be saved on update. You may need to use HasOriginalValueParameter() instead of HasParameter(). |
StoredProcedureKeyless(Object, Object) |
The keyless entity type '{entityType}' was configured to use '{sproc}'. An entity type requires a primary key to be able to be mapped to a stored procedure. |
StoredProcedureNoName(Object, Object) |
The entity type '{entityType}' was configured to use '{sproc}', but the store name was not specified. Configure the stored procedure name explicitly. |
StoredProcedureOriginalValueParameterOnInsert(Object, Object) |
Original value parameter '{parameter}' is not allowed on insert stored procedure '{sproc}'. Use HasParameter() instead. |
StoredProcedureOutputParameterConflict(Object, Object, Object) |
The property '{entityType}.{property}' is mapped to an output parameter of the stored procedure '{sproc}', but it is also mapped to an output original value output parameter. A store-generated property can only be mapped to one output parameter. |
StoredProcedureOutputParameterNotGenerated(Object, Object, Object) |
The property '{entityType}.{property}' is mapped to an output parameter of the stored procedure '{sproc}', but it is not configured as store-generated. Either configure it as store-generated or don't configure the parameter as output. |
StoredProcedureOverrideMismatch(Object, Object) |
The property '{propertySpecification}' has specific configuration for the stored procedure '{sproc}', but it isn't mapped to a parameter or a result column on that stored procedure. Remove the specific configuration, or map an entity type that contains this property to '{sproc}'. |
StoredProcedureParameterInvalidConfiguration(Object, Object, Object) |
'{facet}' cannot be configured for the parameter '{parameter}' of the stored procedure '{sproc}'. |
StoredProcedureParameterInvalidDirection(Object, Object, Object) |
Unsupported direction '{direction}' was specified for the parameter '{parameter}' of the stored procedure '{sproc}'. |
StoredProcedureParameterNotFound(Object, Object, Object) |
No property named '{property}' found on the entity type '{entityType}' corresponding to the parameter on the stored procedure '{sproc}' |
StoredProcedurePropertiesNotMapped(Object, Object, Object) |
The entity type '{entityType}' is mapped to the stored procedure '{sproc}', however the properties {properties} are not mapped to any parameter or result column. |
StoredProcedureResultColumnDelete(Object, Object, Object) |
The property '{entityType}.{property}' is mapped to a result column of the stored procedure '{sproc}', but store-generated values are not supported for Delete stored procedures. |
StoredProcedureResultColumnNotFound(Object, Object, Object) |
No property named '{property}' found on the entity type '{entityType}' corresponding to the result column on the stored procedure '{sproc}' |
StoredProcedureResultColumnNotGenerated(Object, Object, Object) |
The property '{entityType}.{property}' is mapped to a result column of the stored procedure '{sproc}', but it is not configured as store-generated. |
StoredProcedureResultColumnParameterConflict(Object, Object, Object) |
The property '{entityType}.{property}' is mapped to a result column of the stored procedure '{sproc}', but it is also mapped to an output parameter. A store-generated property can only be mapped to one of these. |
StoredProcedureRowsAffectedForInsert(Object) |
A rows affected parameter, result column or return value cannot be configured on stored procedure '{sproc}' because it is used for insertion. Rows affected values are only allowed on stored procedures performing updating or deletion. |
StoredProcedureRowsAffectedNotPopulated(Object) |
Stored procedure '{sproc}' was configured with a rows affected output parameter or return value, but a valid value was not found when executing the procedure. |
StoredProcedureRowsAffectedReturnConflictingParameter(Object) |
The stored procedure '{sproc}' cannot be configured to return the rows affected because a rows affected parameter or a rows affected result column for this stored procedure already exists. |
StoredProcedureRowsAffectedWithResultColumns(Object, Object) |
The entity type '{entityType}' is mapped to the stored procedure '{sproc}' which returns both result columns and a rows affected value. If the stored procedure returns result columns, a rows affected value isn't needed and can be safely removed. |
StoredProcedureTableSharing(Object, Object, Object) |
Both entity type '{entityType1}' and '{entityType2}' were configured to use '{sproc}', stored procedure sharing is not supported. Specify different names for the corresponding stored procedures. |
StoredProcedureTphDuplicate(Object, Object, Object) |
Both '{entityType}' and '{otherEntityType}' are explicitly mapped to the stored procedure '{sproc}' using the 'TPH' mapping strategy. Configure the stored procedure mapping on the root entity type, including all parameters for the derived types. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
StoredProcedureUnmapped(Object) |
The entity type '{entityType}' was configured to use some stored procedures and is not mapped to any table. An entity type that isn't mapped to a table must be mapped to insert, update and delete stored procedures. |
SubqueryOverComplexTypesNotSupported(Object) |
The query requires a subquery over complex type '{complexType}'. Subqueries over complex types are currently unsupported. |
TableExpressionBaseWithoutCloningLogic(Object, Object, Object, Object, Object) |
Expression type '{expressionType}' does not implement proper cloning logic. Every expression derived from '{tableExpressionBase}' must implement '{clonableTableExpressionBase}' interface or have it's cloning logic added to the '{cloningExpressionVisitor}' inside '{selectExpression}'. |
TableNotMappedEntityType(Object, Object) |
The entity type '{entityType}' is not mapped to the store object '{table}'. |
TableOverrideMismatch(Object, Object) |
The property '{propertySpecification}' has specific configuration for the table '{table}', but isn't mapped to a column on that table. Remove the specific configuration, or map an entity type that contains this property to '{table}'. |
TableValuedFunctionNonTph(Object, Object) |
The element type of the result of '{dbFunction}' is mapped to '{entityType}'. This is not supported since '{entityType}' is part of hierarchy but does not contain a discriminator property. Only TPH hierarchies can be mapped to a TVF. |
TableValuedFunctionNonTPH(Object, Object) |
The element type of the result of '{dbFunction}' is mapped to '{entityType}'. This is not supported since '{entityType}' is part of hierarchy and does not contain a discriminator property. |
TimeoutTooBig(Object) |
Timeout must be less than or equal to Int32.MaxValue (2147483647) seconds. Provided timeout: {seconds} seconds. |
TimeoutTooSmall(Object) |
Timeout must be greater than or equal to zero. Provided timeout: {seconds} seconds. |
TooFewReaderFields(Object, Object) |
The underlying reader doesn't have as many fields as expected. Expected: {expected}, actual: {actual}. |
TpcTableSharing(Object, Object, Object) |
The entity type '{dependentType}' is mapped to '{storeObject}'. However the principal entity type '{principalEntityType}' is also mapped to '{storeObject}' and it's using the TPC mapping strategy. Entity types in a TPC hierarchy can use table-sharing only if they have no derived types. |
TpcTableSharingDependent(Object, Object, Object, Object) |
The entity type '{dependentType}' is mapped to '{storeObject}'. However one of its derived types '{derivedType}' is mapped to '{otherStoreObject}'. Hierarchies using table-sharing cannot be mapped using the TPC mapping strategy. |
TphDbFunctionMismatch(Object, Object, Object, Object) |
'{entityType}' is mapped to the database function '{function}' while '{otherEntityType}' is mapped to the database function '{otherFunction}'. Map all the entity types in the hierarchy to the same database function. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
TphStoredProcedureMismatch(Object, Object, Object, Object) |
'{entityType}' is mapped to the stored procedure '{sproc}' while '{otherEntityType}' is mapped to the stored procedure '{otherSproc}'. Map all the entity types in the hierarchy to the same stored procedure, or remove the discriminator and map them all to different stored procedures. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
TphTableMismatch(Object, Object, Object, Object) |
'{entityType}' is mapped to the table '{table}' while '{otherEntityType}' is mapped to the table '{otherTable}'. Map all the entity types in the hierarchy to the same table, or remove the discriminator and map them all to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
TPHTableMismatch(Object, Object, Object, Object) |
'{entityType}' is mapped to the table '{table}' while '{otherEntityType}' is mapped to the table '{otherTable}'. Map all the entity types in the hierarchy to the same table, or remove the discriminator and map them all to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
TphViewMismatch(Object, Object, Object, Object) |
'{entityType}' is mapped to the view '{view}' while '{otherEntityType}' is mapped to the view '{otherView}'. Map all the entity types in the hierarchy to the same view, or remove the discriminator and map them all to different views. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
TPHViewMismatch(Object, Object, Object, Object) |
'{entityType}' is mapped to the view '{view}' while '{otherEntityType}' is mapped to the view '{otherView}'. Map all the entity types in the hierarchy to the same view, or remove the discriminator and map them all to different views. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information. |
TriggerWithMismatchedTable(Object, Object, Object, Object) |
Trigger '{trigger}' for table '{triggerTable}' is defined on entity type '{entityType}', which is mapped to table '{entityTable}'. See https://aka.ms/efcore-docs-triggers for more information on triggers. |
UnableToBindMemberToEntityProjection(Object, Object, Object) |
Unable to bind '{memberType}.{member}' to an entity projection of '{entityType}'. |
UnableToSplitCollectionProjectionInSplitQuery(Object, Object, Object) |
The query has been configured to use '{splitQueryEnumValue}' and contains a collection in the 'Select' call, which could not be split into separate query. Please remove '{splitQueryMethodName}' if applied or add '{singleQueryMethodName}' to the query. |
UnableToTranslateSetProperty(Object, Object, Object) |
The following 'SetProperty' failed to translate: 'SetProperty({property}, {value})'. {details} |
UnhandledAnnotatableType(Object) |
Unhandled annotatable type '{annotatableType}'. |
UnhandledExpressionInVisitor(Object, Object, Object) |
Unhandled expression '{expression}' of type '{expressionType}' encountered in '{visitor}'. |
UnknownOperation(Object, Object) |
The current migration SQL generator '{sqlGeneratorType}' is unable to generate SQL for operations of type '{operationType}'. |
UnmappedNonTPHOwner(Object, Object, Object, Object) |
The entity type '{ownerType}' is not mapped, so by default the owned type '{navigation}.{ownedType}' will also be unmapped. If this is intended explicitly map the owned type to 'null', otherwise map it to a named '{storeObjectType}'. |
UnsupportedDataOperationStoreType(Object, Object) |
The store type '{type}' used for the column '{column}' in a migration data operation is not supported by the current provider. |
UnsupportedOperatorForSqlExpression(Object, Object) |
Unsupported operator '{nodeType}' specified for expression of type '{expressionType}'. |
UnsupportedPropertyType(Object, Object, Object) |
No relational type mapping can be found for property '{entity}.{property}' and the current provider doesn't specify a default store type for the properties of type '{clrType}'. |
UnsupportedStoreType(Object) |
The store type '{type}' is not supported by the current provider. |
UnsupportedType(Object) |
The current provider doesn't have a store type mapping for properties of type '{clrType}'. |
UpdateConcurrencyException(Object, Object) |
The database operation was expected to affect {expectedRows} row(s), but actually affected {actualRows} row(s); data may have been modified or deleted since entities were loaded. See https://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions. |
UpdateDataOperationKeyTypesCountMismatch(Object, Object, Object) |
The number of key column types ({typesCount}) doesn't match the number of key columns ({columnsCount}) for the data modification operation on '{table}'. Provide the same number of key column types and key columns. |
UpdateDataOperationKeyValuesCountMismatch(Object, Object, Object) |
The number of key values ({valuesCount}) doesn't match the number of key columns ({columnsCount}) for the data modification operation on '{table}'. Provide the same number of key values and key columns. |
UpdateDataOperationNoModel(Object) |
The data modification operation on '{table}' is not associated with a model. Either add a model to the migration, or specify the column types in all data operations. |
UpdateDataOperationRowCountMismatch(Object, Object, Object) |
The number of value rows ({valuesCount}) doesn't match the number of key rows ({keyCount}) for the data modification operation on '{table}'. Provide the same number of value rows and key rows. |
UpdateDataOperationTypesCountMismatch(Object, Object, Object) |
The number of column types ({typesCount}) doesn't match the number of columns ({columnsCount}) for the data modification operation on '{table}'. Provide the same number of column types and columns. |
UpdateDataOperationValuesCountMismatch(Object, Object, Object) |
The number of values ({valuesCount}) doesn't match the number of columns ({columnsCount}) for the data modification operation on '{table}'. Provide the same number of values and columns. |
ViewOverrideMismatch(Object, Object) |
The property '{propertySpecification}' has specific configuration for the view '{view}', however it isn't mapped to a column on that view. Remove the specific configuration or map an entity type that contains this property to '{view}'. |