Aracılığıyla paylaş


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Yöntem

Tanım

Bu varlık türüne yeni bir alternatif anahtar ekler.

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

Parametreler

properties
IReadOnlyList<RuntimeProperty>

Alternatif anahtarı oluşturan özellikler.

Döndürülenler

Yeni oluşturulan anahtar.

Şunlara uygulanır