TypeMappingInfo Struct

Definition

Describes metadata needed to decide on a type mapping for a property or type.

public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
type TypeMappingInfo = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type TypeMappingInfo = struct
Public Structure TypeMappingInfo
Implements IEquatable(Of TypeMappingInfo)
Inheritance
TypeMappingInfo
Attributes
Implements

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

TypeMappingInfo(IElementType, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IProperty)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IReadOnlyList<IProperty>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(IReadOnlyList<IProperty>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(MemberInfo)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(MemberInfo, CoreTypeMapping, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(MemberInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(Type)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(Type, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(Type, CoreTypeMapping, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

TypeMappingInfo(TypeMappingInfo, ValueConverterInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo with the given ValueConverterInfo.

Properties

ClrType

The CLR type in the model. May be null if type information is conveyed via other means (e.g. the store name in a relational type mapping info)

ElementTypeMapping

The element type mapping of the mapping, if any.

IsKeyOrIndex

Indicates whether or not the mapping is part of a key or index.

IsRowVersion

Indicates whether or not the mapping will be used for a row version, or null if not defined.

IsUnicode

Indicates whether or not the mapping supports Unicode, or null if not defined.

JsonValueReaderWriter

The JSON reader/writer, if one has been provided, or null otherwise.

Precision

The suggested precision of the mapped data type.

Scale

The suggested scale of the mapped data type.

Size

Indicates the store-size to use for the mapping, or null if none.

Methods

Equals(Object)

Compares this TypeMappingInfo to another to check if they represent the same mapping.

Equals(TypeMappingInfo)

Compares this TypeMappingInfo to another to check if they represent the same mapping.

GetHashCode()

Returns a hash code for this object.

ToString()
WithConverter(ValueConverterInfo)

Returns a new TypeMappingInfo with the given converter applied.

Operators

Equality(TypeMappingInfo, TypeMappingInfo)
Inequality(TypeMappingInfo, TypeMappingInfo)

Applies to