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 sequence from model metadata. See inner exception for details.
public static string BadSequenceString { get; }
Property Value
BadSequenceType
Invalid type for sequence. Valid types are 'Int64' (the default), 'Int32', 'Int16', 'Byte' and 'Decimal'.
public static string BadSequenceType { get; }
Property Value
CannotChangeWhenOpen
The '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 beginning a 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 transaction.
public static string ConflictingEnlistedTransaction { get; }
Property Value
DatabaseModelMissing
The database model hasn't been initialized. The model needs to be finalized before the database model can be accessed.
public static string DatabaseModelMissing { 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
FromSqlNonComposable
'FromSqlRaw' or 'FromSqlInterpolated' 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
InsufficientInformationToIdentifyOuterElementOfCollectionJoin
Unable to translate collection subquery in projection since the parent query doesn't project key columns of all of it's tables which are required to generate results on client side. This can happen when trying to correlate on keyless entity or when using 'Distinct' or 'GroupBy' operations without projecting all of the key columns.
public static string InsufficientInformationToIdentifyOuterElementOfCollectionJoin { get; }
Property Value
InvalidCommandTimeout
The specified CommandTimeout value is not valid. It must be a positive number.
public static string InvalidCommandTimeout { get; }
Property Value
InvalidMaxBatchSize
The specified MaxBatchSize value is not valid. It must be a positive number.
public static string InvalidMaxBatchSize { get; }
Property Value
InvalidMinBatchSize
The specified MinBatchSize value is not valid. It must be a positive number.
public static string InvalidMinBatchSize { 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
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
Root ambient transaction was completed before the nested transaction. The more 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
NoConnectionOrConnectionString
A relational store has been configured without specifying either the DbConnection or connection string to use.
public static string NoConnectionOrConnectionString { 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 database provider configured and passing it to the context.
public static string NoProviderConfigured { get; }
Property Value
NoneRelationalTypeMappingOnARelationalTypeMappingSource
FindMapping 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 operation when both sides don't assign values to same properties in the nominal type. Please make sure that the properties are inclued on both sides, consider assigning default value if the 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
SplitQueryString
This LINQ query is being executed in split-query mode. 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
UpdateStoreException
An error occurred while updating the entries. 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
ComputedColumnSqlUnspecified(object, object)
The column '{column}' on table '{table}' has unspecified computed column SQL. Specify the SQL before using Entity Framework to create the database schema.
public static string ComputedColumnSqlUnspecified(object column, object table)
Parameters
Returns
ConflictingColumnServerGeneration(object, object, object)
{conflictingConfiguration} cannot be set for '{property}' at the same time as {existingConfiguration}. Remove one of these values.
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)
The instance of entity type '{firstEntityType}' and the instance of entity type '{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)
An instance of entity type '{firstEntityType}' and an instance of entity type '{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)
The instance of entity type '{firstEntityType}' and the instance of entity type '{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
DataOperationNoProperty(object, object)
There is no property mapped to the column '{table}.{column}' 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}' 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 should 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 column '{column}' on table '{table}' has unspecified default value SQL. Specify the SQL before using Entity Framework to create the database schema.
public static string DefaultValueSqlUnspecified(object column, object table)
Parameters
Returns
DefaultValueUnspecified(object, object)
The column '{column}' on table '{table}' has an unspecified default value. Specify a value before using Entity Framework to create the database schema.
public static string DefaultValueUnspecified(object column, object table)
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
DerivedTypeTable(object, object)
The entity type '{entityType}' cannot be mapped to a table because it is derived from '{baseType}'. Only base entity types can be mapped to a table.
[Obsolete]
public static string DerivedTypeTable(object entityType, object baseType)
Parameters
Returns
DuplicateCheckConstraint(object, object)
The check constraint '{checkConstraint}' cannot be added to the entity type '{entityType}' because another check constraint with the same name already exists.
public static string DuplicateCheckConstraint(object checkConstraint, object entityType)
Parameters
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 to use 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 are configured with different concurrency token configuration.
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 are configured with 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 max 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 nullability.
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
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 precision ('{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
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 scale ('{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 are configured with different unicode configuration
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 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.
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 {indexProperties1} on '{entityType1}' and {indexProperties2} on '{entityType2}' are both mapped to '{table}.{indexName}' but with different columns ({columnNames1} and {columnNames2}).
public static string DuplicateIndexColumnMismatch(object indexProperties1, object entityType1, object indexProperties2, object entityType2, object table, object indexName, object columnNames1, object columnNames2)
Parameters
indexProperties1
objectentityType1
objectindexProperties2
objectentityType2
objecttable
objectindexName
objectcolumnNames1
objectcolumnNames2
object
Returns
DuplicateIndexTableMismatch(object, object, object, object, object, object, object)
The indexes {indexProperties1} on '{entityType1}' and {indexProperties2} on '{entityType2}' are both mapped to '{indexName}' but are declared on different tables ('{table1}' and '{table2}').
public static string DuplicateIndexTableMismatch(object indexProperties1, object entityType1, object indexProperties2, object entityType2, object indexName, object table1, object table2)
Parameters
indexProperties1
objectentityType1
objectindexProperties2
objectentityType2
objectindexName
objecttable1
objecttable2
object
Returns
DuplicateIndexUniquenessMismatch(object, object, object, object, object, object)
The indexes {indexProperties1} on '{entityType1}' and {indexProperties2} on '{entityType2}' are both mapped to '{table}.{indexName}' but with different uniqueness.
public static string DuplicateIndexUniquenessMismatch(object indexProperties1, object entityType1, object indexProperties2, object entityType2, object table, object indexName)
Parameters
indexProperties1
objectentityType1
objectindexProperties2
objectentityType2
objecttable
objectindexName
object
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
EitherOfTwoValuesMustBeNull(object, object)
Either {param1} or {param2} must be null.
public static string EitherOfTwoValuesMustBeNull(object param1, object param2)
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
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}', however 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}', there is a relationship between their primary keys in which '{entityType}' is the dependent and '{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 it excluded from migration on one entity type, but not 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 typed 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}', there is a relationship between their primary keys in which '{entityType}' is the dependent and '{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
InvalidDerivedTypeInEntityProjection(object, object)
The specified entity type '{derivedType}' is not derived from '{entityType}'.
public static string InvalidDerivedTypeInEntityProjection(object derivedType, object entityType)
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}' and it's 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 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 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 and it's derived from '{baseEntityType}'. Derived entity types cannot be mapped to a different SQL query.
public static string InvalidMappedSqlQueryDerivedType(object entityType, object baseEntityType)
Parameters
Returns
LastUsedWithoutOrderBy(object)
Queries performing '{method}' operation must have a deterministic sort order. Rewrite the query to apply an 'OrderBy' clause 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
MissingConcurrencyColumn(object, object, object)
Entity type '{entityType}' doesn't contain a property mapped to the store-generated concurrency token column '{missingColumn}' that is used by another entity type sharing the table '{table}'. Add a store-generated property mapped to the same column to '{entityType}'. It can be in shadow state.
public static string MissingConcurrencyColumn(object entityType, object missingColumn, object table)
Parameters
Returns
MissingIdentifyingProjectionInDistinctGroupBySubquery(object)
Unable to translate collection subquery in projection since it uses 'Distinct' or 'Group By' operations and doesn't project key columns of all of it's tables which are required to generate results on client side. Missing column: {column}. Either add column(s) to the projection or rewrite query to not use 'GroupBy'/'Distinct' operation.
public static string MissingIdentifyingProjectionInDistinctGroupBySubquery(object column)
Parameters
column
object
Returns
MissingParameterValue(object)
No value provided for required parameter '{parameter}'.
public static string MissingParameterValue(object parameter)
Parameters
parameter
object
Returns
ModificationCommandInvalidEntityState(object)
Cannot save changes for an entity in state '{entityState}'.
public static string ModificationCommandInvalidEntityState(object entityState)
Parameters
entityState
object
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
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
NonTPHTableClash(object, object, object)
Both '{entityType}' and '{otherEntityType}' are mapped to the table '{table}'. All the entity types in a hierarchy that don't have a discriminator must be mapped to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.
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 hierarchy that don'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
NullTypeMappingInSqlTree(object)
Expression '{sqlExpression}' in SQL tree does not have type mapping assigned.
public static string NullTypeMappingInSqlTree(object sqlExpression)
Parameters
sqlExpression
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
PropertyNotMappedToTable(object, object, object)
The property '{property}' on entity type '{entityType}' is not mapped to the table '{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. Use 'ToTable' in 'OnModelCreating' to map it.
public static string ReadonlyEntitySaved(object entityType)
Parameters
entityType
object
Returns
SelectExpressionNonTPHWithCustomTable(object)
Cannot create 'SelectExpression' with custom 'TableExpressionBase' since result type '{entityType}' is part of 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}', however it 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
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 all of them 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 all of them 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
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}', however it 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 result of '{dbFunction}' is mapped to '{entityType}'. This is not supported since '{entityType}' is part of hierarchy and does not contain a discriminator property.
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: {seconds} seconds.
public static string TimeoutTooBig(object seconds)
Parameters
seconds
object
Returns
TimeoutTooSmall(object)
Timeout must be greater than or equal to zero. Provided: {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
UnableToBindMemberToEntityProjection(object, object, object)
Unable to bind '{memberType}' '{member}' to entity projection of '{entityType}'.
public static string UnableToBindMemberToEntityProjection(object memberType, object member, object entityType)
Parameters
Returns
UnableToSplitCollectionProjectionInSplitQuery(object, object, object)
The query has been configured to use '{splitQueryEnumValue}' and contains a collection in the 'Select' call, which could not be split into separate query. Please remove '{splitQueryMethodName}' if applied or add '{singleQueryMethodName}' to the query.
public static string UnableToSplitCollectionProjectionInSplitQuery(object splitQueryEnumValue, object splitQueryMethodName, object singleQueryMethodName)
Parameters
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 mapping to a relational type can be found for property '{entity}.{property}' with the CLR 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)
No mapping to a relational type can be found for the CLR type '{clrType}'.
public static string UnsupportedType(object clrType)
Parameters
clrType
object
Returns
UpdateConcurrencyException(object, object)
Database operation 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 '{table}', 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 '{table}'.
public static string ViewOverrideMismatch(object propertySpecification, object table)