語言

PropertyExtensions.GetContainingIndexes(IProperty) 方法

定義

取得所有使用此屬性的索引(包括包含此屬性的複合索引)。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IIndex> GetContainingIndexes(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetContainingIndexes : Microsoft.EntityFrameworkCore.Metadata.IProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IIndex>
<Extension()>
Public Function GetContainingIndexes (property As IProperty) As IEnumerable(Of IIndex)

參數

property
IProperty

取得索引的屬性。

傳回

使用此特性的索引。

適用於