Share via


RelationalTypeMappingInfo Struct

Definition

Describes metadata needed to decide on a relational type mapping for a property, type, or provider-specific relational type name.

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

Remarks

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

Constructors

RelationalTypeMappingInfo(IElementType, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(IProperty)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(IReadOnlyList<IProperty>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(IReadOnlyList<IProperty>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(MemberInfo)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(MemberInfo, RelationalTypeMapping, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(MemberInfo, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(RelationalTypeMappingInfo, ValueConverterInfo)

Creates a new instance of RelationalTypeMappingInfo with the given ValueConverterInfo.

RelationalTypeMappingInfo(String)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(Type)

Creates a new instance of RelationalTypeMappingInfo.

RelationalTypeMappingInfo(Type, RelationalTypeMapping, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<DbType>)

Creates a new instance of TypeMappingInfo.

RelationalTypeMappingInfo(Type, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

RelationalTypeMappingInfo(Type, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of TypeMappingInfo.

Properties

ClrType

The CLR type in the model.

CoreTypeMappingInfo

The core type mapping info.

DbType

The DbType of the mapping.

ElementTypeMapping

The element type of the mapping, if any.

IsFixedLength

Whether or not the mapped data type is fixed length.

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.

StoreTypeName

The provider-specific relational type name for which mapping is needed.

StoreTypeNameBase

The provider-specific relational type name, with any facets removed.

StoreTypeNameSizeIsMax

True if the store type name ends in "(max)".

Methods

Equals(Object)

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

Equals(RelationalTypeMappingInfo)

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

GetHashCode()

Returns a hash code for this object.

ToString()
WithConverter(ValueConverterInfo)

Returns a new RelationalTypeMappingInfo with the given converter applied.

Operators

Equality(RelationalTypeMappingInfo, RelationalTypeMappingInfo)
Inequality(RelationalTypeMappingInfo, RelationalTypeMappingInfo)

Applies to