Aracılığıyla paylaş


IMutableEntityType.AddKey Yöntem

Tanım

Aşırı Yüklemeler

AddKey(IMutableProperty)

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

AddKey(IReadOnlyList<IMutableProperty>)

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

AddKey(IMutableProperty)

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
override this.AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Overridable Function AddKey (property As IMutableProperty) As IMutableKey

Parametreler

property
IMutableProperty

Alternatif anahtar olarak kullanılacak özellik.

Döndürülenler

Yeni oluşturulan anahtar.

Şunlara uygulanır

AddKey(IReadOnlyList<IMutableProperty>)

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function AddKey (properties As IReadOnlyList(Of IMutableProperty)) As IMutableKey

Parametreler

properties
IReadOnlyList<IMutableProperty>

Alternatif anahtarı oluşturan özellikler.

Döndürülenler

Yeni oluşturulan anahtar.

Şunlara uygulanır