다음을 통해 공유


MutableEntityTypeExtensions.GetOrAddIndex 메서드

정의

오버로드

GetOrAddIndex(IMutableEntityType, IMutableProperty)

지정된 속성에 정의된 인덱스 또는 인덱스가 아직 정의되지 않은 경우 새로 만듭니다.

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

지정된 속성에 정의된 인덱스 또는 인덱스가 아직 정의되지 않은 경우 새로 만듭니다.

GetOrAddIndex(IMutableEntityType, IMutableProperty)

지정된 속성에 정의된 인덱스 또는 인덱스가 아직 정의되지 않은 경우 새로 만듭니다.

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

매개 변수

entityType
IMutableEntityType

인덱스 가져오기 또는 추가할 엔터티 형식입니다.

property
IMutableProperty

인덱싱할 속성입니다.

반환

기존 또는 새로 만든 인덱스입니다.

적용 대상

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)

지정된 속성에 정의된 인덱스 또는 인덱스가 아직 정의되지 않은 경우 새로 만듭니다.

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

매개 변수

entityType
IMutableEntityType

인덱스 가져오기 또는 추가할 엔터티 형식입니다.

properties
IReadOnlyList<IMutableProperty>

인덱싱할 속성입니다.

반환

기존 또는 새로 만든 인덱스입니다.

적용 대상