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 sequence from model metadata. See inner exception for details.

public static string BadSequenceString { get; }

Property Value

string

BadSequenceType

Invalid type for sequence. Valid types are 'Int64' (the default), 'Int32', 'Int16', 'Byte' and 'Decimal'.

public static string BadSequenceType { get; }

Property Value

string

CannotChangeWhenOpen

The 'DbConnection' is currently in use. The connection can only be changed when the existing connection is not being used.

public static string CannotChangeWhenOpen { get; }

Property Value

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 beginning a 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 transaction.

public static string ConflictingEnlistedTransaction { get; }

Property Value

string

DatabaseModelMissing

The database model hasn't been initialized. The model needs to be finalized before the database model can be accessed.

public static string DatabaseModelMissing { get; }

Property Value

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

FromSqlNonComposable

'FromSqlRaw' or 'FromSqlInterpolated' was called with non-composable SQL and with a query composing over it. Consider calling 'AsEnumerable' after the method to perform the composition on the client side.

public static string FromSqlNonComposable { get; }

Property Value

string

InsufficientInformationToIdentifyOuterElementOfCollectionJoin

Unable to translate collection subquery in projection since the parent query doesn't project key columns of all of it's tables which are required to generate results on client side. This can happen when trying to correlate on keyless entity or when using 'Distinct' or 'GroupBy' operations without projecting all of the key columns.

public static string InsufficientInformationToIdentifyOuterElementOfCollectionJoin { get; }

Property Value

string

InvalidCommandTimeout

The specified CommandTimeout value is not valid. It must be a positive number.

public static string InvalidCommandTimeout { get; }

Property Value

string

InvalidMaxBatchSize

The specified MaxBatchSize value is not valid. It must be a positive number.

public static string InvalidMaxBatchSize { get; }

Property Value

string

InvalidMinBatchSize

The specified MinBatchSize value is not valid. It must be a positive number.

public static string InvalidMinBatchSize { 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

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

Root ambient transaction was completed before the nested transaction. The more 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

NoConnectionOrConnectionString

A relational store has been configured without specifying either the DbConnection or connection string to use.

public static string NoConnectionOrConnectionString { 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 database provider configured and passing it to the context.

public static string NoProviderConfigured { get; }

Property Value

string

NoneRelationalTypeMappingOnARelationalTypeMappingSource

FindMapping 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 operation when both sides don't assign values to same properties in the nominal type. Please make sure that the properties are inclued on both sides, consider assigning default value if the property doesn't require a specific value.

public static string ProjectionMappingCountMismatch { get; }

Property Value

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

SplitQueryString

This LINQ query is being executed in split-query mode. The SQL shown is for the first query to be executed. Additional queries may also be executed depending on the results of the first query.

public static string SplitQueryString { get; }

Property Value

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

UpdateStoreException

An error occurred while updating the entries. 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

ComputedColumnSqlUnspecified(object, object)

The column '{column}' on table '{table}' has unspecified computed column SQL. Specify the SQL before using Entity Framework to create the database schema.

public static string ComputedColumnSqlUnspecified(object column, object table)

Parameters

column object
table object

Returns

string

ConflictingColumnServerGeneration(object, object, object)

{conflictingConfiguration} cannot be set for '{property}' at the same time as {existingConfiguration}. Remove one of these values.

public static string ConflictingColumnServerGeneration(object conflictingConfiguration, object property, object existingConfiguration)

Parameters

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)

The instance of entity type '{firstEntityType}' and the instance of entity type '{secondEntityType}' are mapped to the same row with the key value '{keyValue}', but have different original property values {firstConflictingValues} and {secondConflictingValues} for the column '{column}'.

public static string ConflictingOriginalRowValuesSensitive(object firstEntityType, object secondEntityType, object keyValue, object firstConflictingValues, object secondConflictingValues, object column)

Parameters

firstEntityType 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)

An instance of entity type '{firstEntityType}' and an instance of entity type '{secondEntityType}' are mapped to the same row, but have different property values for the properties {firstProperty} and {secondProperty} mapped to '{column}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting values.

public static string ConflictingRowValues(object firstEntityType, object secondEntityType, object firstProperty, object secondProperty, object column)

Parameters

firstEntityType object
secondEntityType object
firstProperty object
secondProperty object
column object

Returns

string

ConflictingRowValuesSensitive(object, object, object, object, object, object)

The instance of entity type '{firstEntityType}' and the instance of entity type '{secondEntityType}' are mapped to the same row with the key value '{keyValue}', but have different property values '{firstConflictingValue}' and '{secondConflictingValue}' for the column '{column}'.

public static string ConflictingRowValuesSensitive(object firstEntityType, object secondEntityType, object keyValue, object firstConflictingValue, object secondConflictingValue, object column)

Parameters

firstEntityType object
secondEntityType object
keyValue object
firstConflictingValue object
secondConflictingValue object
column object

Returns

string

DataOperationNoProperty(object, object)

There is no property mapped to the column '{table}.{column}' used in a data operation. Either add a property mapped to this column or specify the column types in the data operation.

public static string DataOperationNoProperty(object table, object column)

Parameters

table object
column object

Returns

string

DataOperationNoTable(object)

There is no entity type mapped to the table '{table}' used in a data operation. Either add the corresponding entity type to the model or specify the column types in the data operation.

public static string DataOperationNoTable(object table)

Parameters

table object

Returns

string

DbFunctionExpressionIsNotMethodCall(object)

The provided DbFunction expression '{expression}' is invalid. The expression should be a lambda expression containing a single method call to the target static method. Default values can be provided as arguments if required. E.g. () => SomeClass.SomeMethod(null, 0)

public static string DbFunctionExpressionIsNotMethodCall(object expression)

Parameters

expression object

Returns

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 column '{column}' on table '{table}' has unspecified default value SQL. Specify the SQL before using Entity Framework to create the database schema.

public static string DefaultValueSqlUnspecified(object column, object table)

Parameters

column object
table object

Returns

string

DefaultValueUnspecified(object, object)

The column '{column}' on table '{table}' has an unspecified default value. Specify a value before using Entity Framework to create the database schema.

public static string DefaultValueUnspecified(object column, object table)

Parameters

column object
table 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

DerivedTypeTable(object, object)

The entity type '{entityType}' cannot be mapped to a table because it is derived from '{baseType}'. Only base entity types can be mapped to a table.

[Obsolete]
public static string DerivedTypeTable(object entityType, object baseType)

Parameters

entityType object
baseType object

Returns

string

DuplicateCheckConstraint(object, object)

The check constraint '{checkConstraint}' cannot be added to the entity type '{entityType}' because another check constraint with the same name already exists.

public static string DuplicateCheckConstraint(object checkConstraint, object entityType)

Parameters

checkConstraint object
entityType 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 to use different comments ('{comment1}' and '{comment2}').

public static string DuplicateColumnNameCommentMismatch(object entityType1, object property1, object entityType2, object property2, object columnName, object table, object comment1, object comment2)

Parameters

entityType1 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 are configured with different concurrency token configuration.

public static string DuplicateColumnNameConcurrencyTokenMismatch(object entityType1, object property1, object entityType2, object property2, object columnName, object table)

Parameters

entityType1 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 are configured with different fixed length configuration.

public static string DuplicateColumnNameFixedLengthMismatch(object entityType1, object property1, object entityType2, object property2, object columnName, object table)

Parameters

entityType1 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 max lengths ('{maxLength1}' and '{maxLength2}').

public static string DuplicateColumnNameMaxLengthMismatch(object entityType1, object property1, object entityType2, object property2, object columnName, object table, object maxLength1, object maxLength2)

Parameters

entityType1 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 nullability.

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

DuplicateColumnNamePrecisionMismatch(object, object, object, object, object, object, object, object)

'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}' but are configured with different precision ('{precision1}' and '{precision2}').

public static string DuplicateColumnNamePrecisionMismatch(object entityType1, object property1, object entityType2, object property2, object columnName, object table, object precision1, object precision2)

Parameters

entityType1 object
property1 object
entityType2 object
property2 object
columnName object
table object
precision1 object
precision2 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 scale ('{scale1}' and '{scale2}').

public static string DuplicateColumnNameScaleMismatch(object entityType1, object property1, object entityType2, object property2, object columnName, object table, object scale1, object scale2)

Parameters

entityType1 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 are configured with different unicode configuration

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 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.

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 {indexProperties1} on '{entityType1}' and {indexProperties2} on '{entityType2}' are both mapped to '{table}.{indexName}' but with different columns ({columnNames1} and {columnNames2}).

public static string DuplicateIndexColumnMismatch(object indexProperties1, object entityType1, object indexProperties2, object entityType2, object table, object indexName, object columnNames1, object columnNames2)

Parameters

indexProperties1 object
entityType1 object
indexProperties2 object
entityType2 object
table object
indexName object
columnNames1 object
columnNames2 object

Returns

string

DuplicateIndexTableMismatch(object, object, object, object, object, object, object)

The indexes {indexProperties1} on '{entityType1}' and {indexProperties2} on '{entityType2}' are both mapped to '{indexName}' but are declared on different tables ('{table1}' and '{table2}').

public static string DuplicateIndexTableMismatch(object indexProperties1, object entityType1, object indexProperties2, object entityType2, object indexName, object table1, object table2)

Parameters

indexProperties1 object
entityType1 object
indexProperties2 object
entityType2 object
indexName object
table1 object
table2 object

Returns

string

DuplicateIndexUniquenessMismatch(object, object, object, object, object, object)

The indexes {indexProperties1} on '{entityType1}' and {indexProperties2} on '{entityType2}' are both mapped to '{table}.{indexName}' but with different uniqueness.

public static string DuplicateIndexUniquenessMismatch(object indexProperties1, object entityType1, object indexProperties2, object entityType2, object table, object indexName)

Parameters

indexProperties1 object
entityType1 object
indexProperties2 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

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

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

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}', however it isn't mapped to a column on that function return. Remove the specific configuration or map an entity type that contains this property to '{function}'.

public static string FunctionOverrideMismatch(object propertySpecification, object function)

Parameters

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}', there is a relationship between their primary keys in which '{entityType}' is the dependent and '{entityType}' has a base entity type mapped to a different table. Either map '{otherEntityType}' to a different table or invert the relationship between '{entityType}' and '{otherEntityType}'.

public static string IncompatibleTableDerivedRelationship(object table, object entityType, object otherEntityType)

Parameters

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 it excluded from migration on one entity type, but not the other. Exclude the table from migrations on all entity types mapped to the table.

public static string IncompatibleTableExcludedMismatch(object table, object entityType, object otherEntityType)

Parameters

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 typed 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}', there is a relationship between their primary keys in which '{entityType}' is the dependent and '{entityType}' has a base entity type mapped to a different view. Either map '{otherEntityType}' to a different view or invert the relationship between '{entityType}' and '{otherEntityType}'.

public static string IncompatibleViewDerivedRelationship(object view, object entityType, object otherEntityType)

Parameters

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

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

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}' and it's derived from '{baseEntityType}'. Derived entity types cannot be mapped to a function.

public static string InvalidMappedFunctionDerivedType(object entityType, object functionName, object baseEntityType)

Parameters

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 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 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 and it's derived from '{baseEntityType}'. Derived entity types cannot be mapped to a different SQL query.

public static string InvalidMappedSqlQueryDerivedType(object entityType, object baseEntityType)

Parameters

entityType object
baseEntityType object

Returns

string

LastUsedWithoutOrderBy(object)

Queries performing '{method}' operation must have a deterministic sort order. Rewrite the query to apply an 'OrderBy' clause on the sequence before calling '{method}'.

public static string LastUsedWithoutOrderBy(object method)

Parameters

method object

Returns

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

MissingConcurrencyColumn(object, object, object)

Entity type '{entityType}' doesn't contain a property mapped to the store-generated concurrency token column '{missingColumn}' that is used by another entity type sharing the table '{table}'. Add a store-generated property mapped to the same column to '{entityType}'. It can be in shadow state.

public static string MissingConcurrencyColumn(object entityType, object missingColumn, object table)

Parameters

entityType object
missingColumn object
table object

Returns

string

MissingIdentifyingProjectionInDistinctGroupBySubquery(object)

Unable to translate collection subquery in projection since it uses 'Distinct' or 'Group By' operations and doesn't project key columns of all of it's tables which are required to generate results on client side. Missing column: {column}. Either add column(s) to the projection or rewrite query to not use 'GroupBy'/'Distinct' operation.

public static string MissingIdentifyingProjectionInDistinctGroupBySubquery(object column)

Parameters

column object

Returns

string

MissingParameterValue(object)

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

public static string MissingParameterValue(object parameter)

Parameters

parameter object

Returns

string

ModificationCommandInvalidEntityState(object)

Cannot save changes for an entity in state '{entityState}'.

public static string ModificationCommandInvalidEntityState(object entityState)

Parameters

entityState 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

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

NonTPHTableClash(object, object, object)

Both '{entityType}' and '{otherEntityType}' are mapped to the table '{table}'. All the entity types in a hierarchy that don't have a discriminator must be mapped to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.

public static string NonTPHTableClash(object entityType, object otherEntityType, object table)

Parameters

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 hierarchy that don't have a discriminator must be mapped to different views. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.

public static string NonTPHViewClash(object entityType, object otherEntityType, object view)

Parameters

entityType object
otherEntityType object
view object

Returns

string

NullTypeMappingInSqlTree(object)

Expression '{sqlExpression}' in SQL tree does not have type mapping assigned.

public static string NullTypeMappingInSqlTree(object sqlExpression)

Parameters

sqlExpression 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

PropertyNotMappedToTable(object, object, object)

The property '{property}' on entity type '{entityType}' is not mapped to the table '{table}'.

public static string PropertyNotMappedToTable(object property, object entityType, object table)

Parameters

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. Use 'ToTable' in 'OnModelCreating' to map it.

public static string ReadonlyEntitySaved(object entityType)

Parameters

entityType object

Returns

string

SelectExpressionNonTPHWithCustomTable(object)

Cannot create 'SelectExpression' with custom 'TableExpressionBase' since result type '{entityType}' is part of hierarchy and does not contain a discriminator property.

public static string SelectExpressionNonTPHWithCustomTable(object entityType)

Parameters

entityType object

Returns

string

SqlQueryOverrideMismatch(object, object)

The property '{propertySpecification}' has specific configuration for the SQL query '{query}', however it isn't mapped to a column on that query. Remove the specific configuration or map an entity type that contains this property to '{query}'.

public static string SqlQueryOverrideMismatch(object propertySpecification, object query)

Parameters

propertySpecification object
query 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 all of them to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.

public static string TPHTableMismatch(object entityType, object table, object otherEntityType, object otherTable)

Parameters

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 all of them to different views. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.

public static string TPHViewMismatch(object entityType, object view, object otherEntityType, object otherView)

Parameters

entityType object
view object
otherEntityType object
otherView 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}', however it isn't mapped to a column on that table. Remove the specific configuration or map an entity type that contains this property to '{table}'.

public static string TableOverrideMismatch(object propertySpecification, object table)

Parameters

propertySpecification object
table object

Returns

string

TableValuedFunctionNonTPH(object, object)

The element type of result of '{dbFunction}' is mapped to '{entityType}'. This is not supported since '{entityType}' is part of hierarchy and does not contain a discriminator property.

public static string TableValuedFunctionNonTPH(object dbFunction, object entityType)

Parameters

dbFunction object
entityType object

Returns

string

TimeoutTooBig(object)

Timeout must be less than or equal to Int32.MaxValue (2147483647) seconds. Provided: {seconds} seconds.

public static string TimeoutTooBig(object seconds)

Parameters

seconds object

Returns

string

TimeoutTooSmall(object)

Timeout must be greater than or equal to zero. Provided: {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

UnableToBindMemberToEntityProjection(object, object, object)

Unable to bind '{memberType}' '{member}' to entity projection of '{entityType}'.

public static string UnableToBindMemberToEntityProjection(object memberType, object member, object entityType)

Parameters

memberType object
member object
entityType object

Returns

string

UnableToSplitCollectionProjectionInSplitQuery(object, object, object)

The query has been configured to use '{splitQueryEnumValue}' and contains a collection in the 'Select' call, which could not be split into separate query. Please remove '{splitQueryMethodName}' if applied or add '{singleQueryMethodName}' to the query.

public static string UnableToSplitCollectionProjectionInSplitQuery(object splitQueryEnumValue, object splitQueryMethodName, object singleQueryMethodName)

Parameters

splitQueryEnumValue object
splitQueryMethodName object
singleQueryMethodName 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 mapping to a relational type can be found for property '{entity}.{property}' with the CLR type '{clrType}'.

public static string UnsupportedPropertyType(object entity, object property, object clrType)

Parameters

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)

No mapping to a relational type can be found for the CLR type '{clrType}'.

public static string UnsupportedType(object clrType)

Parameters

clrType object

Returns

string

UpdateConcurrencyException(object, object)

Database operation expected to affect {expectedRows} row(s) but actually affected {actualRows} row(s). Data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.

public static string UpdateConcurrencyException(object expectedRows, object actualRows)

Parameters

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 '{table}', however it isn't mapped to a column on that view. Remove the specific configuration or map an entity type that contains this property to '{table}'.

public static string ViewOverrideMismatch(object propertySpecification, object table)

Parameters

propertySpecification object
table object

Returns

string