Table of Contents

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

string

BadSequenceType

Invalid type for sequence. Valid types are long (the default), int, short, byte and decimal.

public static string BadSequenceType { get; }

Property Value

string

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

string

ClientGroupByNotSupported

Unable to translate the given 'GroupBy' pattern. Call 'AsEnumerable' before 'GroupBy' to evaluate it client-side.

public static string ClientGroupByNotSupported { get; }

Property Value

string

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

string

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

string

DistinctOnCollectionNotSupported

Using 'Distinct' operation on a projection containing a collection is not supported.

public static string DistinctOnCollectionNotSupported { get; }

Property Value

string

ErrorMaterializingValue

An error occurred while reading a database value. See the inner exception for more information.

public static string ErrorMaterializingValue { get; }

Property Value

string

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

string

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

string

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

string

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

string

JsonEntityWithTableSplittingIsNotSupported

Table splitting is not supported for entities containing entities mapped to JSON.

public static string JsonEntityWithTableSplittingIsNotSupported { get; }

Property Value

string

JsonNodeMustBeHandledByProviderSpecificVisitor

This node should be handled by provider-specific sql generator.

public static string JsonNodeMustBeHandledByProviderSpecificVisitor { get; }

Property Value

string

JsonPropertyNameShouldBeConfiguredOnNestedNavigation

The JSON property name should only be configured on nested owned navigations.

public static string JsonPropertyNameShouldBeConfiguredOnNestedNavigation { get; }

Property Value

string

MappingFragmentMissingName

Table name must be specified to configure a table-specific property mapping.

public static string MappingFragmentMissingName { get; }

Property Value

string

MethodNeedsToBeImplementedInTheProvider

This method needs to be implemented in the provider.

public static string MethodNeedsToBeImplementedInTheProvider { get; }

Property Value

string

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

string

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

string

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

string

ModificationCommandBatchAlreadyComplete

Cannot add commands to a completed ModificationCommandBatch.

public static string ModificationCommandBatchAlreadyComplete { get; }

Property Value

string

ModificationCommandBatchNotComplete

Cannot execute an ModificationCommandBatch which hasn't been completed.

public static string ModificationCommandBatchNotComplete { get; }

Property Value

string

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

string

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

string

NoActiveTransaction

The connection does not have any active transactions.

public static string NoActiveTransaction { get; }

Property Value

string

NoDbCommand

Cannot create a DbCommand for a non-relational query.

public static string NoDbCommand { get; }

Property Value

string

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

string

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

string

NoneRelationalTypeMappingOnARelationalTypeMappingSource

'FindMapping' was called on a 'RelationalTypeMappingSource' with a non-relational 'TypeMappingInfo'.

public static string NoneRelationalTypeMappingOnARelationalTypeMappingSource { get; }

Property Value

string

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

string

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

string

RelationalNotInUse

Relational-specific methods can only be used when the context is using a relational database provider.

public static string RelationalNotInUse { get; }

Property Value

string

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

string

SetOperationsOnDifferentStoreTypes

Unable to translate set operation when matching columns on both sides have different store types.

public static string SetOperationsOnDifferentStoreTypes { get; }

Property Value

string

SetPropertyMethodInvoked

The SetProperty<TProperty> method can only be used within 'ExecuteUpdate' method.

public static string SetPropertyMethodInvoked { get; }

Property Value

string

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

string

TransactionAlreadyStarted

The connection is already in a transaction and cannot participate in another transaction.

public static string TransactionAlreadyStarted { get; }

Property Value

string

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

string

TransactionSuppressedMigrationInUserTransaction

User transaction is not supported with a TransactionSuppressed migrations.

public static string TransactionSuppressedMigrationInUserTransaction { get; }

Property Value

string

UpdateStoreException

An error occurred while saving the entity changes. See the inner exception for details.

public static string UpdateStoreException { get; }

Property Value

string

VisitChildrenMustBeOverridden

'VisitChildren' must be overridden in the class deriving from 'SqlExpression'.

public static string VisitChildrenMustBeOverridden { get; }

Property Value

string

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

entityType object
storeObject object

Returns

string

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

function object
parameter object
customize object
className object

Returns

string

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

string

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

function object
customize object
className object

Returns

string

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

table object
column object

Returns

string

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

conflictingConfiguration object
property object
existingConfiguration object

Returns

string

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 object
secondEntityType object
firstProperty object
secondProperty object
column object

Returns

string

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 object
secondEntityType object
keyValue object
firstConflictingValues object
secondConflictingValues object
column object

Returns

string

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

firstEntityType object
firstState object
secondEntityType object
secondState object

Returns

string

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 object
firstKeyValue object
firstState object
secondEntityType object
secondKeyValue object
secondState object

Returns

string

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 object
secondEntityType object
firstProperty object
secondProperty object
column object

Returns

string

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 object
secondEntityType object
keyValue object
firstConflictingValue object
secondConflictingValue object
column object

Returns

string

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

entityType object
table object
column object

Returns

string

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

entityType object
keyValue object
table object
column object
firstValue object
secondValue object

Returns

string

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

numSortOrderProperties object
numColumns object

Returns

string

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

table object
column object

Returns

string

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

string

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

string

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

string

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

function object
type object

Returns

string

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

function object
type object

Returns

string

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

function object
type object

Returns

string

DbFunctionInvalidParameterName(object?, object?)

The DbFunction '{function}' does not have a parameter named '{parameter}'.

public static string DbFunctionInvalidParameterName(object? function, object? parameter)

Parameters

function object
parameter object

Returns

string

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

parameter object
function object
type object

Returns

string

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

function object
type object
elementType object

Returns

string

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

function object
type object

Returns

string

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

string

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

table object
column object

Returns

string

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

table object
column object

Returns

string

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

string

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

typesCount object
columnsCount object
table object

Returns

string

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

valuesCount object
columnsCount object
table object

Returns

string

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

entityType object
strategy object

Returns

string

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

checkConstraint object
entityType object
conflictingEntityType object

Returns

string

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 object
entityType1 object
checkConstraint2 object
entityType2 object
checkConstraintName object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
collation1 object
collation2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
comment1 object
comment2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
value1 object
value2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
dataType1 object
dataType2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
value1 object
value2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
value1 object
value2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
maxLength1 object
maxLength2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
columnOrder1 object
columnOrder2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
precision1 object
precision2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
type1 object
type2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object
scale1 object
scale2 object

Returns

string

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 object
property1 object
entityType2 object
property2 object
columnName object
table object

Returns

string

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 object
entityType1 object
foreignKeyProperties2 object
entityType2 object
table object
foreignKeyName object
columnNames1 object
columnNames2 object

Returns

string

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 object
entityType1 object
foreignKeyProperties2 object
entityType2 object
table object
foreignKeyName object
deleteBehavior1 object
deleteBehavior2 object

Returns

string

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 object
entityType1 object
foreignKeyProperties2 object
entityType2 object
table object
foreignKeyName object
principalColumnNames1 object
principalColumnNames2 object

Returns

string

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 object
entityType1 object
foreignKeyProperties2 object
entityType2 object
table object
foreignKeyName object
principalTable1 object
principalTable2 object

Returns

string

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 object
entityType1 object
foreignKeyProperties2 object
entityType2 object
foreignKeyName object
table1 object
table2 object

Returns

string

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 object
entityType1 object
foreignKeyProperties2 object
entityType2 object
table object
foreignKeyName object

Returns

string

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 object
entityType1 object
index2 object
entityType2 object
table object
indexName object
columnNames1 object
columnNames2 object

Returns

string

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 object
entityType1 object
index2 object
entityType2 object
table object
indexName object
filter1 object
filter2 object

Returns

string

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

index1 object
entityType1 object
index2 object
entityType2 object
table object
indexName object

Returns

string

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 object
entityType1 object
index2 object
entityType2 object
indexName object
table1 object
table2 object

Returns

string

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

index1 object
entityType1 object
index2 object
entityType2 object
table object
indexName object

Returns

string

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 object
entityType1 object
keyProperties2 object
entityType2 object
table object
keyName object
columnNames1 object
columnNames2 object

Returns

string

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 object
entityType1 object
keyProperties2 object
entityType2 object
keyName object
table1 object
table2 object

Returns

string

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

entityType object
table object

Returns

string

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

entityType object
keyValue object
table object

Returns

string

EitherOfTwoValuesMustBeNull(object?, object?)

Either {param1} or {param2} must be null.

public static string EitherOfTwoValuesMustBeNull(object? param1, object? param2)

Parameters

param1 object
param2 object

Returns

string

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

entityType1 object
discriminatorValue object
entityType2 object

Returns

string

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

entityType object
storeObject object

Returns

string

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

entityType object
storeObject object

Returns

string

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

entityType object
storeObject object

Returns

string

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

entityType object
storeObject object

Returns

string

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

entityType object
storeObject object

Returns

string

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

entityType object
storeObject object
requiredDependentConfig object

Returns

string

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

entityType object
storeObject object
storeObjectType object

Returns

string

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

entityType object
storeObject object
principalEntityType object
principalStoreObject object

Returns

string

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

entityType object
property object

Returns

string

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

entityType object
property object
expectedType object

Returns

string

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

expectedType object
actualType object

Returns

string

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

string

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

string

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

operation object
entityType object

Returns

string

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

operation object
entityType object

Returns

string

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

operation object
entityType object

Returns

string

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

operation object
entityType object

Returns

string

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

string

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

string

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

propertySpecification object
function object

Returns

string

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

table object
entityType object
otherEntityType object
comment object
otherComment object

Returns

string

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

table object
entityType object
otherEntityType object

Returns

string

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

table object
entityType object
otherEntityType object

Returns

string

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 object
entityType object
otherEntityType object
keyName object
primaryKey object
otherName object
otherPrimaryKey object

Returns

string

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

table object
entityType object
otherEntityType object

Returns

string

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

view object
entityType object
otherEntityType object

Returns

string

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

view object
entityType object
otherEntityType object

Returns

string

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

value object
valueType object
property object
propertyType object
entityType object

Returns

string

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

string

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

typesCount object
columnsCount object
table object

Returns

string

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

valuesCount object
columnsCount object
table object

Returns

string

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

string

InvalidDerivedTypeInEntityProjection(object?, object?)

The specified entity type '{derivedType}' is not derived from '{entityType}'.

public static string InvalidDerivedTypeInEntityProjection(object? derivedType, object? entityType)

Parameters

derivedType object
entityType object

Returns

string

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

expressionType object
valueType object

Returns

string

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

keySelector object
keyType object

Returns

string

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

entityType object
functionName object
baseEntityType object

Returns

string

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

entityType object
functionName object
returnType object
clrType object

Returns

string

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

entityType object
functionName object
parameters object

Returns

string

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

entityType object
baseEntityType object

Returns

string

InvalidMappingStrategy(object?, object?)

The mapping strategy '{mappingStrategy}' specified on '{entityType}' is not supported.

public static string InvalidMappingStrategy(object? mappingStrategy, object? entityType)

Parameters

mappingStrategy object
entityType object

Returns

string

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

string

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

string

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

string

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

jsonEntity object
parentEntity object
navigation object

Returns

string

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

jsonType object
viewName object
ownerType object
ownerViewName object

Returns

string

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

column object
table object

Returns

string

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

nonJsonType object
table object

Returns

string

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

string

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

jsonEntity object
property object

Returns

string

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

keyProperty object
jsonEntity object

Returns

string

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

string

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

jsonEntity object
expectedCount object
actualCount object

Returns

string

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

jsonEntity object
property object

Returns

string

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

string

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

string

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

entityType object
propertyName object

Returns

string

JsonRequiredEntityWithNullJson(object?)

Entity {entity} is required but the JSON element containing it is null.

public static string JsonRequiredEntityWithNullJson(object? entity)

Parameters

entity object

Returns

string

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

mappingStrategy object
entityType object

Returns

string

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

string

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

entityType object
functionName object

Returns

string

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

methodName object
entityType object

Returns

string

MigrationNotFound(object?)

The migration '{migrationName}' was not found.

public static string MigrationNotFound(object? migrationName)

Parameters

migrationName object

Returns

string

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

string

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

entityType object
missingColumn object
table object

Returns

string

MissingParameterValue(object?)

No value was provided for the required parameter '{parameter}'.

public static string MissingParameterValue(object? parameter)

Parameters

parameter object

Returns

string

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

entityType object
entityState object

Returns

string

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

entityType object
keyValues object
entityState object

Returns

string

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

entityType1 object
entityType2 object

Returns

string

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

string

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

expression object
details object

Returns

string

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

string

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

parameterName object
functionName object

Returns

string

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

value object
entityType object

Returns

string

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

mappingStrategy object
entityType object

Returns

string

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

entityType object
otherEntityType object
sproc object

Returns

string

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

entityType object
otherEntityType object
table object

Returns

string

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

entityType object
otherEntityType object
view object

Returns

string

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

table object
keyColumn object

Returns

string

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

string

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

string

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

string

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

propertyType object
entityType object
property object
storeType object

Returns

string

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

property object
entityType object
table object

Returns

string

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

string

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

string

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

propertySpecification object
query object

Returns

string

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

string

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

fkColumnName object
fkColumnType object
pkColumnType object
pkColumnName object

Returns

string

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

parameter object
sproc object

Returns

string

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

entityType object
property object
sproc object

Returns

string

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

property object
sproc object

Returns

string

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

property object
sproc object

Returns

string

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

parameter object
sproc object

Returns

string

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

property object
sproc object

Returns

string

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

column object
sproc object

Returns

string

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

string

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

string

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

entityType object
sproc object
properties object

Returns

string

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

parameter object
sproc object
property object
entityType object
behavior object

Returns

string

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

parameter object
sproc object
property object
entityType object
behavior object

Returns

string

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

entityType object
sproc object

Returns

string

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

entityType object
sproc object

Returns

string

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

parameter object
sproc object

Returns

string

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

entityType object
property object
sproc object

Returns

string

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

entityType object
property object
sproc object

Returns

string

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

propertySpecification object
sproc object

Returns

string

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

facet object
parameter object
sproc object

Returns

string

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

direction object
parameter object
sproc object

Returns

string

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

property object
entityType object
sproc object

Returns

string

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

entityType object
sproc object
properties object

Returns

string

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

entityType object
property object
sproc object

Returns

string

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

property object
entityType object
sproc object

Returns

string

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

entityType object
property object
sproc object

Returns

string

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

entityType object
property object
sproc object

Returns

string

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

string

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

string

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

string

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

entityType object
sproc object

Returns

string

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

entityType1 object
entityType2 object
sproc object

Returns

string

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

entityType object
otherEntityType object
sproc object

Returns

string

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

string

TableNotMappedEntityType(object?, object?)

The entity type '{entityType}' is not mapped to the store object '{table}'.

public static string TableNotMappedEntityType(object? entityType, object? table)

Parameters

entityType object
table object

Returns

string

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

propertySpecification object
table object

Returns

string

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

dbFunction object
entityType object

Returns

string

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

string

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

string

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

expected object
actual object

Returns

string

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

dependentType object
storeObject object
principalEntityType object

Returns

string

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

dependentType object
storeObject object
derivedType object
otherStoreObject object

Returns

string

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

entityType object
function object
otherEntityType object
otherFunction object

Returns

string

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

entityType object
sproc object
otherEntityType object
otherSproc object

Returns

string

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

entityType object
table object
otherEntityType object
otherTable object

Returns

string

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

entityType object
view object
otherEntityType object
otherView object

Returns

string

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

trigger object
triggerTable object
entityType object
entityTable object

Returns

string

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

memberType object
member object
entityType object

Returns

string

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

property object
value object
details object

Returns

string

UnhandledAnnotatableType(object?)

Unhandled annotatable type '{annotatableType}'.

public static string UnhandledAnnotatableType(object? annotatableType)

Parameters

annotatableType object

Returns

string

UnhandledExpressionInVisitor(object?, object?, object?)

Unhandled expression '{expression}' of type '{expressionType}' encountered in '{visitor}'.

public static string UnhandledExpressionInVisitor(object? expression, object? expressionType, object? visitor)

Parameters

expression object
expressionType object
visitor object

Returns

string

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

sqlGeneratorType object
operationType object

Returns

string

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

type object
column object

Returns

string

UnsupportedOperatorForSqlExpression(object?, object?)

Unsupported operator '{nodeType}' specified for expression of type '{expressionType}'.

public static string UnsupportedOperatorForSqlExpression(object? nodeType, object? expressionType)

Parameters

nodeType object
expressionType object

Returns

string

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

entity object
property object
clrType object

Returns

string

UnsupportedStoreType(object?)

The store type '{type}' is not supported by the current provider.

public static string UnsupportedStoreType(object? type)

Parameters

type object

Returns

string

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

string

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

expectedRows object
actualRows object

Returns

string

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

typesCount object
columnsCount object
table object

Returns

string

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

valuesCount object
columnsCount object
table object

Returns

string

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

string

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

valuesCount object
keyCount object
table object

Returns

string

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

typesCount object
columnsCount object
table object

Returns

string

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

valuesCount object
columnsCount object
table object

Returns

string

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)

Parameters

propertySpecification object
view object

Returns

string