Table of Contents

Class NativeTypeMapper

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

An helper class used to manage native and special types in serialization

public static class NativeTypeMapper
Inheritance
NativeTypeMapper
Inherited Members

Methods

GetValue(Type?)

Returns a Tuple<T1, T2> of NativeTypeMapper.ManagedTypes with a bool indicating if the types supports Nullable

public static (NativeTypeMapper.ManagedTypes, bool) GetValue(Type? type)

Parameters

type Type

The Type to check

Returns

(NativeTypeMapper.ManagedTypes, bool)

A Tuple<T1, T2> of NativeTypeMapper.ManagedTypes with a bool if type is mapped otherwise returns Undefined and false for Nullable support

GetValue((ManagedTypes, bool))

Returns a Type mapped from the type in input

public static Type GetValue((NativeTypeMapper.ManagedTypes, bool) type)

Parameters

type (NativeTypeMapper.ManagedTypes, bool)

Tuple<T1, T2> of NativeTypeMapper.ManagedTypes with a bool indicating if the type needs support for Nullable

Returns

Type

A Type associated to the type in input, otherwise null