TypeMappingSourceBase.TryFindJsonCollectionMapping Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework