EntityEntry<TEntity>.ComplexProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ComplexProperty<TProperty>(String) |
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。 |
| ComplexProperty<TProperty>(Expression<Func<TEntity,TProperty>>) |
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。 |
| ComplexProperty<TProperty>(Expression<Func<TEntity,Nullable<TProperty>>>) |
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。 |
| ComplexProperty<TProperty>(IComplexProperty) |
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。 |
ComplexProperty<TProperty>(String)
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<TEntity,TProperty> ComplexProperty<TProperty>(string propertyName);
override this.ComplexProperty : string -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Overridable Function ComplexProperty(Of TProperty) (propertyName As String) As ComplexPropertyEntry(Of TEntity, TProperty)
類型參數
- TProperty
屬性的類型。
參數
- propertyName
- String
該物業可存取資訊與操作。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。
適用於
ComplexProperty<TProperty>(Expression<Func<TEntity,TProperty>>)
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<TEntity,TProperty> ComplexProperty<TProperty>(System.Linq.Expressions.Expression<Func<TEntity,TProperty?>> propertyExpression);
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<TEntity,TProperty> ComplexProperty<TProperty>(System.Linq.Expressions.Expression<Func<TEntity,TProperty>> propertyExpression);
override this.ComplexProperty : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Overridable Function ComplexProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As ComplexPropertyEntry(Of TEntity, TProperty)
類型參數
- TProperty
參數
- propertyExpression
- Expression<Func<TEntity,TProperty>>
一個 lambda 表達式,代表用來存取資訊與操作的屬性。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。
適用於
ComplexProperty<TProperty>(Expression<Func<TEntity,Nullable<TProperty>>>)
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<TEntity,TProperty> ComplexProperty<TProperty>(System.Linq.Expressions.Expression<Func<TEntity,TProperty?>> propertyExpression) where TProperty : struct;
override this.ComplexProperty : System.Linq.Expressions.Expression<Func<'Entity, Nullable<'Property>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<'Entity, 'Property (requires 'Entity : null and 'Property : struct)> (requires 'Property : struct)
Public Overridable Function ComplexProperty(Of TProperty As Structure) (propertyExpression As Expression(Of Func(Of TEntity, Nullable(Of TProperty)))) As ComplexPropertyEntry(Of TEntity, TProperty)
類型參數
- TProperty
參數
- propertyExpression
- Expression<Func<TEntity,Nullable<TProperty>>>
一個 lambda 表達式,代表用來存取資訊與操作的屬性。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。
適用於
ComplexProperty<TProperty>(IComplexProperty)
提供該實體特定複雜類型屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<TEntity,TProperty> ComplexProperty<TProperty>(Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty);
override this.ComplexProperty : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexPropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Overridable Function ComplexProperty(Of TProperty) (complexProperty As IComplexProperty) As ComplexPropertyEntry(Of TEntity, TProperty)
類型參數
- TProperty
屬性的類型。
參數
- complexProperty
- IComplexProperty
該物業可存取資訊與操作。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。