Sprache

MigrationsSqlGenerator.FindProperty(IModel, String, String, String) Methode

Definition

Achtung

Use model?.GetRelationalModel().FindTable().FindColumn()

Sucht einige IProperty , die der angegebenen Spalte zugeordnet sind.

Wenn mehrere Eigenschaften derselben Spalte zugeordnet sind, wird die zurückgegebene Eigenschaft beliebig ausgewählt. Der Modell validator stellt sicher, dass alle Eigenschaften, die einer bestimmten Spalte zugeordnet sind, über eine konsistente Konfiguration verfügen.

protected virtual Microsoft.EntityFrameworkCore.Metadata.IProperty FindProperty(Microsoft.EntityFrameworkCore.Metadata.IModel model, string schema, string tableName, string columnName);
[System.Obsolete("Use model?.GetRelationalModel().FindTable().FindColumn()")]
protected virtual Microsoft.EntityFrameworkCore.Metadata.IProperty FindProperty(Microsoft.EntityFrameworkCore.Metadata.IModel model, string schema, string tableName, string columnName);
[System.Obsolete("Use model?.GetRelationalModel().FindTable().FindColumn()")]
protected virtual Microsoft.EntityFrameworkCore.Metadata.IProperty? FindProperty(Microsoft.EntityFrameworkCore.Metadata.IModel? model, string? schema, string tableName, string columnName);
abstract member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IModel * string * string * string -> Microsoft.EntityFrameworkCore.Metadata.IProperty
override this.FindProperty : Microsoft.EntityFrameworkCore.Metadata.IModel * string * string * string -> Microsoft.EntityFrameworkCore.Metadata.IProperty
[<System.Obsolete("Use model?.GetRelationalModel().FindTable().FindColumn()")>]
abstract member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IModel * string * string * string -> Microsoft.EntityFrameworkCore.Metadata.IProperty
override this.FindProperty : Microsoft.EntityFrameworkCore.Metadata.IModel * string * string * string -> Microsoft.EntityFrameworkCore.Metadata.IProperty
Protected Overridable Function FindProperty (model As IModel, schema As String, tableName As String, columnName As String) As IProperty

Parameter

model
IModel

Das Zielmodell, das sein null kann, wenn die Vorgänge ohne Modell vorhanden sind.

schema
String

Das Schema, das die Tabelle enthält oder null das Standardschema verwenden soll.

tableName
String

Der Name der Tabelle, die die Spalte enthält.

columnName
String

Der Spaltenname.

Gibt zurück

Die Eigenschaft wurde gefunden, oder null wenn keine Eigenschaft der angegebenen Spalte zugeordnet ist.

Attribute

Gilt für: