IMutableComplexProperty 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表結構型的複雜性質。
public interface IMutableComplexProperty : Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexProperty
type IMutableComplexProperty = interface
interface IReadOnlyComplexProperty
interface IReadOnlyPropertyBase
interface IReadOnlyAnnotatable
interface IMutablePropertyBase
interface IMutableAnnotatable
Public Interface IMutableComplexProperty
Implements IMutablePropertyBase, IReadOnlyComplexProperty
- 實作
備註
此介面用於模型建立時,允許修改元資料。 模型建構完成後,代表 IComplexProperty 同一元資料的唯讀視圖。
更多資訊與範例請參見 複雜類型 。
屬性
| 名稱 | Description |
|---|---|
| ClrType |
取得這個類屬性物件所持有的值類型。 (繼承來源 IReadOnlyPropertyBase) |
| ComplexType |
得到相關的複型。 |
| DeclaringType |
取得這個類性質物件所屬的類型。 (繼承來源 IReadOnlyPropertyBase) |
| FieldInfo |
取得這個類屬性物件底層 CLR 欄位的 。FieldInfo
這可能是 |
| IsCollection |
會得到一個值,表示該屬性是否為集合。 (繼承來源 IReadOnlyPropertyBase) |
| IsNullable |
取得或設定一個值,表示此性質是否能包含 |
| Item[String] |
取得或設定註解的值。 (繼承來源 IMutableAnnotatable) |
| Name |
取得這個類性質物件的名稱。 (繼承來源 IReadOnlyPropertyBase) |
| PropertyInfo |
取得該類性質物件底層 CLR 屬性的 。PropertyInfo
這可能是 |
| Sentinel |
取得哨兵值,表示此屬性未被設定。 (繼承來源 IReadOnlyPropertyBase) |
方法
明確介面實作
| 名稱 | Description |
|---|---|
| IReadOnlyComplexProperty.IsNullable |
得到一個值,表示此性質是否能包含 |
擴充方法
| 名稱 | Description |
|---|---|
| GetJsonPropertyName(IReadOnlyComplexProperty) |
在鎖定 Cosmos 時,回傳該物件所映射的屬性名稱。 |
| GetJsonPropertyName(IReadOnlyComplexProperty) |
取得用於映射到 JSON 欄位的複雜屬性的 JSON 屬性名稱值。 |
| GetMappedStoreObjects(IReadOnlyComplexProperty, StoreObjectType) |
如果這個複雜屬性被映射到 JSON 欄位,則會回傳類似表格的儲存物件。 此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。 |
| SetJsonPropertyName(IMutableComplexProperty, String) |
設定該物件在鎖定 Cosmos 時所映射的屬性名稱。 |
| SetJsonPropertyName(IMutableComplexProperty, String) |
設定映射到 JSON 欄位的複雜屬性名稱。 |