Class NpgsqlTypeMappingSource
- Namespace
- Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
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.
public class NpgsqlTypeMappingSource : RelationalTypeMappingSource, IRelationalTypeMappingSource, ITypeMappingSource
- Inheritance
-
NpgsqlTypeMappingSource
- Implements
- Inherited Members
Constructors
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.
public NpgsqlTypeMappingSource(TypeMappingSourceDependencies dependencies, RelationalTypeMappingSourceDependencies relationalDependencies, ISqlGenerationHelper sqlGenerationHelper, INpgsqlSingletonOptions options)
Parameters
dependencies
TypeMappingSourceDependenciesrelationalDependencies
RelationalTypeMappingSourceDependenciessqlGenerationHelper
ISqlGenerationHelperoptions
INpgsqlSingletonOptions
Fields
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.
public readonly NpgsqlEStringTypeMapping EStringTypeMapping
Field Value
Properties
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.
protected virtual ConcurrentDictionary<Type, RelationalTypeMapping> ClrTypeMappings { get; }
Property Value
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.
protected virtual ConcurrentDictionary<string, RelationalTypeMapping[]> StoreTypeMappings { get; }
Property Value
Methods
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.
protected virtual RelationalTypeMapping? FindBaseMapping(in RelationalTypeMappingInfo mappingInfo)
Parameters
mappingInfo
RelationalTypeMappingInfo
Returns
FindCollectionMapping(RelationalTypeMappingInfo, Type, Type?, CoreTypeMapping?)
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.
protected override RelationalTypeMapping? FindCollectionMapping(RelationalTypeMappingInfo info, Type modelType, Type? providerType, CoreTypeMapping? elementMapping)
Parameters
info
RelationalTypeMappingInfomodelType
TypeproviderType
TypeelementMapping
CoreTypeMapping
Returns
FindContainerMapping(Type, RelationalTypeMapping, IModel)
Finds the mapping for a container given its CLR type and its containee's type mapping; this is used when inferring type mappings for arrays and ranges/multiranges.
public virtual RelationalTypeMapping? FindContainerMapping(Type containerClrType, RelationalTypeMapping containeeTypeMapping, IModel model)
Parameters
containerClrType
TypecontaineeTypeMapping
RelationalTypeMappingmodel
IModel
Returns
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.
protected override RelationalTypeMapping? FindMapping(in RelationalTypeMappingInfo mappingInfo)
Parameters
mappingInfo
RelationalTypeMappingInfo
Returns
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.
protected virtual RelationalTypeMapping? FindRowValueMapping(in RelationalTypeMappingInfo mappingInfo)
Parameters
mappingInfo
RelationalTypeMappingInfo
Returns
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.
protected virtual RelationalTypeMapping? FindUserRangeMapping(in RelationalTypeMappingInfo mappingInfo)
Parameters
mappingInfo
RelationalTypeMappingInfo
Returns
LoadUserDefinedTypeMappings(ISqlGenerationHelper, NpgsqlDataSource?)
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.
public virtual void LoadUserDefinedTypeMappings(ISqlGenerationHelper sqlGenerationHelper, NpgsqlDataSource? dataSource)
Parameters
sqlGenerationHelper
ISqlGenerationHelperdataSource
NpgsqlDataSource
ParseStoreTypeName(string?, ref bool?, ref int?, ref int?, ref 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.
protected override string? ParseStoreTypeName(string? storeTypeName, ref bool? unicode, ref int? size, ref int? precision, ref int? scale)
Parameters
Returns
SetupEnumMappings(ISqlGenerationHelper, NpgsqlDataSource?)
Gets all global enum mappings from the ADO.NET layer and creates mappings for them
protected virtual void SetupEnumMappings(ISqlGenerationHelper sqlGenerationHelper, NpgsqlDataSource? dataSource)
Parameters
sqlGenerationHelper
ISqlGenerationHelperdataSource
NpgsqlDataSource