IReadOnlyEntityType.GetDeclaredIndexes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得在此實體類型上宣告的所有索引。
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex> GetDeclaredIndexes ();
abstract member GetDeclaredIndexes : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex>
Public Function GetDeclaredIndexes () As IEnumerable(Of IReadOnlyIndex)
傳回
宣告的索引。
備註
這個方法不會傳回在基底類型上宣告的索引。 在逐一查看所有實體類型時,它很有用,以避免多次處理相同的索引。 使用 GetForeignKeys() 也傳回在基底類型上宣告的索引。