MutablePropertyExtensions.GetContainingKeys(IMutableProperty) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得所有使用此屬性的主鍵或備用鍵(包括包含此屬性的複合鍵)。
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableKey> GetContainingKeys(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member GetContainingKeys : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableKey>
<Extension()>
Public Function GetContainingKeys (property As IMutableProperty) As IEnumerable(Of IMutableKey)
參數
- property
- IMutableProperty
取得主鑰匙和備用鑰匙的財產。
傳回
使用此特性的主要與備用鍵。