Search Results for

    Show / Hide Table of Contents

    Class NpgsqlJsonTypeMapping

    A mapping for an arbitrary user POCO to PostgreSQL jsonb or json. For mapping to .NET string, see NpgsqlStringTypeMapping.

    Inheritance
    object
    NpgsqlTypeMapping
    NpgsqlJsonTypeMapping
    Implements
    INpgsqlTypeMapping
    Inherited Members
    NpgsqlTypeMapping.NpgsqlDbType
    NpgsqlTypeMapping.ConfigureParameter(DbParameter)
    NpgsqlTypeMapping.GenerateEmbeddedSqlLiteral(object?)
    NpgsqlTypeMapping.GenerateEmbeddedProviderValueSqlLiteral(object?)
    NpgsqlTypeMapping.GenerateEmbeddedNonNullSqlLiteral(object)
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class NpgsqlJsonTypeMapping : NpgsqlTypeMapping, INpgsqlTypeMapping

    Constructors

    | Improve this Doc View Source

    NpgsqlJsonTypeMapping(RelationalTypeMappingParameters, NpgsqlDbType)

    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.

    Declaration
    protected NpgsqlJsonTypeMapping(RelationalTypeMappingParameters parameters, NpgsqlDbType npgsqlDbType)
    Parameters
    Type Name Description
    RelationalTypeMappingParameters parameters
    NpgsqlDbType npgsqlDbType
    | Improve this Doc View Source

    NpgsqlJsonTypeMapping(string, Type)

    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.

    Declaration
    public NpgsqlJsonTypeMapping(string storeType, Type clrType)
    Parameters
    Type Name Description
    string storeType
    Type clrType

    Properties

    | Improve this Doc View Source

    IsJsonb

    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.

    Declaration
    public virtual bool IsJsonb { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    Clone(RelationalTypeMappingParameters)

    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.

    Declaration
    protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters)
    Parameters
    Type Name Description
    RelationalTypeMappingParameters parameters
    Returns
    Type Description
    RelationalTypeMapping
    | Improve this Doc View Source

    EscapeSqlLiteral(string)

    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.

    Declaration
    protected virtual string EscapeSqlLiteral(string literal)
    Parameters
    Type Name Description
    string literal
    Returns
    Type Description
    string
    | Improve this Doc View Source

    GenerateCodeLiteral(object)

    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.

    Declaration
    public override Expression GenerateCodeLiteral(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    Expression
    | Improve this Doc View Source

    GenerateNonNullSqlLiteral(object)

    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.

    Declaration
    protected override string GenerateNonNullSqlLiteral(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    string

    Implements

    INpgsqlTypeMapping
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team