TypeMappingInfo Struct
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.
Describes metadata needed to decide on a type mapping for a property or type.
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type TypeMappingInfo = struct
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
Properties
| Name | Description |
|---|---|
| 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. |
| IsKey |
Indicates whether the mapping is part of a key or foreign key. |
| IsKeyOrIndex |
Indicates whether the mapping is part of a key, foreign key, or index. |
| IsRowVersion |
Indicates whether the mapping will be used for a row version, or |
| IsUnicode |
Indicates whether the mapping supports Unicode, or |
| JsonValueReaderWriter |
The JSON reader/writer, if one has been provided, or |
| 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 |
Methods
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Equality(TypeMappingInfo, TypeMappingInfo) | |
| Inequality(TypeMappingInfo, TypeMappingInfo) | |