Table of Contents

Interface IComplexTypeConverterFactory

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

The interface shall be implemented and used from any external manager which neeeds to interact with serialization sub-system to managed IComplexProperty

public interface IComplexTypeConverterFactory

Methods

Register(IComplexTypeConverter)

void Register(IComplexTypeConverter converter)

Parameters

converter IComplexTypeConverter

The IComplexTypeConverter with all Type it manages (see SupportedClrTypes)

Register(Assembly)

Allocate and register all Type in an Assembly managing an instance of IComplexTypeConverter

void Register(Assembly convertersAssembly)

Parameters

convertersAssembly Assembly

The Assembly containg the Type will be used from Register(Type)

Register(Type)

Allocate and register a Type managing an instance of IComplexTypeConverter

void Register(Type converterType)

Parameters

converterType Type

The Type containing the IComplexTypeConverter will be used from Register(IComplexTypeConverter)

TryGet(IPropertyBase?, out IComplexTypeConverter)

The method is used from IValueContainer<T> to retrieve IComplexTypeConverter associated to complexProperty

bool TryGet(IPropertyBase? complexProperty, out IComplexTypeConverter converter)

Parameters

complexProperty IPropertyBase

The IComplexProperty to be converted

converter IComplexTypeConverter

The IComplexTypeConverter associated to complexProperty

Returns

bool

true if the IComplexTypeConverter was found otherwise false

TryGet(string, out IComplexTypeConverter)

The method is used from constructor of IValueContainer<T> to retrieve IComplexTypeConverter associated to complexPropertyType

bool TryGet(string complexPropertyType, out IComplexTypeConverter converter)

Parameters

complexPropertyType string

The CLR Type of the IComplexProperty to be converted

converter IComplexTypeConverter

The IComplexTypeConverter associated to complexPropertyType

Returns

bool

true if the IComplexTypeConverter was found otherwise false

TryGet(Type, out IComplexTypeConverter)

The method is used from constructor of IValueContainer<T> to retrieve IComplexTypeConverter associated to complexPropertyType

bool TryGet(Type complexPropertyType, out IComplexTypeConverter converter)

Parameters

complexPropertyType Type

The CLR Type of the IComplexProperty to be converted

converter IComplexTypeConverter

The IComplexTypeConverter associated to complexPropertyType

Returns

bool

true if the IComplexTypeConverter was found otherwise false