MutableEntityTypeExtensions.GetOrAddIndex Yöntem

Tanım

Aşırı Yüklemeler

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Belirtilen özellikte tanımlanan dizini alır veya henüz tanımlanmamışsa yeni bir dizin oluşturur.

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Verilen özellikte tanımlanan dizini alır veya zaten tanımlanmamışsa yeni bir tane oluşturur.

GetOrAddIndex(IMutableEntityType, IMutableProperty)

Belirtilen özellikte tanımlanan dizini alır veya henüz tanımlanmamışsa yeni bir dizin oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex GetOrAddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member GetOrAddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function GetOrAddIndex (entityType As IMutableEntityType, property As IMutableProperty) As IMutableIndex

Parametreler

entityType
IMutableEntityType

Dizini almak veya eklemek için varlık türü.

property
IMutableProperty

Dizine dizinini oluşturma özelliği.

Döndürülenler

IMutableIndex

Mevcut veya yeni oluşturulan dizin.

Şunlara uygulanır

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

Verilen özellikte tanımlanan dizini alır veya zaten tanımlanmamışsa yeni bir tane oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex GetOrAddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
static member GetOrAddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function GetOrAddIndex (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex

Parametreler

entityType
IMutableEntityType

Dizini almak veya eklemek için varlık türü.

properties
IReadOnlyList<IMutableProperty>

Dizine atılı özellikler.

Döndürülenler

IMutableIndex

Var olan veya yeni oluşturulan dizin.

Şunlara uygulanır