Bagikan melalui


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Metode

Definisi

Menambahkan kunci alternatif baru ke jenis entitas ini.

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

Parameter

properties
IReadOnlyList<RuntimeProperty>

Properti yang membentuk kunci alternatif.

Mengembalikan

Kunci yang baru dibuat.

Berlaku untuk