Table of Contents

Class AvroValueContainer<TKey>

Namespace
MASES.EntityFrameworkCore.KNet.Serialization.Avro.Storage
Assembly
MASES.EntityFrameworkCore.KNet.Serialization.Avro.dll

The default ValueContainer used from KEFCore

public class AvroValueContainer<TKey> : AvroValueContainer, ISpecificRecord, IValueContainer<TKey> where TKey : notnull

Type Parameters

TKey

It is the key Type passed from Entity Framework associated to the Entity data will be stored in the AvroValueContainer<TKey>

Inheritance
AvroValueContainer<TKey>
Implements
ISpecificRecord
Inherited Members

Constructors

AvroValueContainer()

Initialize a new instance of AvroValueContainer<TKey>

public AvroValueContainer()

Remarks

It is mainly used from the JSON serializer

AvroValueContainer(IEntityType, object[])

Initialize a new instance of AvroValueContainer<TKey>

public AvroValueContainer(IEntityType tName, object[] rData)

Parameters

tName IEntityType

The IEntityType requesting the AvroValueContainer<TKey> for rData

rData object[]

The data, built from EFCore, to be stored in the AvroValueContainer<TKey>

Remarks

This constructor is mandatory and it is used from KEFCore to request a AvroValueContainer<TKey>

Methods

GetData(IEntityType, ref object[])

Returns back the raw data associated to the Entity

public void GetData(IEntityType tName, ref object[] array)

Parameters

tName IEntityType

The requesting IEntityType to get the data back, can null if not available

array object[]

The array of object to be filled in with the data stored in the ValueContainer

GetProperties()

Returns back a dictionary of properties (PropertyIndex, PropertyName) associated to the Entity

public IReadOnlyDictionary<int, string> GetProperties()

Returns

IReadOnlyDictionary<int, string>

A dictionary of properties (PropertyIndex, PropertyName) filled in with the data stored in the ValueContainer