Aracılığıyla paylaş


RuntimeEntityType.FindKey(IReadOnlyList<IReadOnlyProperty>) Yöntem

Tanım

Verilen özelliklerde tanımlanan birincil veya alternatif anahtarı alır. Verilen özellikler için hiçbir anahtar tanımlanmadıysa döndürür null .

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As RuntimeKey

Parametreler

properties
IReadOnlyList<IReadOnlyProperty>

Anahtarı oluşturan özellikler.

Döndürülenler

Anahtar veya null tanımlı değilse.

Şunlara uygulanır