Class NpgsqlJsonTypeMapping
A mapping for an arbitrary user POCO to PostgreSQL jsonb or json.
For mapping to .NET string, see NpgsqlStringTypeMapping.
Inheritance
object
NpgsqlJsonTypeMapping
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
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
|
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
Implements