Class NpgsqlArrayArrayTypeMapping
Maps PostgreSQL arrays to .NET arrays. Only single-dimensional arrays are supported.
Inherited Members
Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class NpgsqlArrayArrayTypeMapping : NpgsqlArrayTypeMapping
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html
Constructors
| Improve this Doc View SourceNpgsqlArrayArrayTypeMapping(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 NpgsqlArrayArrayTypeMapping(RelationalTypeMappingParameters parameters, RelationalTypeMapping elementMapping, bool? isElementNullable = null)
Parameters
Type | Name | Description |
---|---|---|
RelationalTypeMappingParameters | parameters | |
RelationalTypeMapping | elementMapping | |
bool? | isElementNullable |
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html
NpgsqlArrayArrayTypeMapping(string, RelationalTypeMapping)
Creates the default array mapping (i.e. for the single-dimensional CLR array type)
Declaration
public NpgsqlArrayArrayTypeMapping(string storeType, RelationalTypeMapping elementMapping)
Parameters
Type | Name | Description |
---|---|---|
string | storeType | The database type to map. |
RelationalTypeMapping | elementMapping | The element type mapping. |
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html
NpgsqlArrayArrayTypeMapping(Type, RelationalTypeMapping)
Creates the default array mapping (i.e. for the single-dimensional CLR array type)
Declaration
public NpgsqlArrayArrayTypeMapping(Type arrayType, RelationalTypeMapping elementMapping)
Parameters
Type | Name | Description |
---|---|---|
Type | arrayType | The array type to map. |
RelationalTypeMapping | elementMapping | The element type mapping. |
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html
Methods
| Improve this Doc View SourceClone(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 override RelationalTypeMapping Clone(RelationalTypeMappingParameters parameters, RelationalTypeMapping elementMapping)
Parameters
Type | Name | Description |
---|---|---|
RelationalTypeMappingParameters | parameters | |
RelationalTypeMapping | elementMapping |
Returns
Type | Description |
---|---|
RelationalTypeMapping |
Overrides
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html
FlipArrayListClrType(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 override NpgsqlArrayTypeMapping FlipArrayListClrType(Type newType)
Parameters
Type | Name | Description |
---|---|---|
Type | newType |
Returns
Type | Description |
---|---|
NpgsqlArrayTypeMapping |
Overrides
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html
MakeNonNullable()
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 NpgsqlArrayTypeMapping MakeNonNullable()
Returns
Type | Description |
---|---|
NpgsqlArrayTypeMapping |
Overrides
Remarks
Note that mapping PostgreSQL arrays to .NET
See: https://www.postgresql.org/docs/current/static/arrays.html