Aracılığıyla paylaş


IMutableEntityType.SetPrimaryKey Yöntem

Tanım

Aşırı Yüklemeler

SetPrimaryKey(IMutableProperty)

Bu varlık türü için birincil anahtarı ayarlar.

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

Bu varlık türü için birincil anahtarı ayarlar.

SetPrimaryKey(IMutableProperty)

Bu varlık türü için birincil anahtarı ayarlar.

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

Parametreler

property
IMutableProperty

Birincil anahtar özelliği.

Döndürülenler

Yeni oluşturulan anahtar.

Şunlara uygulanır

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

Bu varlık türü için birincil anahtarı ayarlar.

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

Parametreler

properties
IReadOnlyList<IMutableProperty>

Birincil anahtarı oluşturan özellikler.

Döndürülenler

Yeni oluşturulan anahtar.

Şunlara uygulanır