EntityEntry<TEntity>.ComplexProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ComplexProperty<TProperty>(String) |
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。 |
| ComplexProperty<TProperty>(Expression<Func<TEntity,TProperty>>) |
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。 |
| ComplexProperty<TProperty>(Expression<Func<TEntity,Nullable<TProperty>>>) |
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。 |
| ComplexProperty<TProperty>(IComplexProperty) |
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。 |
ComplexProperty<TProperty>(String)
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。
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>>)
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。
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>>>)
- Source:
- EntityEntry`.cs
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。
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)
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
- Source:
- EntityEntry`.cs
提供对此实体的给定复杂类型属性的更改跟踪信息和操作的访问权限。
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 中的访问跟踪实体 。