Class ComplexPropertyEntry<TEntity, TComplexProperty>
- Namespace
- Microsoft.EntityFrameworkCore.ChangeTracking
- Assembly
- Microsoft.EntityFrameworkCore.dll
Provides access to change tracking information and operations for a given property of a complex type.
public class ComplexPropertyEntry<TEntity, TComplexProperty> : ComplexPropertyEntry, IInfrastructure<InternalEntityEntry> where TEntity : class
Type Parameters
TEntity
The type of the entity type that contains the property.
TComplexProperty
The type of the property.
- Inheritance
-
ComplexPropertyEntry<TEntity, TComplexProperty>
- Implements
- Inherited Members
- Extension Methods
Remarks
Instances of this class are returned from methods when using the ChangeTracker API and it is not designed to be directly constructed in your application code.
See Accessing tracked entities in EF Core for more information and examples.
Constructors
ComplexPropertyEntry(InternalEntityEntry, IComplexProperty)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[EntityFrameworkInternal]
public ComplexPropertyEntry(InternalEntityEntry internalEntry, IComplexProperty complexProperty)
Parameters
internalEntry
InternalEntityEntrycomplexProperty
IComplexProperty
Properties
CurrentValue
Gets or sets the value currently assigned to this property. If the current value is set using this property, the change tracker is aware of the change and DetectChanges() is not required for the context to detect the change.
public virtual TComplexProperty CurrentValue { get; set; }
Property Value
- TComplexProperty
Remarks
See Accessing tracked entities in EF Core for more information and examples.
EntityEntry
The EntityEntry<TEntity> to which this member belongs.
public virtual EntityEntry<TEntity> EntityEntry { get; }
Property Value
- EntityEntry<TEntity>
An entry for the entity that owns this member.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Methods
ComplexProperty<TNestedComplexProperty>(IComplexProperty)
Provides access to change tracking information and operations for a given complex type property of this complex type.
public virtual ComplexPropertyEntry<TEntity, TNestedComplexProperty> ComplexProperty<TNestedComplexProperty>(IComplexProperty complexProperty)
Parameters
complexProperty
IComplexPropertyThe property to access information and operations for.
Returns
- ComplexPropertyEntry<TEntity, TNestedComplexProperty>
An object that exposes change tracking information and operations for the given property.
Type Parameters
TNestedComplexProperty
The type of the property.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
ComplexProperty<TNestedComplexProperty>(Expression<Func<TComplexProperty, TNestedComplexProperty>>)
Provides access to change tracking information and operations for a given complex type property of this complex type.
public virtual ComplexPropertyEntry<TEntity, TNestedComplexProperty> ComplexProperty<TNestedComplexProperty>(Expression<Func<TComplexProperty, TNestedComplexProperty>> propertyExpression)
Parameters
propertyExpression
Expression<Func<TComplexProperty, TNestedComplexProperty>>A lambda expression representing the property to access information and operations for.
Returns
- ComplexPropertyEntry<TEntity, TNestedComplexProperty>
An object that exposes change tracking information and operations for the given property.
Type Parameters
TNestedComplexProperty
Remarks
See Accessing tracked entities in EF Core for more information and examples.
ComplexProperty<TNestedComplexProperty>(string)
Provides access to change tracking information and operations for a given complex type property of this complex type.
public virtual ComplexPropertyEntry<TEntity, TNestedComplexProperty> ComplexProperty<TNestedComplexProperty>(string propertyName)
Parameters
propertyName
stringThe property to access information and operations for.
Returns
- ComplexPropertyEntry<TEntity, TNestedComplexProperty>
An object that exposes change tracking information and operations for the given property.
Type Parameters
TNestedComplexProperty
The type of the property.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Property<TProperty>(IProperty)
Provides access to change tracking information and operations for a given property of this complex type.
public virtual PropertyEntry<TEntity, TProperty> Property<TProperty>(IProperty property)
Parameters
property
IPropertyThe property to access information and operations for.
Returns
- PropertyEntry<TEntity, TProperty>
An object that exposes change tracking information and operations for the given property.
Type Parameters
TProperty
The type of the property.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Property<TProperty>(Expression<Func<TComplexProperty, TProperty>>)
Provides access to change tracking information and operations for a given property of this complex type.
public virtual PropertyEntry<TEntity, TProperty> Property<TProperty>(Expression<Func<TComplexProperty, TProperty>> propertyExpression)
Parameters
propertyExpression
Expression<Func<TComplexProperty, TProperty>>A lambda expression representing the property to access information and operations for.
Returns
- PropertyEntry<TEntity, TProperty>
An object that exposes change tracking information and operations for the given property.
Type Parameters
TProperty
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Property<TProperty>(string)
Provides access to change tracking information and operations for a given property of this complex type.
public virtual PropertyEntry<TEntity, TProperty> Property<TProperty>(string propertyName)
Parameters
propertyName
stringThe property to access information and operations for.
Returns
- PropertyEntry<TEntity, TProperty>
An object that exposes change tracking information and operations for the given property.
Type Parameters
TProperty
The type of the property.
Remarks
See Accessing tracked entities in EF Core for more information and examples.