RelationalTypeMapper.FindMapping Method

Definition

Overloads

FindMapping(IProperty)

Gets the relational database type for the given property. Returns null if no mapping is found.

FindMapping(String)

Gets the mapping that represents the given database type. Returns null if no mapping is found.

FindMapping(Type)

Gets the relational database type for a given .NET type. Returns null if no mapping is found.

FindMapping(IProperty)

Gets the relational database type for the given property. Returns null if no mapping is found.

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member FindMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
override this.FindMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function FindMapping (property As IProperty) As RelationalTypeMapping

Parameters

property
IProperty

The property to get the mapping for.

Returns

The type mapping to be used.

Implements

Applies to

FindMapping(String)

Gets the mapping that represents the given database type. Returns null if no mapping is found.

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (string storeType);
abstract member FindMapping : string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
override this.FindMapping : string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function FindMapping (storeType As String) As RelationalTypeMapping

Parameters

storeType
String

The type to get the mapping for.

Returns

The type mapping to be used.

Implements

Applies to

FindMapping(Type)

Gets the relational database type for a given .NET type. Returns null if no mapping is found.

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (Type clrType);
abstract member FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
override this.FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function FindMapping (clrType As Type) As RelationalTypeMapping

Parameters

clrType
Type

The type to get the mapping for.

Returns

The type mapping to be used.

Implements

Applies to