Table of Contents

Class JsonMacaddrReaderWriter

Namespace
Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json
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 sealed class JsonMacaddrReaderWriter : JsonValueReaderWriter<PhysicalAddress>
Inheritance
JsonMacaddrReaderWriter
Inherited Members

Properties

ConstructorExpression

The expression representing construction of this object.

public override Expression ConstructorExpression { get; }

Property Value

Expression

Instance

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 static JsonMacaddrReaderWriter Instance { get; }

Property Value

JsonMacaddrReaderWriter

Methods

FromJsonTyped(ref Utf8JsonReaderManager, object?)

Reads the value from JSON.

public override PhysicalAddress FromJsonTyped(ref Utf8JsonReaderManager manager, object? existingObject = null)

Parameters

manager Utf8JsonReaderManager

The Utf8JsonReaderManager for the JSON being read.

existingObject object

Can be used to update an existing object, rather than create a new one.

Returns

PhysicalAddress

The read value.

Remarks

The CurrentReader is at the node that contains the value to be read. The value should be read as appropriate from the JSON, and then further converted as necessary.

Nulls are handled externally to this reader. That is, this method will never be called if the JSON value is "null".

In most cases, the value is represented in the JSON document as a simple property value--e.g. a number, boolean, or string. However, it could be an array or sub-document. In this case, the Utf8JsonReaderManager should be used to parse the JSON as appropriate.

ToJsonTyped(Utf8JsonWriter, PhysicalAddress)

Writes the value to JSON.

public override void ToJsonTyped(Utf8JsonWriter writer, PhysicalAddress value)

Parameters

writer Utf8JsonWriter

The Utf8JsonWriter into which the value should be written.

value PhysicalAddress

The value to write.