Class RelationalStrings
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
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
- Inheritance
-
RelationalStrings
- Inherited Members
Properties
BadSequenceString
Unable to deserialize a sequence from model metadata. See inner exception for details.
[Obsolete]
public static string BadSequenceString { get; }
Property Value
BadSequenceType
Invalid type for sequence. Valid types are long (the default), int, short, byte and decimal.
public static string BadSequenceType { get; }
Property Value
CannotChangeWhenOpen
The instance of DbConnection is currently in use. The connection can only be changed when the existing connection is not being used.
public static string CannotChangeWhenOpen { get; }
Property Value
ClientGroupByNotSupported
Unable to translate the given 'GroupBy' pattern. Call 'AsEnumerable' before 'GroupBy' to evaluate it client-side.
public static string ClientGroupByNotSupported { get; }
Property Value
ConflictingAmbientTransaction
An ambient transaction has been detected. The ambient transaction needs to be completed before starting a new transaction on this connection.
public static string ConflictingAmbientTransaction { get; }
Property Value
ConflictingEnlistedTransaction
The connection is currently enlisted in a transaction. The enlisted transaction needs to be completed before starting a new transaction.
public static string ConflictingEnlistedTransaction { get; }
Property Value
DistinctOnCollectionNotSupported
Using 'Distinct' operation on a projection containing a collection is not supported.
public static string DistinctOnCollectionNotSupported { get; }
Property Value
ErrorMaterializingValue
An error occurred while reading a database value. See the inner exception for more information.
public static string ErrorMaterializingValue { get; }
Property Value
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.
public static string ExecuteDeleteOnNonEntityType { get; }
Property Value
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.
public static string FromSqlNonComposable { get; }
Property Value
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.
public static string InsufficientInformationToIdentifyElementOfCollectionJoin { get; }
Property Value
InvalidArgumentToExecuteUpdate
The 'setPropertyCalls' argument to 'ExecuteUpdate' may only contain a chain of 'SetProperty' expressing the properties to be updated.
public static string InvalidArgumentToExecuteUpdate { get; }
Property Value
JsonEntityWithTableSplittingIsNotSupported
Table splitting is not supported for entities containing entities mapped to JSON.
public static string JsonEntityWithTableSplittingIsNotSupported { get; }
Property Value
JsonNodeMustBeHandledByProviderSpecificVisitor
This node should be handled by provider-specific sql generator.
public static string JsonNodeMustBeHandledByProviderSpecificVisitor { get; }
Property Value
JsonPropertyNameShouldBeConfiguredOnNestedNavigation
The JSON property name should only be configured on nested owned navigations.
public static string JsonPropertyNameShouldBeConfiguredOnNestedNavigation { get; }
Property Value
MappingFragmentMissingName
Table name must be specified to configure a table-specific property mapping.
public static string MappingFragmentMissingName { get; }
Property Value
MethodNeedsToBeImplementedInTheProvider
This method needs to be implemented in the provider.
public static string MethodNeedsToBeImplementedInTheProvider { get; }
Property Value
MigrationDownMissing
The 'Down' method for this migration has not been implemented. Both the 'Up' abd 'Down' methods must be implemented to support reverting migrations.
public static string MigrationDownMissing { get; }
Property Value
MissingOrderingInSelectExpression
'Reverse' could not be translated to the server because there is no ordering on the server side.
public static string MissingOrderingInSelectExpression { get; }
Property Value
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.
public static string MissingResultSetWhenSaving { get; }
Property Value
ModificationCommandBatchAlreadyComplete
Cannot add commands to a completed ModificationCommandBatch.
public static string ModificationCommandBatchAlreadyComplete { get; }
Property Value
ModificationCommandBatchNotComplete
Cannot execute an ModificationCommandBatch which hasn't been completed.
public static string ModificationCommandBatchNotComplete { get; }
Property Value
MultipleProvidersConfigured
Multiple relational database provider configurations found. A context can only be configured to use a single database provider.
public static string MultipleProvidersConfigured { get; }
Property Value
NestedAmbientTransactionError
A root ambient transaction was completed before the nested transaction. The nested transactions should be completed first.
public static string NestedAmbientTransactionError { get; }
Property Value
NoActiveTransaction
The connection does not have any active transactions.
public static string NoActiveTransaction { get; }
Property Value
NoDbCommand
Cannot create a DbCommand for a non-relational query.
public static string NoDbCommand { get; }
Property Value
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.
public static string NoProviderConfigured { get; }
Property Value
NoSetPropertyInvocation
An 'ExecuteUpdate' call must specify at least one 'SetProperty' invocation, to indicate the properties to be updated.
public static string NoSetPropertyInvocation { get; }
Property Value
NoneRelationalTypeMappingOnARelationalTypeMappingSource
'FindMapping' was called on a 'RelationalTypeMappingSource' with a non-relational 'TypeMappingInfo'.
public static string NoneRelationalTypeMappingOnARelationalTypeMappingSource { get; }
Property Value
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.
public static string PendingAmbientTransaction { get; }
Property Value
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.
public static string ProjectionMappingCountMismatch { get; }
Property Value
RelationalNotInUse
Relational-specific methods can only be used when the context is using a relational database provider.
public static string RelationalNotInUse { get; }
Property Value
SetOperationsNotAllowedAfterClientEvaluation
Unable to translate set operation after client projection has been applied. Consider moving the set operation before the last 'Select' call.
public static string SetOperationsNotAllowedAfterClientEvaluation { get; }
Property Value
SetOperationsOnDifferentStoreTypes
Unable to translate set operation when matching columns on both sides have different store types.
public static string SetOperationsOnDifferentStoreTypes { get; }
Property Value
SetPropertyMethodInvoked
The SetProperty<TProperty> method can only be used within 'ExecuteUpdate' method.
public static string SetPropertyMethodInvoked { get; }
Property Value
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.
public static string SplitQueryString { get; }
Property Value
TransactionAlreadyStarted
The connection is already in a transaction and cannot participate in another transaction.
public static string TransactionAlreadyStarted { get; }
Property Value
TransactionAssociatedWithDifferentConnection
The specified transaction is not associated with the current connection. Only transactions associated with the current connection may be used.
public static string TransactionAssociatedWithDifferentConnection { get; }
Property Value
TransactionSuppressedMigrationInUserTransaction
User transaction is not supported with a TransactionSuppressed migrations.
public static string TransactionSuppressedMigrationInUserTransaction { get; }
Property Value
UpdateStoreException
An error occurred while saving the entity changes. See the inner exception for details.
public static string UpdateStoreException { get; }
Property Value
VisitChildrenMustBeOverridden
'VisitChildren' must be overridden in the class deriving from 'SqlExpression'.
public static string VisitChildrenMustBeOverridden { get; }
Property Value
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.
public static string AbstractTpc(object? entityType, object? storeObject)
Parameters
Returns
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.
public static string CompiledModelFunctionParameterTypeMapping(object? function, object? parameter, object? customize, object? className)
Parameters
Returns
CompiledModelFunctionTranslation(object?)
The function '{function}' has a custom translation. Compiled model can't be generated, because custom function translations are not supported.
public static string CompiledModelFunctionTranslation(object? function)
Parameters
function
object
Returns
CompiledModelFunctionTypeMapping(object?, object?, object?)
The function '{function}' has a custom type mapping configured. Configure it in '{customize}' in a partial '{className}' class instead.
public static string CompiledModelFunctionTypeMapping(object? function, object? customize, object? className)
Parameters
Returns
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.
public static string ComputedColumnSqlUnspecified(object? table, object? column)
Parameters
Returns
ConflictingColumnServerGeneration(object?, object?, object?)
{conflictingConfiguration} cannot be set for '{property}' at the same time as {existingConfiguration}. Remove one of these configurations.
public static string ConflictingColumnServerGeneration(object? conflictingConfiguration, object? property, object? existingConfiguration)
Parameters
Returns
ConflictingOriginalRowValues(object?, object?, object?, object?, object?)
An instance of entity type '{firstEntityType}' and an instance of entity type '{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.
public static string ConflictingOriginalRowValues(object? firstEntityType, object? secondEntityType, object? firstProperty, object? secondProperty, object? column)
Parameters
firstEntityType
objectsecondEntityType
objectfirstProperty
objectsecondProperty
objectcolumn
object
Returns
ConflictingOriginalRowValuesSensitive(object?, object?, object?, object?, object?, object?)
Instances of entity 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}'.
public static string ConflictingOriginalRowValuesSensitive(object? firstEntityType, object? secondEntityType, object? keyValue, object? firstConflictingValues, object? secondConflictingValues, object? column)
Parameters
firstEntityType
objectsecondEntityType
objectkeyValue
objectfirstConflictingValues
objectsecondConflictingValues
objectcolumn
object
Returns
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.
public static string ConflictingRowUpdateTypes(object? firstEntityType, object? firstState, object? secondEntityType, object? secondState)
Parameters
Returns
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.
public static string ConflictingRowUpdateTypesSensitive(object? firstEntityType, object? firstKeyValue, object? firstState, object? secondEntityType, object? secondKeyValue, object? secondState)
Parameters
firstEntityType
objectfirstKeyValue
objectfirstState
objectsecondEntityType
objectsecondKeyValue
objectsecondState
object
Returns
ConflictingRowValues(object?, object?, object?, object?, object?)
Instances of entity 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.
public static string ConflictingRowValues(object? firstEntityType, object? secondEntityType, object? firstProperty, object? secondProperty, object? column)
Parameters
firstEntityType
objectsecondEntityType
objectfirstProperty
objectsecondProperty
objectcolumn
object
Returns
ConflictingRowValuesSensitive(object?, object?, object?, object?, object?, object?)
Instances of entity 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}'.
public static string ConflictingRowValuesSensitive(object? firstEntityType, object? secondEntityType, object? keyValue, object? firstConflictingValue, object? secondConflictingValue, object? column)
Parameters
firstEntityType
objectsecondEntityType
objectkeyValue
objectfirstConflictingValue
objectsecondConflictingValue
objectcolumn
object
Returns
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.
public static string ConflictingSeedValues(object? entityType, object? table, object? column)
Parameters
Returns
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}'.
public static string ConflictingSeedValuesSensitive(object? entityType, object? keyValue, object? table, object? column, object? firstValue, object? secondValue)
Parameters
Returns
CreateIndexOperationWithInvalidSortOrder(object?, object?)
{numSortOrderProperties} values were provided in CreateIndexOperations.IsDescending, but the operation has {numColumns} columns.
public static string CreateIndexOperationWithInvalidSortOrder(object? numSortOrderProperties, object? numColumns)
Parameters
Returns
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.
public static string DataOperationNoProperty(object? table, object? column)
Parameters
Returns
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.
public static string DataOperationNoTable(object? table)
Parameters
table
object
Returns
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)'
public static string DbFunctionExpressionIsNotMethodCall(object? expression)
Parameters
expression
object
Returns
DbFunctionGenericMethodNotSupported(object?)
The DbFunction '{function}' is generic. Mapping generic methods as a DbFunction is not supported.
public static string DbFunctionGenericMethodNotSupported(object? function)
Parameters
function
object
Returns
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.
public static string DbFunctionInvalidIQueryableOwnedReturnType(object? function, object? type)
Parameters
Returns
DbFunctionInvalidIQueryableReturnType(object?, object?)
The DbFunction '{function}' has an invalid return type '{type}'. Non-scalar functions must return 'IQueryable' of a valid entity type.
public static string DbFunctionInvalidIQueryableReturnType(object? function, object? type)
Parameters
Returns
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.
public static string DbFunctionInvalidInstanceType(object? function, object? type)
Parameters
Returns
DbFunctionInvalidParameterName(object?, object?)
The DbFunction '{function}' does not have a parameter named '{parameter}'.
public static string DbFunctionInvalidParameterName(object? function, object? parameter)
Parameters
Returns
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.
public static string DbFunctionInvalidParameterType(object? parameter, object? function, object? type)
Parameters
Returns
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.
public static string DbFunctionInvalidReturnEntityType(object? function, object? type, object? elementType)
Parameters
Returns
DbFunctionInvalidReturnType(object?, object?)
The DbFunction '{function}' has an invalid return type '{type}'. Ensure that the return type can be mapped by the current provider.
public static string DbFunctionInvalidReturnType(object? function, object? type)
Parameters
Returns
DbFunctionNonScalarCustomTranslation(object?)
Cannot set custom translation on the DbFunction '{function}' since it is not a scalar function.
public static string DbFunctionNonScalarCustomTranslation(object? function)
Parameters
function
object
Returns
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.
public static string DefaultValueSqlUnspecified(object? table, object? column)
Parameters
Returns
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.
public static string DefaultValueUnspecified(object? table, object? column)
Parameters
Returns
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.
public static string DeleteDataOperationNoModel(object? table)
Parameters
table
object
Returns
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.
public static string DeleteDataOperationTypesCountMismatch(object? typesCount, object? columnsCount, object? table)
Parameters
Returns
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.
public static string DeleteDataOperationValuesCountMismatch(object? valuesCount, object? columnsCount, object? table)
Parameters
Returns
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.
public static string DerivedStrategy(object? entityType, object? strategy)
Parameters
Returns
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}'.
public static string DuplicateCheckConstraint(object? checkConstraint, object? entityType, object? conflictingEntityType)
Parameters
Returns
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.
public static string DuplicateCheckConstraintSqlMismatch(object? checkConstraint1, object? entityType1, object? checkConstraint2, object? entityType2, object? checkConstraintName)
Parameters
checkConstraint1
objectentityType1
objectcheckConstraint2
objectentityType2
objectcheckConstraintName
object
Returns
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}').
public static string DuplicateColumnNameCollationMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? collation1, object? collation2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectcollation1
objectcollation2
object
Returns
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}').
public static string DuplicateColumnNameCommentMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? comment1, object? comment2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectcomment1
objectcomment2
object
Returns
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}').
public static string DuplicateColumnNameComputedSqlMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? value1, object? value2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectvalue1
objectvalue2
object
Returns
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.
public static string DuplicateColumnNameConcurrencyTokenMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
object
Returns
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}').
public static string DuplicateColumnNameDataTypeMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? dataType1, object? dataType2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectdataType1
objectdataType2
object
Returns
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}').
public static string DuplicateColumnNameDefaultSqlMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? value1, object? value2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectvalue1
objectvalue2
object
Returns
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.
public static string DuplicateColumnNameFixedLengthMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
object
Returns
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}').
public static string DuplicateColumnNameIsStoredMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? value1, object? value2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectvalue1
objectvalue2
object
Returns
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}').
public static string DuplicateColumnNameMaxLengthMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? maxLength1, object? maxLength2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectmaxLength1
objectmaxLength2
object
Returns
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.
public static string DuplicateColumnNameNullabilityMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
object
Returns
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}').
public static string DuplicateColumnNameOrderMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? columnOrder1, object? columnOrder2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectcolumnOrder1
objectcolumnOrder2
object
Returns
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}').
public static string DuplicateColumnNamePrecisionMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? precision1, object? precision2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectprecision1
objectprecision2
object
Returns
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}').
public static string DuplicateColumnNameProviderTypeMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? type1, object? type2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objecttype1
objecttype2
object
Returns
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.
public static string DuplicateColumnNameSameHierarchy(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
object
Returns
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}').
public static string DuplicateColumnNameScaleMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table, object? scale1, object? scale2)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
objectscale1
objectscale2
object
Returns
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.
public static string DuplicateColumnNameUnicodenessMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
Parameters
entityType1
objectproperty1
objectentityType2
objectproperty2
objectcolumnName
objecttable
object
Returns
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}).
public static string DuplicateForeignKeyColumnMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? columnNames1, object? columnNames2)
Parameters
foreignKeyProperties1
objectentityType1
objectforeignKeyProperties2
objectentityType2
objecttable
objectforeignKeyName
objectcolumnNames1
objectcolumnNames2
object
Returns
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}').
public static string DuplicateForeignKeyDeleteBehaviorMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? deleteBehavior1, object? deleteBehavior2)
Parameters
foreignKeyProperties1
objectentityType1
objectforeignKeyProperties2
objectentityType2
objecttable
objectforeignKeyName
objectdeleteBehavior1
objectdeleteBehavior2
object
Returns
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}).
public static string DuplicateForeignKeyPrincipalColumnMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? principalColumnNames1, object? principalColumnNames2)
Parameters
foreignKeyProperties1
objectentityType1
objectforeignKeyProperties2
objectentityType2
objecttable
objectforeignKeyName
objectprincipalColumnNames1
objectprincipalColumnNames2
object
Returns
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}').
public static string DuplicateForeignKeyPrincipalTableMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName, object? principalTable1, object? principalTable2)
Parameters
foreignKeyProperties1
objectentityType1
objectforeignKeyProperties2
objectentityType2
objecttable
objectforeignKeyName
objectprincipalTable1
objectprincipalTable2
object
Returns
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}').
public static string DuplicateForeignKeyTableMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? foreignKeyName, object? table1, object? table2)
Parameters
foreignKeyProperties1
objectentityType1
objectforeignKeyProperties2
objectentityType2
objectforeignKeyName
objecttable1
objecttable2
object
Returns
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.
public static string DuplicateForeignKeyUniquenessMismatch(object? foreignKeyProperties1, object? entityType1, object? foreignKeyProperties2, object? entityType2, object? table, object? foreignKeyName)
Parameters
foreignKeyProperties1
objectentityType1
objectforeignKeyProperties2
objectentityType2
objecttable
objectforeignKeyName
object
Returns
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}).
public static string DuplicateIndexColumnMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName, object? columnNames1, object? columnNames2)
Parameters
index1
objectentityType1
objectindex2
objectentityType2
objecttable
objectindexName
objectcolumnNames1
objectcolumnNames2
object
Returns
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}').
public static string DuplicateIndexFiltersMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName, object? filter1, object? filter2)
Parameters
index1
objectentityType1
objectindex2
objectentityType2
objecttable
objectindexName
objectfilter1
objectfilter2
object
Returns
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.
public static string DuplicateIndexSortOrdersMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName)
Parameters
Returns
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}').
public static string DuplicateIndexTableMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? indexName, object? table1, object? table2)
Parameters
index1
objectentityType1
objectindex2
objectentityType2
objectindexName
objecttable1
objecttable2
object
Returns
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.
public static string DuplicateIndexUniquenessMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName)
Parameters
Returns
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}).
public static string DuplicateKeyColumnMismatch(object? keyProperties1, object? entityType1, object? keyProperties2, object? entityType2, object? table, object? keyName, object? columnNames1, object? columnNames2)
Parameters
keyProperties1
objectentityType1
objectkeyProperties2
objectentityType2
objecttable
objectkeyName
objectcolumnNames1
objectcolumnNames2
object
Returns
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}').
public static string DuplicateKeyTableMismatch(object? keyProperties1, object? entityType1, object? keyProperties2, object? entityType2, object? keyName, object? table1, object? table2)
Parameters
keyProperties1
objectentityType1
objectkeyProperties2
objectentityType2
objectkeyName
objecttable1
objecttable2
object
Returns
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.
public static string DuplicateSeedData(object? entityType, object? table)
Parameters
Returns
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.
public static string DuplicateSeedDataSensitive(object? entityType, object? keyValue, object? table)
Parameters
Returns
EitherOfTwoValuesMustBeNull(object?, object?)
Either {param1} or {param2} must be null.
public static string EitherOfTwoValuesMustBeNull(object? param1, object? param2)
Parameters
Returns
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").
public static string EntityShortNameNotUnique(object? entityType1, object? discriminatorValue, object? entityType2)
Parameters
Returns
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.
public static string EntitySplittingConflictingMainFragment(object? entityType, object? storeObject)
Parameters
Returns
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.
public static string EntitySplittingHierarchy(object? entityType, object? storeObject)
Parameters
Returns
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}'.
public static string EntitySplittingMissingPrimaryKey(object? entityType, object? storeObject)
Parameters
Returns
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}'.
public static string EntitySplittingMissingProperties(object? entityType, object? storeObject)
Parameters
Returns
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}'.
public static string EntitySplittingMissingPropertiesMainFragment(object? entityType, object? storeObject)
Parameters
Returns
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}'.
public static string EntitySplittingMissingRequiredPropertiesOptionalDependent(object? entityType, object? storeObject, object? requiredDependentConfig)
Parameters
Returns
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}'.
public static string EntitySplittingUnmappedMainFragment(object? entityType, object? storeObject, object? storeObjectType)
Parameters
Returns
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}'.
public static string EntitySplittingUnmatchedMainTableSplitting(object? entityType, object? storeObject, object? principalEntityType, object? principalStoreObject)
Parameters
Returns
ErrorMaterializingProperty(object?, object?)
An error occurred while reading a database value for property '{entityType}.{property}'. See the inner exception for more information.
public static string ErrorMaterializingProperty(object? entityType, object? property)
Parameters
Returns
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.
public static string ErrorMaterializingPropertyNullReference(object? entityType, object? property, object? expectedType)
Parameters
Returns
ErrorMaterializingValueInvalidCast(object?, object?)
An error occurred while reading a database value. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.
public static string ErrorMaterializingValueInvalidCast(object? expectedType, object? actualType)
Parameters
Returns
ErrorMaterializingValueNullReference(object?)
An error occurred while reading a database value. The expected type was '{expectedType}' but the actual value was null.
public static string ErrorMaterializingValueNullReference(object? expectedType)
Parameters
expectedType
object
Returns
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.
public static string ExecuteDeleteOnTableSplitting(object? tableName)
Parameters
tableName
object
Returns
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.
public static string ExecuteOperationOnEntitySplitting(object? operation, object? entityType)
Parameters
Returns
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.
public static string ExecuteOperationOnKeylessEntityTypeWithUnsupportedOperator(object? operation, object? entityType)
Parameters
Returns
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.
public static string ExecuteOperationOnTPC(object? operation, object? entityType)
Parameters
Returns
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.
public static string ExecuteOperationOnTPT(object? operation, object? entityType)
Parameters
Returns
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.
public static string ExecuteOperationWithUnsupportedOperatorInSqlGeneration(object? operation)
Parameters
operation
object
Returns
FromSqlMissingColumn(object?)
The required column '{column}' was not present in the results of a 'FromSql' operation.
public static string FromSqlMissingColumn(object? column)
Parameters
column
object
Returns
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}'.
public static string FunctionOverrideMismatch(object? propertySpecification, object? function)
Parameters
Returns
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}'.
public static string IncompatibleTableCommentMismatch(object? table, object? entityType, object? otherEntityType, object? comment, object? otherComment)
Parameters
Returns
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}'.
public static string IncompatibleTableDerivedRelationship(object? table, object? entityType, object? otherEntityType)
Parameters
Returns
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.
public static string IncompatibleTableExcludedMismatch(object? table, object? entityType, object? otherEntityType)
Parameters
Returns
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}.
public static string IncompatibleTableKeyNameMismatch(object? table, object? entityType, object? otherEntityType, object? keyName, object? primaryKey, object? otherName, object? otherPrimaryKey)
Parameters
table
objectentityType
objectotherEntityType
objectkeyName
objectprimaryKey
objectotherName
objectotherPrimaryKey
object
Returns
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}'.
public static string IncompatibleTableNoRelationship(object? table, object? entityType, object? otherEntityType)
Parameters
Returns
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}'.
public static string IncompatibleViewDerivedRelationship(object? view, object? entityType, object? otherEntityType)
Parameters
Returns
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.
public static string IncompatibleViewNoRelationship(object? view, object? entityType, object? otherEntityType)
Parameters
Returns
IncorrectDefaultValueType(object?, object?, object?, object?, object?)
Cannot set default value '{value}' of type '{valueType}' on property '{property}' of type '{propertyType}' in entity type '{entityType}'.
public static string IncorrectDefaultValueType(object? value, object? valueType, object? property, object? propertyType, object? entityType)
Parameters
Returns
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.
public static string InsertDataOperationNoModel(object? table)
Parameters
table
object
Returns
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.
public static string InsertDataOperationTypesCountMismatch(object? typesCount, object? columnsCount, object? table)
Parameters
Returns
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.
public static string InsertDataOperationValuesCountMismatch(object? valuesCount, object? columnsCount, object? table)
Parameters
Returns
InvalidCommandTimeout(object?)
The specified 'CommandTimeout' value '{value}' is not valid. It must be a positive number.
public static string InvalidCommandTimeout(object? value)
Parameters
value
object
Returns
InvalidDerivedTypeInEntityProjection(object?, object?)
The specified entity type '{derivedType}' is not derived from '{entityType}'.
public static string InvalidDerivedTypeInEntityProjection(object? derivedType, object? entityType)
Parameters
Returns
InvalidFromSqlArguments(object?, object?)
A FromSqlExpression has an invalid arguments expression type '{expressionType}' or value type '{valueType}'.
public static string InvalidFromSqlArguments(object? expressionType, object? valueType)
Parameters
Returns
InvalidKeySelectorForGroupBy(object?, object?)
The grouping key '{keySelector}' is of type '{keyType}' which is not valid key.
public static string InvalidKeySelectorForGroupBy(object? keySelector, object? keyType)
Parameters
Returns
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.
public static string InvalidMappedFunctionDerivedType(object? entityType, object? functionName, object? baseEntityType)
Parameters
Returns
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}>'.
public static string InvalidMappedFunctionUnmatchedReturn(object? entityType, object? functionName, object? returnType, object? clrType)
Parameters
Returns
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.
public static string InvalidMappedFunctionWithParameters(object? entityType, object? functionName, object? parameters)
Parameters
Returns
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.
public static string InvalidMappedSqlQueryDerivedType(object? entityType, object? baseEntityType)
Parameters
Returns
InvalidMappingStrategy(object?, object?)
The mapping strategy '{mappingStrategy}' specified on '{entityType}' is not supported.
public static string InvalidMappingStrategy(object? mappingStrategy, object? entityType)
Parameters
Returns
InvalidMaxBatchSize(object?)
The specified 'MaxBatchSize' value '{value}' is not valid. It must be a positive number.
public static string InvalidMaxBatchSize(object? value)
Parameters
value
object
Returns
InvalidMinBatchSize(object?)
The specified 'MinBatchSize' value '{value}' is not valid. It must be a positive number.
public static string InvalidMinBatchSize(object? value)
Parameters
value
object
Returns
InvalidPropertyInSetProperty(object?)
The following lambda argument to 'SetProperty' does not represent a valid property to be set: '{propertyExpression}'.
public static string InvalidPropertyInSetProperty(object? propertyExpression)
Parameters
propertyExpression
object
Returns
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.
public static string JsonCantNavigateToParentEntity(object? jsonEntity, object? parentEntity, object? navigation)
Parameters
Returns
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.
public static string JsonEntityMappedToDifferentViewThanOwner(object? jsonType, object? viewName, object? ownerType, object? ownerViewName)
Parameters
Returns
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.
public static string JsonEntityMultipleRootsMappedToTheSameJsonColumn(object? column, object? table)
Parameters
Returns
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.
public static string JsonEntityOwnedByNonJsonOwnedType(object? nonJsonType, object? table)
Parameters
Returns
JsonEntityReferencingRegularEntity(object?)
Entity type '{jsonEntity}' is mapped to JSON and has a navigation to a regular entity which is not the owner.
public static string JsonEntityReferencingRegularEntity(object? jsonEntity)
Parameters
jsonEntity
object
Returns
JsonEntityWithDefaultValueSetOnItsProperty(object?, object?)
Setting a default value on properties of an entity mapped to JSON is not supported. Entity: '{jsonEntity}', property: '{property}'.
public static string JsonEntityWithDefaultValueSetOnItsProperty(object? jsonEntity, object? property)
Parameters
Returns
JsonEntityWithExplicitlyConfiguredJsonPropertyNameOnKey(object?, object?)
Key property '{keyProperty}' on JSON-mapped entity '{jsonEntity}' should not have its JSON property name configured explicitly.
public static string JsonEntityWithExplicitlyConfiguredJsonPropertyNameOnKey(object? keyProperty, object? jsonEntity)
Parameters
Returns
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.
public static string JsonEntityWithExplicitlyConfiguredOrdinalKey(object? jsonEntity)
Parameters
jsonEntity
object
Returns
JsonEntityWithIncorrectNumberOfKeyProperties(object?, object?, object?)
Entity type '{jsonEntity}' has an incorrect number of primary key properties. Expected number is: {expectedCount}, actual number is: {actualCount}.
public static string JsonEntityWithIncorrectNumberOfKeyProperties(object? jsonEntity, object? expectedCount, object? actualCount)
Parameters
Returns
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.
public static string JsonEntityWithMultiplePropertiesMappedToSameJsonProperty(object? jsonEntity, object? property)
Parameters
Returns
JsonEntityWithNonTphInheritanceOnOwner(object?)
Entity type '{rootType}' references entities mapped to JSON. Only TPH inheritance is supported for those entities.
public static string JsonEntityWithNonTphInheritanceOnOwner(object? rootType)
Parameters
rootType
object
Returns
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.
public static string JsonEntityWithOwnerNotMappedToTableOrView(object? entity)
Parameters
entity
object
Returns
JsonErrorExtractingJsonProperty(object?, object?)
An error occurred while reading a JSON value for property '{entityType}.{propertyName}'. See the inner exception for more information.
public static string JsonErrorExtractingJsonProperty(object? entityType, object? propertyName)
Parameters
Returns
JsonRequiredEntityWithNullJson(object?)
Entity {entity} is required but the JSON element containing it is null.
public static string JsonRequiredEntityWithNullJson(object? entity)
Parameters
entity
object
Returns
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.
public static string KeylessMappingStrategy(object? mappingStrategy, object? entityType)
Parameters
Returns
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}'.
public static string LastUsedWithoutOrderBy(object? method)
Parameters
method
object
Returns
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.
public static string MappedFunctionNotFound(object? entityType, object? functionName)
Parameters
Returns
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.
public static string MethodOnNonTphRootNotSupported(object? methodName, object? entityType)
Parameters
Returns
MigrationNotFound(object?)
The migration '{migrationName}' was not found.
public static string MigrationNotFound(object? migrationName)
Parameters
migrationName
object
Returns
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.
public static string MigrationSqlGenerationMissing(object? operation)
Parameters
operation
object
Returns
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.
public static string MissingConcurrencyColumn(object? entityType, object? missingColumn, object? table)
Parameters
Returns
MissingParameterValue(object?)
No value was provided for the required parameter '{parameter}'.
public static string MissingParameterValue(object? parameter)
Parameters
parameter
object
Returns
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.
public static string ModificationCommandInvalidEntityState(object? entityType, object? entityState)
Parameters
Returns
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.
public static string ModificationCommandInvalidEntityStateSensitive(object? entityType, object? keyValues, object? entityState)
Parameters
Returns
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.
public static string MultipleEntityPropertiesInSetProperty(object? entityType1, object? entityType2)
Parameters
Returns
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.
public static string NamedConnectionStringNotFound(object? name)
Parameters
name
object
Returns
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.
public static string NonQueryTranslationFailedWithDetails(object? expression, object? details)
Parameters
Returns
NonScalarFunctionCannotBeNullable(object?)
Cannot set 'IsNullable' on DbFunction '{functionName}' since the function does not represent a scalar function.
public static string NonScalarFunctionCannotBeNullable(object? functionName)
Parameters
functionName
object
Returns
NonScalarFunctionParameterCannotPropagatesNullability(object?, object?)
Cannot set 'PropagatesNullability' on parameter '{parameterName}' of DbFunction '{functionName}' since function does not represent a scalar function.
public static string NonScalarFunctionParameterCannotPropagatesNullability(object? parameterName, object? functionName)
Parameters
Returns
NonTphDiscriminatorValueNotString(object?, object?)
The specified discriminator value '{value}' for '{entityType}' is not a string. Configure a string discriminator value instead.
public static string NonTphDiscriminatorValueNotString(object? value, object? entityType)
Parameters
Returns
NonTphMappingStrategy(object?, object?)
The mapping strategy '{mappingStrategy}' specified on '{entityType}' is not supported for entity types with a discriminator.
public static string NonTphMappingStrategy(object? mappingStrategy, object? entityType)
Parameters
Returns
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.
public static string NonTphStoredProcedureClash(object? entityType, object? otherEntityType, object? sproc)
Parameters
Returns
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.
public static string NonTphTableClash(object? entityType, object? otherEntityType, object? table)
Parameters
Returns
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.
public static string NonTphViewClash(object? entityType, object? otherEntityType, object? view)
Parameters
Returns
NullKeyValue(object?, object?)
Unable to modify a row in table '{table}' because its key column '{keyColumn}' is null.
public static string NullKeyValue(object? table, object? keyColumn)
Parameters
Returns
NullTypeMappingInSqlTree(object?)
Expression '{sqlExpression}' in the SQL tree does not have a type mapping assigned.
public static string NullTypeMappingInSqlTree(object? sqlExpression)
Parameters
sqlExpression
object
Returns
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.
public static string OptionalDependentWithDependentWithoutIdentifyingProperty(object? entityType)
Parameters
entityType
object
Returns
ParameterNotObjectArray(object?)
Cannot use the value provided for parameter '{parameter}' because it isn't assignable to type object[].
public static string ParameterNotObjectArray(object? parameter)
Parameters
parameter
object
Returns
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'.
public static string PropertyNotMapped(object? propertyType, object? entityType, object? property, object? storeType)
Parameters
Returns
PropertyNotMappedToTable(object?, object?, object?)
The property '{property}' on entity type '{entityType}' is not mapped to '{table}'.
public static string PropertyNotMappedToTable(object? property, object? entityType, object? table)
Parameters
Returns
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.
public static string ReadonlyEntitySaved(object? entityType)
Parameters
entityType
object
Returns
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.
public static string SelectExpressionNonTphWithCustomTable(object? entityType)
Parameters
entityType
object
Returns
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}'.
public static string SqlQueryOverrideMismatch(object? propertySpecification, object? query)
Parameters
Returns
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.
public static string SqlQueryUnmappedType(object? elementType)
Parameters
elementType
object
Returns
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.
public static string StoredKeyTypesNotConvertable(object? fkColumnName, object? fkColumnType, object? pkColumnType, object? pkColumnName)
Parameters
Returns
StoredProcedureCurrentValueParameterOnDelete(object?, object?)
Current value parameter '{parameter}' is not allowed on delete stored procedure '{sproc}'. Use HasOriginalValueParameter() instead.
public static string StoredProcedureCurrentValueParameterOnDelete(object? parameter, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureDeleteNonKeyProperty(object? entityType, object? property, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureDuplicateOriginalValueParameter(object? property, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureDuplicateParameter(object? property, object? sproc)
Parameters
Returns
StoredProcedureDuplicateParameterName(object?, object?)
The parameter '{parameter}' cannot be added to the stored procedure '{sproc}' because another parameter with this name already exists.
public static string StoredProcedureDuplicateParameterName(object? parameter, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureDuplicateResultColumn(object? property, object? sproc)
Parameters
Returns
StoredProcedureDuplicateResultColumnName(object?, object?)
The result column '{column}' cannot be added to the stored procedure '{sproc}' because another result column with this name already exists.
public static string StoredProcedureDuplicateResultColumnName(object? column, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureDuplicateRowsAffectedParameter(object? sproc)
Parameters
sproc
object
Returns
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.
public static string StoredProcedureDuplicateRowsAffectedResultColumn(object? sproc)
Parameters
sproc
object
Returns
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.
public static string StoredProcedureGeneratedPropertiesNotMapped(object? entityType, object? sproc, object? properties)
Parameters
Returns
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.
public static string StoredProcedureInputParameterForInsertNonSaveProperty(object? parameter, object? sproc, object? property, object? entityType, object? behavior)
Parameters
Returns
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().
public static string StoredProcedureInputParameterForUpdateNonSaveProperty(object? parameter, object? sproc, object? property, object? entityType, object? behavior)
Parameters
Returns
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.
public static string StoredProcedureKeyless(object? entityType, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureNoName(object? entityType, object? sproc)
Parameters
Returns
StoredProcedureOriginalValueParameterOnInsert(object?, object?)
Original value parameter '{parameter}' is not allowed on insert stored procedure '{sproc}'. Use HasParameter() instead.
public static string StoredProcedureOriginalValueParameterOnInsert(object? parameter, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureOutputParameterConflict(object? entityType, object? property, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureOutputParameterNotGenerated(object? entityType, object? property, object? sproc)
Parameters
Returns
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}'.
public static string StoredProcedureOverrideMismatch(object? propertySpecification, object? sproc)
Parameters
Returns
StoredProcedureParameterInvalidConfiguration(object?, object?, object?)
'{facet}' cannot be configured for the parameter '{parameter}' of the stored procedure '{sproc}'.
public static string StoredProcedureParameterInvalidConfiguration(object? facet, object? parameter, object? sproc)
Parameters
Returns
StoredProcedureParameterInvalidDirection(object?, object?, object?)
Unsupported direction '{direction}' was specified for the parameter '{parameter}' of the stored procedure '{sproc}'.
public static string StoredProcedureParameterInvalidDirection(object? direction, object? parameter, object? sproc)
Parameters
Returns
StoredProcedureParameterNotFound(object?, object?, object?)
No property named '{property}' found on the entity type '{entityType}' corresponding to the parameter on the stored procedure '{sproc}'
public static string StoredProcedureParameterNotFound(object? property, object? entityType, object? sproc)
Parameters
Returns
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.
public static string StoredProcedurePropertiesNotMapped(object? entityType, object? sproc, object? properties)
Parameters
Returns
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.
public static string StoredProcedureResultColumnDelete(object? entityType, object? property, object? sproc)
Parameters
Returns
StoredProcedureResultColumnNotFound(object?, object?, object?)
No property named '{property}' found on the entity type '{entityType}' corresponding to the result column on the stored procedure '{sproc}'
public static string StoredProcedureResultColumnNotFound(object? property, object? entityType, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureResultColumnNotGenerated(object? entityType, object? property, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureResultColumnParameterConflict(object? entityType, object? property, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureRowsAffectedForInsert(object? sproc)
Parameters
sproc
object
Returns
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.
public static string StoredProcedureRowsAffectedNotPopulated(object? sproc)
Parameters
sproc
object
Returns
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.
public static string StoredProcedureRowsAffectedReturnConflictingParameter(object? sproc)
Parameters
sproc
object
Returns
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.
public static string StoredProcedureRowsAffectedWithResultColumns(object? entityType, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureTableSharing(object? entityType1, object? entityType2, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureTphDuplicate(object? entityType, object? otherEntityType, object? sproc)
Parameters
Returns
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.
public static string StoredProcedureUnmapped(object? entityType)
Parameters
entityType
object
Returns
TableNotMappedEntityType(object?, object?)
The entity type '{entityType}' is not mapped to the store object '{table}'.
public static string TableNotMappedEntityType(object? entityType, object? table)
Parameters
Returns
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}'.
public static string TableOverrideMismatch(object? propertySpecification, object? table)
Parameters
Returns
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.
public static string TableValuedFunctionNonTph(object? dbFunction, object? entityType)
Parameters
Returns
TimeoutTooBig(object?)
Timeout must be less than or equal to Int32.MaxValue (2147483647) seconds. Provided timeout: {seconds} seconds.
public static string TimeoutTooBig(object? seconds)
Parameters
seconds
object
Returns
TimeoutTooSmall(object?)
Timeout must be greater than or equal to zero. Provided timeout: {seconds} seconds.
public static string TimeoutTooSmall(object? seconds)
Parameters
seconds
object
Returns
TooFewReaderFields(object?, object?)
The underlying reader doesn't have as many fields as expected. Expected: {expected}, actual: {actual}.
public static string TooFewReaderFields(object? expected, object? actual)
Parameters
Returns
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.
public static string TpcTableSharing(object? dependentType, object? storeObject, object? principalEntityType)
Parameters
Returns
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.
public static string TpcTableSharingDependent(object? dependentType, object? storeObject, object? derivedType, object? otherStoreObject)
Parameters
Returns
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.
public static string TphDbFunctionMismatch(object? entityType, object? function, object? otherEntityType, object? otherFunction)
Parameters
Returns
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.
public static string TphStoredProcedureMismatch(object? entityType, object? sproc, object? otherEntityType, object? otherSproc)
Parameters
Returns
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.
public static string TphTableMismatch(object? entityType, object? table, object? otherEntityType, object? otherTable)
Parameters
Returns
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.
public static string TphViewMismatch(object? entityType, object? view, object? otherEntityType, object? otherView)
Parameters
Returns
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.
public static string TriggerWithMismatchedTable(object? trigger, object? triggerTable, object? entityType, object? entityTable)
Parameters
Returns
UnableToBindMemberToEntityProjection(object?, object?, object?)
Unable to bind '{memberType}.{member}' to an entity projection of '{entityType}'.
public static string UnableToBindMemberToEntityProjection(object? memberType, object? member, object? entityType)
Parameters
Returns
UnableToTranslateSetProperty(object?, object?, object?)
The following 'SetProperty' failed to translate: 'SetProperty({property}, {value})'. {details}
public static string UnableToTranslateSetProperty(object? property, object? value, object? details)
Parameters
Returns
UnhandledAnnotatableType(object?)
Unhandled annotatable type '{annotatableType}'.
public static string UnhandledAnnotatableType(object? annotatableType)
Parameters
annotatableType
object
Returns
UnhandledExpressionInVisitor(object?, object?, object?)
Unhandled expression '{expression}' of type '{expressionType}' encountered in '{visitor}'.
public static string UnhandledExpressionInVisitor(object? expression, object? expressionType, object? visitor)
Parameters
Returns
UnknownOperation(object?, object?)
The current migration SQL generator '{sqlGeneratorType}' is unable to generate SQL for operations of type '{operationType}'.
public static string UnknownOperation(object? sqlGeneratorType, object? operationType)
Parameters
Returns
UnsupportedDataOperationStoreType(object?, object?)
The store type '{type}' used for the column '{column}' in a migration data operation is not supported by the current provider.
public static string UnsupportedDataOperationStoreType(object? type, object? column)
Parameters
Returns
UnsupportedOperatorForSqlExpression(object?, object?)
Unsupported operator '{nodeType}' specified for expression of type '{expressionType}'.
public static string UnsupportedOperatorForSqlExpression(object? nodeType, object? expressionType)
Parameters
Returns
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}'.
public static string UnsupportedPropertyType(object? entity, object? property, object? clrType)
Parameters
Returns
UnsupportedStoreType(object?)
The store type '{type}' is not supported by the current provider.
public static string UnsupportedStoreType(object? type)
Parameters
type
object
Returns
UnsupportedType(object?)
The current provider doesn't have a store type mapping for properties of type '{clrType}'.
public static string UnsupportedType(object? clrType)
Parameters
clrType
object
Returns
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 http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
public static string UpdateConcurrencyException(object? expectedRows, object? actualRows)
Parameters
Returns
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.
public static string UpdateDataOperationKeyTypesCountMismatch(object? typesCount, object? columnsCount, object? table)
Parameters
Returns
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.
public static string UpdateDataOperationKeyValuesCountMismatch(object? valuesCount, object? columnsCount, object? table)
Parameters
Returns
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.
public static string UpdateDataOperationNoModel(object? table)
Parameters
table
object
Returns
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.
public static string UpdateDataOperationRowCountMismatch(object? valuesCount, object? keyCount, object? table)
Parameters
Returns
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.
public static string UpdateDataOperationTypesCountMismatch(object? typesCount, object? columnsCount, object? table)
Parameters
Returns
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.
public static string UpdateDataOperationValuesCountMismatch(object? valuesCount, object? columnsCount, object? table)
Parameters
Returns
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}'.
public static string ViewOverrideMismatch(object? propertySpecification, object? view)