Freigeben über


IRelationalTypeMappingSource.FindMapping Methode

Definition

Überlädt

FindMapping(IProperty)

Sucht die Typzuordnung für eine bestimmte IProperty.

FindMapping(MemberInfo)

Sucht die Typzuordnung für eine angegebene MemberInfo , die ein Feld oder eine Eigenschaft eines CLR-Typs darstellt.

FindMapping(String)

Sucht die Typzuordnung für einen angegebenen Datenbanktypnamen.

FindMapping(Type)

Sucht die Typzuordnung für eine bestimmte Type.

FindMapping(Type, IModel)

Sucht die Typzuordnung für eine bestimmte Type, unter Berücksichtigung der Präkonventionskonfiguration in das Konto.

FindMapping(Type, IModel, CoreTypeMapping)

Sucht die Typzuordnung für eine bestimmte Type, unter Berücksichtigung der Präkonventionskonfiguration in das Konto.

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

Sucht die Typzuordnung für eine bestimmte Type und zusätzliche Facetten.

FindMapping(IProperty)

Sucht die Typzuordnung für eine bestimmte IProperty.

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

Parameter

property
IProperty

Die Eigenschaft.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Gilt für:

FindMapping(MemberInfo)

Sucht die Typzuordnung für eine angegebene MemberInfo , die ein Feld oder eine Eigenschaft eines CLR-Typs darstellt.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (System.Reflection.MemberInfo member);
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? FindMapping (System.Reflection.MemberInfo member);
abstract member FindMapping : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (member As MemberInfo) As RelationalTypeMapping

Parameter

member
MemberInfo

Das Feld oder die Eigenschaft.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Hinweise

Hinweis: Rufen Sie diese Methode nur auf, wenn sie nicht IProperty verfügbar ist, andernfalls aufrufen FindMapping(IProperty)

Gilt für:

FindMapping(String)

Sucht die Typzuordnung für einen angegebenen Datenbanktypnamen.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (string storeTypeName);
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? FindMapping (string storeTypeName);
abstract member FindMapping : string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (storeTypeName As String) As RelationalTypeMapping

Parameter

storeTypeName
String

Der Name des Datenbanktyps.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Hinweise

Hinweis: Rufen Sie diese Methode nur auf, wenn sie nicht IProperty verfügbar ist, andernfalls aufrufen FindMapping(IProperty)

Gilt für:

FindMapping(Type)

Sucht die Typzuordnung für eine bestimmte Type.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (Type type);
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? FindMapping (Type type);
abstract member FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (type As Type) As RelationalTypeMapping

Parameter

type
Type

Der CLR-Typ.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Hinweise

Hinweis: Rufen Sie diese Methode nur auf, wenn keine IProperty oder IModel verfügbar ist, andernfalls oder FindMapping(IProperty)FindMapping(Type, IModel, CoreTypeMapping)

Gilt für:

FindMapping(Type, IModel)

Sucht die Typzuordnung für eine bestimmte Type, unter Berücksichtigung der Präkonventionskonfiguration in das Konto.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? FindMapping (Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (type As Type, model As IModel) As RelationalTypeMapping

Parameter

type
Type

Der CLR-Typ.

model
IModel

Das Modell.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Hinweise

Hinweis: Rufen Sie diese Methode nur auf, wenn keine IPropertyvorhanden ist, andernfalls aufrufen FindMapping(IProperty).

Gilt für:

FindMapping(Type, IModel, CoreTypeMapping)

Sucht die Typzuordnung für eine bestimmte Type, unter Berücksichtigung der Präkonventionskonfiguration in das Konto.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? FindMapping (Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? elementMapping = default);
abstract member FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (type As Type, model As IModel, Optional elementMapping As CoreTypeMapping = Nothing) As RelationalTypeMapping

Parameter

type
Type

Der CLR-Typ.

model
IModel

Das Modell.

elementMapping
CoreTypeMapping

Die zu verwendende Elementzuordnung, sofern bekannt.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Hinweise

Hinweis: Rufen Sie diese Methode nur auf, wenn keine IPropertyvorhanden ist, andernfalls aufrufen FindMapping(IProperty).

Gilt für:

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

Sucht die Typzuordnung für eine bestimmte Type und zusätzliche Facetten.

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (Type type, string storeTypeName, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default);
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? FindMapping (Type type, string? storeTypeName, bool keyOrIndex = false, bool? unicode = default, int? size = default, bool? rowVersion = default, bool? fixedLength = default, int? precision = default, int? scale = default);
abstract member FindMapping : Type * string * bool * Nullable<bool> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (type As Type, storeTypeName As String, Optional keyOrIndex As Boolean = false, Optional unicode As Nullable(Of Boolean) = Nothing, Optional size As Nullable(Of Integer) = Nothing, Optional rowVersion As Nullable(Of Boolean) = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing) As RelationalTypeMapping

Parameter

type
Type

Der CLR-Typ.

storeTypeName
String

Der Name des Datenbanktyps.

keyOrIndex
Boolean

Wenn true, wird möglicherweise eine spezielle Zuordnung für einen Schlüssel oder Index zurückgegeben.

unicode
Nullable<Boolean>

Geben Sie true für die Unicode-Zuordnung, false für die Ansi-Zuordnung oder null für die Standardzuordnung an.

size
Nullable<Int32>

Gibt eine Größe für die Zuordnung oder null als Standard an.

rowVersion
Nullable<Boolean>

Gibt eine Zeilenversion oder null als Standardversion an.

fixedLength
Nullable<Boolean>

Gibt eine Zuordnung mit fester Länge oder null als Standard an.

precision
Nullable<Int32>

Gibt eine Genauigkeit für die Zuordnung oder null für die Standardeinstellung an.

scale
Nullable<Int32>

Gibt eine Skalierung für die Zuordnung oder null als Standard an.

Gibt zurück

Die Typzuordnung, oder null , wenn keine gefunden wurde.

Hinweise

Hinweis: Rufen Sie diese Methode nur auf, wenn sie nicht IProperty verfügbar ist, andernfalls aufrufen FindMapping(IProperty)

Gilt für: