IMutableEntityType.SetPrimaryKey Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| 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. |
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
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.