TypeMappingSourceBase.TryFindJsonCollectionMapping Method

Definition

Attempts to find a JSON-based type mapping for a collection of primitive types.

protected virtual bool TryFindJsonCollectionMapping (Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo mappingInfo, Type modelClrType, Type? providerClrType, ref Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? elementMapping, out Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? elementComparer, out Microsoft.EntityFrameworkCore.Storage.Json.JsonValueReaderWriter? collectionReaderWriter);
abstract member TryFindJsonCollectionMapping : Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo * Type * Type * CoreTypeMapping * ValueComparer * JsonValueReaderWriter -> bool
override this.TryFindJsonCollectionMapping : Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo * Type * Type * CoreTypeMapping * ValueComparer * JsonValueReaderWriter -> bool
Protected Overridable Function TryFindJsonCollectionMapping (mappingInfo As TypeMappingInfo, modelClrType As Type, providerClrType As Type, ByRef elementMapping As CoreTypeMapping, ByRef elementComparer As ValueComparer, ByRef collectionReaderWriter As JsonValueReaderWriter) As Boolean

Parameters

mappingInfo
TypeMappingInfo

The mapping info being used.

modelClrType
Type

The model CLR type.

providerClrType
Type

The provider CLR type.

elementMapping
CoreTypeMapping

The type mapping for elements of the collection.

elementComparer
ValueComparer

The element comparer.

collectionReaderWriter
JsonValueReaderWriter

The reader/writer for the collection.

Returns

true if a collection mapping was found; false otherwise.

Applies to