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)
Register a IComplexTypeConverter
void Register(IComplexTypeConverter converter)
Parameters
converterIComplexTypeConverterThe 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
convertersAssemblyAssemblyThe 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
converterTypeTypeThe 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
complexPropertyIPropertyBaseThe IComplexProperty to be converted
converterIComplexTypeConverterThe 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
complexPropertyTypestringThe CLR Type of the IComplexProperty to be converted
converterIComplexTypeConverterThe 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
complexPropertyTypeTypeThe CLR Type of the IComplexProperty to be converted
converterIComplexTypeConverterThe IComplexTypeConverter associated to
complexPropertyType
Returns
- bool
true if the IComplexTypeConverter was found otherwise false