RelationalStrings RelationalStrings Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public static class RelationalStringsPublic Module RelationalStrings

Inheritance Hierarchy

  • System.Object
    System.Object
  • RelationalStrings
    RelationalStrings

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Properties summary

An ambient transaction has been detected. Entity Framework Core does not support ambient transactions. See http://go.microsoft.com/fwlink/?LinkId=800142

Unable to deserialize sequence from model metadata. See inner exception for details.

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

Two entities cannot make conflicting updates to the same row.

Both an existing DbConnection and a connection string have been configured. When an existing DbConnection is used the connection string must be set on that connection.

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

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

Multiple relational database provider configurations found. A context can only be configured to use a single database provider.

The connection does not have any active transactions.

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

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.

Committing transaction.

Rolling back transaction.

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

The Include operation is not supported when calling a stored procedure.

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

The specified transaction is not associated with the current connection. Only transactions associated with the current connection may be used.

An error occurred while updating the entries. See the inner exception for details.

Methods summary

Applying migration '{migration}'.

The LINQ expression '{expression}' could not be translated and will be evaluated locally.

{conflictingConfiguration} cannot be set for '{property}', because {existingConfiguration} is already set.

Cannot configure the discriminator value for entity type '{entityType}' because it doesn't derive from '{rootEntityType}'.

A discriminator property cannot be set for the entity type '{entityType}' because it is not the root of an inheritance hierarchy.

Unable to set property '{property}' as a discriminator for entity type '{entityType}' because it is not a property of '{entityType}'.

Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to property of type '{discriminatorType}'.

'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}' but are configured to use different computed values ('{value1}' and '{value2}').

'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}' but are configured to use different data types ('{dataType1}' and '{dataType2}').

'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}' but are configured to use different default values ('{value1}' and '{value2}').

'{entityType1}.{property1}' and '{entityType2}.{property2}' are both mapped to column '{columnName}' in '{table}' but are configured with different nullability.

The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy needs to have a unique discriminator value.

The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but use different columns ({columnNames1} and {columnNames2}).

The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but with different delete behavior ('{deleteBehavior1}' and '{deleteBehavior2}').

The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but referencing different principal columns ({principalColumnNames1} and {principalColumnNames2}).

The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but referencing different principal tables ('{principalTable1}' and '{principalTable2}').

The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but with different uniqueness.

The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}' but with different columns ({columnNames1} and {columnNames2}).

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

Cannot use table '{table}' in schema '{schema}' for entity '{entityType}' since it is being used for another entity.

The required column '{column}' was not present in the results of a 'FromSql' operation.

Generating down script for migration '{migration}'.

Generating up script for migration '{migration}'.

Cannot set default value '{value}' of type '{valueType}' on property '{property}' of type '{propertyType}' in entity type '{entityType}'.

Property '{property}' on entity type '{entityType}' is part of a primary or alternate key but has a constant default value set. Constant default values are not useful for primary or alternate keys since these properties must always have non-null unqiue values.

The migration '{migrationName}' was not found.

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

Cannot create a ModificationFunction for an entity in state '{entityState}'.

Cannot set discriminator value for entity type '{entityType}' because the root entity type '{rootEntityType}' doesn't have a discriminator property set.

The entity type '{entityType}' is part of a hierarchy, but does not have a discriminator property configured.

The entity type '{entityType}' is part of a hierarchy, but does not have a discriminator value configured.

Cannot use the value provided for parameter '{parameter}' because it isn't assignable to type object[].

Linq translation for method '{function}' used by this database provider can return incorrect results when the value argument contains wildcard characters (e.g. '%' or '_').

Possible unintended use of method Equals(object) for arguments of different types: '{left}', '{right}'. This comparison will always return 'false'.

Beginning transaction with isolation level '{isolationLevel}'.

Closing connection to database '{database}' on server '{server}'.

Executed DbCommand ({elapsed}ms) [Parameters=[{parameters}], CommandType='{commandType}', CommandTimeout='{commandTimeout}']{newLine}{commandText}

Opening connection to database '{database}' on server '{server}'.

Reverting migration '{migration}'.

Unable to materialize entity of type '{entityType}'. No discriminators were matched.

The current migration SQL generator '{sqlGeneratorType}' is unable to generate SQL for operations of type '{operationType}'.

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

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

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.

Using database '{database}' on server '{dataSource}'.

Properties

  • AmbientTransaction
    AmbientTransaction

    An ambient transaction has been detected. Entity Framework Core does not support ambient transactions. See http://go.microsoft.com/fwlink/?LinkId=800142

    public static string AmbientTransaction { get; }Public Shared ReadOnly Property AmbientTransaction As String

    Property Value

    • System.String
      System.String
  • BadSequenceString
    BadSequenceString

    Unable to deserialize sequence from model metadata. See inner exception for details.

    public static string BadSequenceString { get; }Public Shared ReadOnly Property BadSequenceString As String

    Property Value

    • System.String
      System.String
  • BadSequenceType
    BadSequenceType

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

    public static string BadSequenceType { get; }Public Shared ReadOnly Property BadSequenceType As String

    Property Value

    • System.String
      System.String
  • ConflictingRowUpdates
    ConflictingRowUpdates

    Two entities cannot make conflicting updates to the same row.

    public static string ConflictingRowUpdates { get; }Public Shared ReadOnly Property ConflictingRowUpdates As String

    Property Value

    • System.String
      System.String
  • ConnectionAndConnectionString
    ConnectionAndConnectionString

    Both an existing DbConnection and a connection string have been configured. When an existing DbConnection is used the connection string must be set on that connection.

    public static string ConnectionAndConnectionString { get; }Public Shared ReadOnly Property ConnectionAndConnectionString As String

    Property Value

    • System.String
      System.String
  • InvalidCommandTimeout
    InvalidCommandTimeout

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

    public static string InvalidCommandTimeout { get; }Public Shared ReadOnly Property InvalidCommandTimeout As String

    Property Value

    • System.String
      System.String
  • InvalidMaxBatchSize
    InvalidMaxBatchSize

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

    public static string InvalidMaxBatchSize { get; }Public Shared ReadOnly Property InvalidMaxBatchSize As String

    Property Value

    • System.String
      System.String
  • MultipleProvidersConfigured
    MultipleProvidersConfigured

    Multiple relational database provider configurations found. A context can only be configured to use a single database provider.

    public static string MultipleProvidersConfigured { get; }Public Shared ReadOnly Property MultipleProvidersConfigured As String

    Property Value

    • System.String
      System.String
  • NoActiveTransaction
    NoActiveTransaction

    The connection does not have any active transactions.

    public static string NoActiveTransaction { get; }Public Shared ReadOnly Property NoActiveTransaction As String

    Property Value

    • System.String
      System.String
  • NoConnectionOrConnectionString
    NoConnectionOrConnectionString

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

    public static string NoConnectionOrConnectionString { get; }Public Shared ReadOnly Property NoConnectionOrConnectionString As String

    Property Value

    • System.String
      System.String
  • NoProviderConfigured
    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; }Public Shared ReadOnly Property NoProviderConfigured As String

    Property Value

    • System.String
      System.String
  • RelationalLoggerCommittingTransaction
    RelationalLoggerCommittingTransaction

    Committing transaction.

    public static string RelationalLoggerCommittingTransaction { get; }Public Shared ReadOnly Property RelationalLoggerCommittingTransaction As String

    Property Value

    • System.String
      System.String
  • RelationalLoggerRollingbackTransaction
    RelationalLoggerRollingbackTransaction

    Rolling back transaction.

    public static string RelationalLoggerRollingbackTransaction { get; }Public Shared ReadOnly Property RelationalLoggerRollingbackTransaction As String

    Property Value

    • System.String
      System.String
  • RelationalNotInUse
    RelationalNotInUse

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

    public static string RelationalNotInUse { get; }Public Shared ReadOnly Property RelationalNotInUse As String

    Property Value

    • System.String
      System.String
  • StoredProcedureIncludeNotSupported
    StoredProcedureIncludeNotSupported

    The Include operation is not supported when calling a stored procedure.

    public static string StoredProcedureIncludeNotSupported { get; }Public Shared ReadOnly Property StoredProcedureIncludeNotSupported As String

    Property Value

    • System.String
      System.String
  • TransactionAlreadyStarted
    TransactionAlreadyStarted

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

    public static string TransactionAlreadyStarted { get; }Public Shared ReadOnly Property TransactionAlreadyStarted As String

    Property Value

    • System.String
      System.String
  • TransactionAssociatedWithDifferentConnection
    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; }Public Shared ReadOnly Property TransactionAssociatedWithDifferentConnection As String

    Property Value

    • System.String
      System.String
  • UpdateStoreException
    UpdateStoreException

    An error occurred while updating the entries. See the inner exception for details.

    public static string UpdateStoreException { get; }Public Shared ReadOnly Property UpdateStoreException As String

    Property Value

    • System.String
      System.String

Methods

  • ApplyingMigration(Object)
    ApplyingMigration(Object)

    Applying migration '{migration}'.

    public static string ApplyingMigration(object migration)Public Shared Function ApplyingMigration(migration As Object) As String

    Parameters

    • migration
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ClientEvalWarning(Object)
    ClientEvalWarning(Object)

    The LINQ expression '{expression}' could not be translated and will be evaluated locally.

    public static string ClientEvalWarning(object expression)Public Shared Function ClientEvalWarning(expression As Object) As String

    Parameters

    • expression
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ConflictingColumnServerGeneration(Object, Object, Object)
    ConflictingColumnServerGeneration(Object, Object, Object)

    {conflictingConfiguration} cannot be set for '{property}', because {existingConfiguration} is already set.

    public static string ConflictingColumnServerGeneration(object conflictingConfiguration, object property, object existingConfiguration)Public Shared Function ConflictingColumnServerGeneration(conflictingConfiguration As Object, property As Object, existingConfiguration As Object) As String

    Parameters

    • conflictingConfiguration
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • existingConfiguration
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DiscriminatorEntityTypeNotDerived(Object, Object)
    DiscriminatorEntityTypeNotDerived(Object, Object)

    Cannot configure the discriminator value for entity type '{entityType}' because it doesn't derive from '{rootEntityType}'.

    public static string DiscriminatorEntityTypeNotDerived(object entityType, object rootEntityType)Public Shared Function DiscriminatorEntityTypeNotDerived(entityType As Object, rootEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • rootEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DiscriminatorPropertyMustBeOnRoot(Object)
    DiscriminatorPropertyMustBeOnRoot(Object)

    A discriminator property cannot be set for the entity type '{entityType}' because it is not the root of an inheritance hierarchy.

    public static string DiscriminatorPropertyMustBeOnRoot(object entityType)Public Shared Function DiscriminatorPropertyMustBeOnRoot(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DiscriminatorPropertyNotFound(Object, Object)
    DiscriminatorPropertyNotFound(Object, Object)

    Unable to set property '{property}' as a discriminator for entity type '{entityType}' because it is not a property of '{entityType}'.

    public static string DiscriminatorPropertyNotFound(object property, object entityType)Public Shared Function DiscriminatorPropertyNotFound(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DiscriminatorValueIncompatible(Object, Object, Object)
    DiscriminatorValueIncompatible(Object, Object, Object)

    Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to property of type '{discriminatorType}'.

    public static string DiscriminatorValueIncompatible(object value, object discriminator, object discriminatorType)Public Shared Function DiscriminatorValueIncompatible(value As Object, discriminator As Object, discriminatorType As Object) As String

    Parameters

    • value
      System.Object
      System.Object
    • discriminator
      System.Object
      System.Object
    • discriminatorType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateColumnNameComputedSqlMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    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)Public Shared Function DuplicateColumnNameComputedSqlMismatch(entityType1 As Object, property1 As Object, entityType2 As Object, property2 As Object, columnName As Object, table As Object, value1 As Object, value2 As Object) As String

    Parameters

    • entityType1
      System.Object
      System.Object
    • property1
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • property2
      System.Object
      System.Object
    • columnName
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • value1
      System.Object
      System.Object
    • value2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateColumnNameDataTypeMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    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)Public Shared Function DuplicateColumnNameDataTypeMismatch(entityType1 As Object, property1 As Object, entityType2 As Object, property2 As Object, columnName As Object, table As Object, dataType1 As Object, dataType2 As Object) As String

    Parameters

    • entityType1
      System.Object
      System.Object
    • property1
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • property2
      System.Object
      System.Object
    • columnName
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • dataType1
      System.Object
      System.Object
    • dataType2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateColumnNameDefaultSqlMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    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)Public Shared Function DuplicateColumnNameDefaultSqlMismatch(entityType1 As Object, property1 As Object, entityType2 As Object, property2 As Object, columnName As Object, table As Object, value1 As Object, value2 As Object) As String

    Parameters

    • entityType1
      System.Object
      System.Object
    • property1
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • property2
      System.Object
      System.Object
    • columnName
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • value1
      System.Object
      System.Object
    • value2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateColumnNameNullabilityMismatch(Object, Object, Object, Object, Object, Object)
    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)Public Shared Function DuplicateColumnNameNullabilityMismatch(entityType1 As Object, property1 As Object, entityType2 As Object, property2 As Object, columnName As Object, table As Object) As String

    Parameters

    • entityType1
      System.Object
      System.Object
    • property1
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • property2
      System.Object
      System.Object
    • columnName
      System.Object
      System.Object
    • table
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateDiscriminatorValue(Object, Object, Object)
    DuplicateDiscriminatorValue(Object, Object, Object)

    The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy needs to have a unique discriminator value.

    public static string DuplicateDiscriminatorValue(object entityType1, object discriminatorValue, object entityType2)Public Shared Function DuplicateDiscriminatorValue(entityType1 As Object, discriminatorValue As Object, entityType2 As Object) As String

    Parameters

    • entityType1
      System.Object
      System.Object
    • discriminatorValue
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateForeignKeyColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    DuplicateForeignKeyColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object)

    The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but use different columns ({columnNames1} and {columnNames2}).

    public static string DuplicateForeignKeyColumnMismatch(object index1, object entityType1, object index2, object entityType2, object table, object foreignKeyName, object columnNames1, object columnNames2)Public Shared Function DuplicateForeignKeyColumnMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, foreignKeyName As Object, columnNames1 As Object, columnNames2 As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • foreignKeyName
      System.Object
      System.Object
    • columnNames1
      System.Object
      System.Object
    • columnNames2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateForeignKeyDeleteBehaviorMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    DuplicateForeignKeyDeleteBehaviorMismatch(Object, Object, Object, Object, Object, Object, Object, Object)

    The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but with different delete behavior ('{deleteBehavior1}' and '{deleteBehavior2}').

    public static string DuplicateForeignKeyDeleteBehaviorMismatch(object index1, object entityType1, object index2, object entityType2, object table, object foreignKeyName, object deleteBehavior1, object deleteBehavior2)Public Shared Function DuplicateForeignKeyDeleteBehaviorMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, foreignKeyName As Object, deleteBehavior1 As Object, deleteBehavior2 As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • foreignKeyName
      System.Object
      System.Object
    • deleteBehavior1
      System.Object
      System.Object
    • deleteBehavior2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateForeignKeyPrincipalColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    DuplicateForeignKeyPrincipalColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object)

    The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but referencing different principal columns ({principalColumnNames1} and {principalColumnNames2}).

    public static string DuplicateForeignKeyPrincipalColumnMismatch(object index1, object entityType1, object index2, object entityType2, object table, object foreignKeyName, object principalColumnNames1, object principalColumnNames2)Public Shared Function DuplicateForeignKeyPrincipalColumnMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, foreignKeyName As Object, principalColumnNames1 As Object, principalColumnNames2 As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • foreignKeyName
      System.Object
      System.Object
    • principalColumnNames1
      System.Object
      System.Object
    • principalColumnNames2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateForeignKeyPrincipalTableMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    DuplicateForeignKeyPrincipalTableMismatch(Object, Object, Object, Object, Object, Object, Object, Object)

    The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but referencing different principal tables ('{principalTable1}' and '{principalTable2}').

    public static string DuplicateForeignKeyPrincipalTableMismatch(object index1, object entityType1, object index2, object entityType2, object table, object foreignKeyName, object principalTable1, object principalTable2)Public Shared Function DuplicateForeignKeyPrincipalTableMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, foreignKeyName As Object, principalTable1 As Object, principalTable2 As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • foreignKeyName
      System.Object
      System.Object
    • principalTable1
      System.Object
      System.Object
    • principalTable2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateForeignKeyUniquenessMismatch(Object, Object, Object, Object, Object, Object)
    DuplicateForeignKeyUniquenessMismatch(Object, Object, Object, Object, Object, Object)

    The foreign keys {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{foreignKeyName}' but with different uniqueness.

    public static string DuplicateForeignKeyUniquenessMismatch(object index1, object entityType1, object index2, object entityType2, object table, object foreignKeyName)Public Shared Function DuplicateForeignKeyUniquenessMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, foreignKeyName As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • foreignKeyName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateIndexColumnMismatch(Object, Object, Object, Object, Object, Object, Object, Object)
    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)Public Shared Function DuplicateIndexColumnMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, indexName As Object, columnNames1 As Object, columnNames2 As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • indexName
      System.Object
      System.Object
    • columnNames1
      System.Object
      System.Object
    • columnNames2
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateIndexUniquenessMismatch(Object, Object, Object, Object, Object, Object)
    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.

    public static string DuplicateIndexUniquenessMismatch(object index1, object entityType1, object index2, object entityType2, object table, object indexName)Public Shared Function DuplicateIndexUniquenessMismatch(index1 As Object, entityType1 As Object, index2 As Object, entityType2 As Object, table As Object, indexName As Object) As String

    Parameters

    • index1
      System.Object
      System.Object
    • entityType1
      System.Object
      System.Object
    • index2
      System.Object
      System.Object
    • entityType2
      System.Object
      System.Object
    • table
      System.Object
      System.Object
    • indexName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateTableName(Object, Object, Object)
    DuplicateTableName(Object, Object, Object)

    Cannot use table '{table}' in schema '{schema}' for entity '{entityType}' since it is being used for another entity.

    public static string DuplicateTableName(object table, object schema, object entityType)Public Shared Function DuplicateTableName(table As Object, schema As Object, entityType As Object) As String

    Parameters

    • table
      System.Object
      System.Object
    • schema
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • FromSqlMissingColumn(Object)
    FromSqlMissingColumn(Object)

    The required column '{column}' was not present in the results of a 'FromSql' operation.

    public static string FromSqlMissingColumn(object column)Public Shared Function FromSqlMissingColumn(column As Object) As String

    Parameters

    • column
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • GeneratingDown(Object)
    GeneratingDown(Object)

    Generating down script for migration '{migration}'.

    public static string GeneratingDown(object migration)Public Shared Function GeneratingDown(migration As Object) As String

    Parameters

    • migration
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • GeneratingUp(Object)
    GeneratingUp(Object)

    Generating up script for migration '{migration}'.

    public static string GeneratingUp(object migration)Public Shared Function GeneratingUp(migration As Object) As String

    Parameters

    • migration
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IncorrectDefaultValueType(Object, Object, Object, Object, Object)
    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)Public Shared Function IncorrectDefaultValueType(value As Object, valueType As Object, property As Object, propertyType As Object, entityType As Object) As String

    Parameters

    • value
      System.Object
      System.Object
    • valueType
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyHasDefaultValue(Object, Object)
    KeyHasDefaultValue(Object, Object)

    Property '{property}' on entity type '{entityType}' is part of a primary or alternate key but has a constant default value set. Constant default values are not useful for primary or alternate keys since these properties must always have non-null unqiue values.

    public static string KeyHasDefaultValue(object property, object entityType)Public Shared Function KeyHasDefaultValue(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MigrationNotFound(Object)
    MigrationNotFound(Object)

    The migration '{migrationName}' was not found.

    public static string MigrationNotFound(object migrationName)Public Shared Function MigrationNotFound(migrationName As Object) As String

    Parameters

    • migrationName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MissingParameterValue(Object)
    MissingParameterValue(Object)

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

    public static string MissingParameterValue(object parameter)Public Shared Function MissingParameterValue(parameter As Object) As String

    Parameters

    • parameter
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ModificationFunctionInvalidEntityState(Object)
    ModificationFunctionInvalidEntityState(Object)

    Cannot create a ModificationFunction for an entity in state '{entityState}'.

    public static string ModificationFunctionInvalidEntityState(object entityState)Public Shared Function ModificationFunctionInvalidEntityState(entityState As Object) As String

    Parameters

    • entityState
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoDiscriminatorForValue(Object, Object)
    NoDiscriminatorForValue(Object, Object)

    Cannot set discriminator value for entity type '{entityType}' because the root entity type '{rootEntityType}' doesn't have a discriminator property set.

    public static string NoDiscriminatorForValue(object entityType, object rootEntityType)Public Shared Function NoDiscriminatorForValue(entityType As Object, rootEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • rootEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoDiscriminatorProperty(Object)
    NoDiscriminatorProperty(Object)

    The entity type '{entityType}' is part of a hierarchy, but does not have a discriminator property configured.

    public static string NoDiscriminatorProperty(object entityType)Public Shared Function NoDiscriminatorProperty(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoDiscriminatorValue(Object)
    NoDiscriminatorValue(Object)

    The entity type '{entityType}' is part of a hierarchy, but does not have a discriminator value configured.

    public static string NoDiscriminatorValue(object entityType)Public Shared Function NoDiscriminatorValue(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ParameterNotObjectArray(Object)
    ParameterNotObjectArray(Object)

    Cannot use the value provided for parameter '{parameter}' because it isn't assignable to type object[].

    public static string ParameterNotObjectArray(object parameter)Public Shared Function ParameterNotObjectArray(parameter As Object) As String

    Parameters

    • parameter
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PossibleIncorrectResultsUsingLikeOperator(Object)
    PossibleIncorrectResultsUsingLikeOperator(Object)

    Linq translation for method '{function}' used by this database provider can return incorrect results when the value argument contains wildcard characters (e.g. '%' or '_').

    public static string PossibleIncorrectResultsUsingLikeOperator(object function)Public Shared Function PossibleIncorrectResultsUsingLikeOperator(function As Object) As String

    Parameters

    • function
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PossibleUnintendedUseOfEquals(Object, Object)
    PossibleUnintendedUseOfEquals(Object, Object)

    Possible unintended use of method Equals(object) for arguments of different types: '{left}', '{right}'. This comparison will always return 'false'.

    public static string PossibleUnintendedUseOfEquals(object left, object right)Public Shared Function PossibleUnintendedUseOfEquals(left As Object, right As Object) As String

    Parameters

    • left
      System.Object
      System.Object
    • right
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RelationalLoggerBeginningTransaction(Object)
    RelationalLoggerBeginningTransaction(Object)

    Beginning transaction with isolation level '{isolationLevel}'.

    public static string RelationalLoggerBeginningTransaction(object isolationLevel)Public Shared Function RelationalLoggerBeginningTransaction(isolationLevel As Object) As String

    Parameters

    • isolationLevel
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RelationalLoggerClosingConnection(Object, Object)
    RelationalLoggerClosingConnection(Object, Object)

    Closing connection to database '{database}' on server '{server}'.

    public static string RelationalLoggerClosingConnection(object database, object server)Public Shared Function RelationalLoggerClosingConnection(database As Object, server As Object) As String

    Parameters

    • database
      System.Object
      System.Object
    • server
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RelationalLoggerExecutedCommand(Object, Object, Object, Object, Object, Object)
    RelationalLoggerExecutedCommand(Object, Object, Object, Object, Object, Object)

    Executed DbCommand ({elapsed}ms) [Parameters=[{parameters}], CommandType='{commandType}', CommandTimeout='{commandTimeout}']{newLine}{commandText}

    public static string RelationalLoggerExecutedCommand(object elapsed, object parameters, object commandType, object commandTimeout, object newLine, object commandText)Public Shared Function RelationalLoggerExecutedCommand(elapsed As Object, parameters As Object, commandType As Object, commandTimeout As Object, newLine As Object, commandText As Object) As String

    Parameters

    • elapsed
      System.Object
      System.Object
    • parameters
      System.Object
      System.Object
    • commandType
      System.Object
      System.Object
    • commandTimeout
      System.Object
      System.Object
    • newLine
      System.Object
      System.Object
    • commandText
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RelationalLoggerOpeningConnection(Object, Object)
    RelationalLoggerOpeningConnection(Object, Object)

    Opening connection to database '{database}' on server '{server}'.

    public static string RelationalLoggerOpeningConnection(object database, object server)Public Shared Function RelationalLoggerOpeningConnection(database As Object, server As Object) As String

    Parameters

    • database
      System.Object
      System.Object
    • server
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RevertingMigration(Object)
    RevertingMigration(Object)

    Reverting migration '{migration}'.

    public static string RevertingMigration(object migration)Public Shared Function RevertingMigration(migration As Object) As String

    Parameters

    • migration
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UnableToDiscriminate(Object)
    UnableToDiscriminate(Object)

    Unable to materialize entity of type '{entityType}'. No discriminators were matched.

    public static string UnableToDiscriminate(object entityType)Public Shared Function UnableToDiscriminate(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UnknownOperation(Object, Object)
    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)Public Shared Function UnknownOperation(sqlGeneratorType As Object, operationType As Object) As String

    Parameters

    • sqlGeneratorType
      System.Object
      System.Object
    • operationType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UnsupportedPropertyType(Object, Object, Object)
    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)Public Shared Function UnsupportedPropertyType(entity As Object, property As Object, clrType As Object) As String

    Parameters

    • entity
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • clrType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UnsupportedType(Object)
    UnsupportedType(Object)

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

    public static string UnsupportedType(object clrType)Public Shared Function UnsupportedType(clrType As Object) As String

    Parameters

    • clrType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UpdateConcurrencyException(Object, Object)
    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)Public Shared Function UpdateConcurrencyException(expectedRows As Object, actualRows As Object) As String

    Parameters

    • expectedRows
      System.Object
      System.Object
    • actualRows
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • UsingConnection(Object, Object)
    UsingConnection(Object, Object)

    Using database '{database}' on server '{dataSource}'.

    public static string UsingConnection(object database, object dataSource)Public Shared Function UsingConnection(database As Object, dataSource As Object) As String

    Parameters

    • database
      System.Object
      System.Object
    • dataSource
      System.Object
      System.Object

    Returns

    • System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll