Search Results for

    Show / Hide Table of Contents

    Class NpgsqlStrings

    This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    Inheritance
    object
    NpgsqlStrings
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Internal
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public static class NpgsqlStrings

    Properties

    | Improve this Doc View Source

    CannotUseDataSourceWithAuthCallbacks

    Cannot set ProvideClientCertificatesCallback, RemoteCertificateValidationCallback or ProvidePasswordCallback when a data source is provided.

    Declaration
    public static string CannotUseDataSourceWithAuthCallbacks { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Ef7JsonMappingNotSupported

    The EF Core 7.0 JSON support isn't currently supported by the Npgsql provider. To map to JSON, see https://www.npgsql.org/efcore/mapping/json.html.

    Declaration
    public static string Ef7JsonMappingNotSupported { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    FreeTextFunctionOnClient

    The 'FreeText' method is not supported because the query has switched to client-evaluation. Inspect the log to determine which query expressions are triggering client-evaluation.

    Declaration
    public static string FreeTextFunctionOnClient { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    RowValueComparisonRequiresTuplesOfSameLength

    Row values comparisons require two tuple arguments of the same length.

    Declaration
    public static string RowValueComparisonRequiresTuplesOfSameLength { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    TransientExceptionDetected

    An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure()' to the 'UseSqlServer' call.

    Declaration
    public static string TransientExceptionDetected { get; }
    Property Value
    Type Description
    string

    Methods

    | Improve this Doc View Source

    DuplicateColumnCompressionMethodMismatch(object?, object?, object?, object?, object?, object?)

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

    Declaration
    public static string DuplicateColumnCompressionMethodMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
    Parameters
    Type Name Description
    object? entityType1
    object? property1
    object? entityType2
    object? property2
    object? columnName
    object? table
    Returns
    Type Description
    string
    | Improve this Doc View Source

    DuplicateColumnNameValueGenerationStrategyMismatch(object?, object?, object?, object?, object?, object?)

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

    Declaration
    public static string DuplicateColumnNameValueGenerationStrategyMismatch(object? entityType1, object? property1, object? entityType2, object? property2, object? columnName, object? table)
    Parameters
    Type Name Description
    object? entityType1
    object? property1
    object? entityType2
    object? property2
    object? columnName
    object? table
    Returns
    Type Description
    string
    | Improve this Doc View Source

    DuplicateIndexCollationMismatch(object?, object?, object?, object?, object?, object?)

    The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but have different collation configurations.

    Declaration
    public static string DuplicateIndexCollationMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName)
    Parameters
    Type Name Description
    object? index1
    object? entityType1
    object? index2
    object? entityType2
    object? table
    object? indexName
    Returns
    Type Description
    string
    | Improve this Doc View Source

    DuplicateIndexConcurrentCreationMismatch(object?, object?, object?, object?, object?, object?)

    The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but have different concurrent creation configurations.

    Declaration
    public static string DuplicateIndexConcurrentCreationMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName)
    Parameters
    Type Name Description
    object? index1
    object? entityType1
    object? index2
    object? entityType2
    object? table
    object? indexName
    Returns
    Type Description
    string
    | Improve this Doc View Source

    DuplicateIndexIncludedMismatch(object?, object?, object?, object?, object?, object?, object?, object?)

    The indexes {index1} on '{entityType1}' and {index2} on '{entityType2}' are both mapped to '{table}.{indexName}', but have different included columns: {includedColumns1} and {includedColumns2}.

    Declaration
    public static string DuplicateIndexIncludedMismatch(object? index1, object? entityType1, object? index2, object? entityType2, object? table, object? indexName, object? includedColumns1, object? includedColumns2)
    Parameters
    Type Name Description
    object? index1
    object? entityType1
    object? index2
    object? entityType2
    object? table
    object? indexName
    object? includedColumns1
    object? includedColumns2
    Returns
    Type Description
    string
    | Improve this Doc View Source

    HeterogeneousTypesInNewArray(object?, object?)

    Heterogeneous store types detected when making new array ({type1}, {type2}).

    Declaration
    public static string HeterogeneousTypesInNewArray(object? type1, object? type2)
    Parameters
    Type Name Description
    object? type1
    object? type2
    Returns
    Type Description
    string
    | Improve this Doc View Source

    IdentityBadType(object?, object?, object?)

    Identity value generation cannot be used for the property '{property}' on entity type '{entityType}' because the property type is '{propertyType}'. Identity value generation can only be used with signed integer properties.

    Declaration
    public static string IdentityBadType(object? property, object? entityType, object? propertyType)
    Parameters
    Type Name Description
    object? property
    object? entityType
    object? propertyType
    Returns
    Type Description
    string
    | Improve this Doc View Source

    IncludePropertyDuplicated(object?, object?)

    Include property '{entityType}.{property}' cannot be defined multiple times

    Declaration
    public static string IncludePropertyDuplicated(object? entityType, object? property)
    Parameters
    Type Name Description
    object? entityType
    object? property
    Returns
    Type Description
    string
    | Improve this Doc View Source

    IncludePropertyInIndex(object?, object?)

    Include property '{entityType}.{property}' is already included in the index

    Declaration
    public static string IncludePropertyInIndex(object? entityType, object? property)
    Parameters
    Type Name Description
    object? entityType
    object? property
    Returns
    Type Description
    string
    | Improve this Doc View Source

    IncludePropertyNotFound(object?, object?)

    Include property '{entityType}.{property}' not found

    Declaration
    public static string IncludePropertyNotFound(object? entityType, object? property)
    Parameters
    Type Name Description
    object? entityType
    object? property
    Returns
    Type Description
    string
    | Improve this Doc View Source

    InvalidTableToIncludeInScaffolding(object?)

    The specified table '{table}' is not valid. Specify tables using the format '[schema].[table]'.

    Declaration
    public static string InvalidTableToIncludeInScaffolding(object? table)
    Parameters
    Type Name Description
    object? table
    Returns
    Type Description
    string
    | Improve this Doc View Source

    NonKeyValueGeneration(object?, object?)

    The property '{property}' on entity type '{entityType}' is configured to use 'SequenceHiLo' value generator, which is only intended for keys. If this was intentional configure an alternate key on the property, otherwise call 'ValueGeneratedNever' or configure store generation for this property.

    Declaration
    public static string NonKeyValueGeneration(object? property, object? entityType)
    Parameters
    Type Name Description
    object? property
    object? entityType
    Returns
    Type Description
    string
    | Improve this Doc View Source

    SequenceBadType(object?, object?, object?)

    PostgreSQL sequences cannot be used to generate values for the property '{property}' on entity type '{entityType}' because the property type is '{propertyType}'. Sequences can only be used with integer properties.

    Declaration
    public static string SequenceBadType(object? property, object? entityType, object? propertyType)
    Parameters
    Type Name Description
    object? property
    object? entityType
    object? propertyType
    Returns
    Type Description
    string
    | Improve this Doc View Source

    StoredProcedureResultColumnsNotSupported(object?, object?)

    The entity type '{entityType}' is mapped to the stored procedure '{sproc}', which is configured with result columns. PostgreSQL stored procedures do not support result columns; use output parameters instead.

    Declaration
    public static string StoredProcedureResultColumnsNotSupported(object? entityType, object? sproc)
    Parameters
    Type Name Description
    object? entityType
    object? sproc
    Returns
    Type Description
    string
    | Improve this Doc View Source

    StoredProcedureReturnValueNotSupported(object?, object?)

    The entity type '{entityType}' is mapped to the stored procedure '{sproc}', which is configured with result columns. PostgreSQL stored procedures do not support return values; use output parameters instead.

    Declaration
    public static string StoredProcedureReturnValueNotSupported(object? entityType, object? sproc)
    Parameters
    Type Name Description
    object? entityType
    object? sproc
    Returns
    Type Description
    string
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team