Search Results for

    Show / Hide Table of Contents

    Class NpgsqlTypeMappingSource

    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
    NpgsqlTypeMappingSource
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class NpgsqlTypeMappingSource : RelationalTypeMappingSource

    Constructors

    | Improve this Doc View Source

    NpgsqlTypeMappingSource(TypeMappingSourceDependencies, RelationalTypeMappingSourceDependencies, ISqlGenerationHelper, INpgsqlSingletonOptions)

    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 NpgsqlTypeMappingSource(TypeMappingSourceDependencies dependencies, RelationalTypeMappingSourceDependencies relationalDependencies, ISqlGenerationHelper sqlGenerationHelper, INpgsqlSingletonOptions npgsqlSingletonOptions)
    Parameters
    Type Name Description
    TypeMappingSourceDependencies dependencies
    RelationalTypeMappingSourceDependencies relationalDependencies
    ISqlGenerationHelper sqlGenerationHelper
    INpgsqlSingletonOptions npgsqlSingletonOptions

    Fields

    | Improve this Doc View Source

    EStringTypeMapping

    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 readonly StringTypeMapping EStringTypeMapping
    Field Value
    Type Description
    StringTypeMapping

    Properties

    | Improve this Doc View Source

    ClrTypeMappings

    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 ConcurrentDictionary<Type, RelationalTypeMapping> ClrTypeMappings { get; }
    Property Value
    Type Description
    ConcurrentDictionary<, ><Type, RelationalTypeMapping>
    | Improve this Doc View Source

    StoreTypeMappings

    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 ConcurrentDictionary<string, RelationalTypeMapping[]> StoreTypeMappings { get; }
    Property Value
    Type Description
    ConcurrentDictionary<, ><string, RelationalTypeMapping[]>

    Methods

    | Improve this Doc View Source

    FindArrayMapping(in RelationalTypeMappingInfo)

    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 RelationalTypeMapping? FindArrayMapping(in RelationalTypeMappingInfo mappingInfo)
    Parameters
    Type Name Description
    RelationalTypeMappingInfo mappingInfo
    Returns
    Type Description
    RelationalTypeMapping?
    | Improve this Doc View Source

    FindBaseMapping(in RelationalTypeMappingInfo)

    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 RelationalTypeMapping? FindBaseMapping(in RelationalTypeMappingInfo mappingInfo)
    Parameters
    Type Name Description
    RelationalTypeMappingInfo mappingInfo
    Returns
    Type Description
    RelationalTypeMapping?
    | Improve this Doc View Source

    FindContainerMapping(Type, RelationalTypeMapping)

    Finds the mapping for a container given its CLR type and its containee's type mapping; this is currently used to infer type mappings for ranges and multiranges from their values.

    Declaration
    public virtual RelationalTypeMapping? FindContainerMapping(Type containerClrType, RelationalTypeMapping containeeTypeMapping)
    Parameters
    Type Name Description
    Type containerClrType
    RelationalTypeMapping containeeTypeMapping
    Returns
    Type Description
    RelationalTypeMapping?
    | Improve this Doc View Source

    FindMapping(IProperty)

    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 CoreTypeMapping? FindMapping(IProperty property)
    Parameters
    Type Name Description
    IProperty property
    Returns
    Type Description
    CoreTypeMapping?
    | Improve this Doc View Source

    FindMapping(in RelationalTypeMappingInfo)

    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? FindMapping(in RelationalTypeMappingInfo mappingInfo)
    Parameters
    Type Name Description
    RelationalTypeMappingInfo mappingInfo
    Returns
    Type Description
    RelationalTypeMapping?
    | Improve this Doc View Source

    FindRowValueMapping(in RelationalTypeMappingInfo)

    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 RelationalTypeMapping? FindRowValueMapping(in RelationalTypeMappingInfo mappingInfo)
    Parameters
    Type Name Description
    RelationalTypeMappingInfo mappingInfo
    Returns
    Type Description
    RelationalTypeMapping?
    | Improve this Doc View Source

    FindUserRangeMapping(in RelationalTypeMappingInfo)

    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 RelationalTypeMapping? FindUserRangeMapping(in RelationalTypeMappingInfo mappingInfo)
    Parameters
    Type Name Description
    RelationalTypeMappingInfo mappingInfo
    Returns
    Type Description
    RelationalTypeMapping?
    | Improve this Doc View Source

    LoadUserDefinedTypeMappings(ISqlGenerationHelper)

    To be used in case user-defined mappings are added late, after this TypeMappingSource has already been initialized. This is basically only for test usage.

    Declaration
    public virtual void LoadUserDefinedTypeMappings(ISqlGenerationHelper sqlGenerationHelper)
    Parameters
    Type Name Description
    ISqlGenerationHelper sqlGenerationHelper
    | Improve this Doc View Source

    ParseStoreTypeName(string?, out bool?, out int?, out int?, out int?)

    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? ParseStoreTypeName(string? storeTypeName, out bool? unicode, out int? size, out int? precision, out int? scale)
    Parameters
    Type Name Description
    string? storeTypeName
    bool? unicode
    int? size
    int? precision
    int? scale
    Returns
    Type Description
    string?
    | Improve this Doc View Source

    SetupEnumMappings(ISqlGenerationHelper)

    Gets all global enum mappings from the ADO.NET layer and creates mappings for them

    Declaration
    protected virtual void SetupEnumMappings(ISqlGenerationHelper sqlGenerationHelper)
    Parameters
    Type Name Description
    ISqlGenerationHelper sqlGenerationHelper
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team