Class NpgsqlArrayTypeMapping
Abstract base class for PostgreSQL array mappings (i.e. CLR array and .
Inheritance
object
NpgsqlArrayTypeMapping
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public abstract class NpgsqlArrayTypeMapping : RelationalTypeMapping
Constructors
|
Improve this Doc
View Source
NpgsqlArrayTypeMapping(RelationalTypeMappingParameters, RelationalTypeMapping, bool)
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 NpgsqlArrayTypeMapping(RelationalTypeMappingParameters parameters, RelationalTypeMapping elementMapping, bool isElementNullable)
Parameters
Type |
Name |
Description |
RelationalTypeMappingParameters |
parameters |
|
RelationalTypeMapping |
elementMapping |
|
bool |
isElementNullable |
|
Properties
|
Improve this Doc
View Source
ElementMapping
The relational type mapping used to initialize the array mapping.
Declaration
public virtual RelationalTypeMapping ElementMapping { get; }
Property Value
Type |
Description |
RelationalTypeMapping |
|
|
Improve this Doc
View Source
IsElementNullable
Whether the array's element is nullable. This is required since and ElementMapping do not
contain nullable reference type information.
Declaration
public virtual bool IsElementNullable { get; }
Property Value
|
Improve this Doc
View Source
NpgsqlDbType
The database type used by Npgsql.
Declaration
public virtual NpgsqlDbType? NpgsqlDbType { get; }
Property Value
Type |
Description |
NpgsqlDbType? |
|
Methods
|
Improve this Doc
View Source
Clone(RelationalTypeMappingParameters, RelationalTypeMapping)
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 abstract RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters, RelationalTypeMapping elementMapping)
Parameters
Type |
Name |
Description |
RelationalTypeMappingParameters |
parameters |
|
RelationalTypeMapping |
elementMapping |
|
Returns
Type |
Description |
RelationalTypeMapping |
|
|
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
Clone(ValueConverter?)
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 Clone(ValueConverter? converter)
Parameters
Type |
Name |
Description |
ValueConverter? |
converter |
|
Returns
Type |
Description |
CoreTypeMapping |
|
|
Improve this Doc
View Source
ConfigureParameter(DbParameter)
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 void ConfigureParameter(DbParameter parameter)
Parameters
Type |
Name |
Description |
DbParameter |
parameter |
|
|
Improve this Doc
View Source
FlipArrayListClrType(Type)
Returns a type mapping identical to this one, but over the other CLR array type. That is, convert a CLR array mapping to a List
mapping and vice versa.
Declaration
public abstract NpgsqlArrayTypeMapping FlipArrayListClrType(Type newType)
Parameters
Type |
Name |
Description |
Type |
newType |
|
Returns
|
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
|
Improve this Doc
View Source
MakeNonNullable()
Declaration
public abstract NpgsqlArrayTypeMapping MakeNonNullable()
Returns