IReadOnlyProperty.GetPrincipals 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetPrincipals() |
尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。 |
| GetPrincipals<T>() |
尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。 |
GetPrincipals()
尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> GetPrincipals();
abstract member GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty>
override this.GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty>
Public Overridable Function GetPrincipals () As IReadOnlyList(Of IReadOnlyProperty)
傳回
所有相關的主要性質清單,包括該性質。
適用於
GetPrincipals<T>()
尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。
public virtual System.Collections.Generic.IReadOnlyList<T> GetPrincipals<T>() where T : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty;
abstract member GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)> (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)
override this.GetPrincipals : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)> (requires 'T :> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty)
Public Overridable Function GetPrincipals(Of T As IReadOnlyProperty) () As IReadOnlyList(Of T)
類型參數
- T
傳回
所有相關的主要性質清單,包括該性質。