DbComplexPropertyEntry<TEntity,TComplexProperty> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此類別的實例會從 的 DbEntityEntry<TEntity> ComplexProperty 方法回傳,並允許存取複雜屬性的狀態。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbComplexPropertyEntry<TEntity,TComplexProperty> : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TComplexProperty> where TEntity : class
public class DbComplexPropertyEntry<TEntity,TComplexProperty> : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TComplexProperty> where TEntity : class
type DbComplexPropertyEntry<'Entity, 'ComplexProperty (requires 'Entity : null)> = class
inherit DbPropertyEntry<'Entity, 'ComplexProperty (requires 'Entity : null)>
Public Class DbComplexPropertyEntry(Of TEntity, TComplexProperty)
Inherits DbPropertyEntry(Of TEntity, TComplexProperty)
類型參數
- TEntity
該財產所屬實體的類型。
- TComplexProperty
屬性的類型。
- 繼承
-
DbPropertyEntry<TEntity,TComplexProperty>DbComplexPropertyEntry<TEntity,TComplexProperty>
- 屬性
屬性
| 名稱 | Description |
|---|---|
| CurrentValue |
取得或設定此屬性的當前值。 (繼承來源 DbPropertyEntry<TEntity,TProperty>) |
| EntityEntry |
DbEntityEntry<TEntity>這塊土地屬於那裡。 (繼承來源 DbPropertyEntry<TEntity,TProperty>) |
| IsModified |
取得或設定一個值,表示該屬性值自從從資料庫載入後是否已被修改。 (繼承來源 DbPropertyEntry<TEntity,TProperty>) |
| Name |
取得屬性名稱。 (繼承來源 DbPropertyEntry<TEntity,TProperty>) |
| OriginalValue |
取得或設定此屬性的原始值。 (繼承來源 DbPropertyEntry<TEntity,TProperty>) |
| ParentProperty |
該性質的 為 DbPropertyEntry 該性質的巢狀性質。 此方法僅會回傳複雜物件屬性的非空條目;它會回傳 null 以回應實體本身的屬性。 (繼承來源 DbPropertyEntry<TEntity,TProperty>) |
方法
| 名稱 | Description |
|---|---|
| ComplexProperty(String) |
取得一個代表該性質巢狀複數屬性的物件。 |
| ComplexProperty<TNestedComplexProperty>(Expression<Func<TComplexProperty,TNestedComplexProperty>>) |
取得一個代表該性質巢狀複數屬性的物件。 |
| ComplexProperty<TNestedComplexProperty>(String) |
取得一個代表該性質巢狀複數屬性的物件。 |
| Equals(Object) |
此類別的實例會從 的 DbEntityEntry<TEntity> ComplexProperty 方法回傳,並允許存取複雜屬性的狀態。 (繼承來源 DbMemberEntry<TEntity,TProperty>) |
| GetHashCode() |
此類別的實例會從 的 DbEntityEntry<TEntity> ComplexProperty 方法回傳,並允許存取複雜屬性的狀態。 (繼承來源 DbMemberEntry<TEntity,TProperty>) |
| GetType() |
取得目前實例的 Type。 (繼承來源 DbMemberEntry<TEntity,TProperty>) |
| GetValidationErrors() |
驗證了這個屬性。 (繼承來源 DbMemberEntry<TEntity,TProperty>) |
| Property(String) |
取得一個代表該屬性巢狀屬性的物件。 此方法可用於純量或複雜性質。 |
| Property<TNestedProperty>(Expression<Func<TComplexProperty,TNestedProperty>>) |
取得一個代表該屬性巢狀屬性的物件。 此方法可用於純量或複雜性質。 |
| Property<TNestedProperty>(String) |
取得一個代表該屬性巢狀屬性的物件。 此方法可用於純量或複雜性質。 |
| ToString() |
此類別的實例會從 的 DbEntityEntry<TEntity> ComplexProperty 方法回傳,並允許存取複雜屬性的狀態。 (繼承來源 DbMemberEntry<TEntity,TProperty>) |
運算子
| 名稱 | Description |
|---|---|
| Implicit(DbComplexPropertyEntry<TEntity,TComplexProperty> to DbComplexPropertyEntry) |
回傳該物件所代表屬性非泛型 DbComplexPropertyEntry 類別的新實例。 |