Table of Contents

Class ComplexPropertyEntry

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 : MemberEntry, IInfrastructure<InternalEntityEntry>
Inheritance
ComplexPropertyEntry
Implements
Derived
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 InternalEntityEntry
complexProperty IComplexProperty

Properties

ComplexProperties

Provides access to change tracking information and operations for all properties of nested complex types on this complex type.

public virtual IEnumerable<ComplexPropertyEntry> ComplexProperties { get; }

Property Value

IEnumerable<ComplexPropertyEntry>

Remarks

See Accessing tracked entities in EF Core for more information and examples.

IsModified

Gets or sets a value indicating whether any of the properties of the complex type have been modified and should be updated in the database when SaveChanges() is called.

public override bool IsModified { get; set; }

Property Value

bool

Remarks

Setting this value causes all of the properties of the complex type to be marked as modified or not as appropriate.

See Accessing tracked entities in EF Core for more information and examples.

Metadata

Gets the metadata that describes the facets of this property and how it maps to the database.

public virtual IComplexProperty Metadata { get; }

Property Value

IComplexProperty

Properties

Provides access to change tracking information and operations for all properties of this complex type.

public virtual IEnumerable<PropertyEntry> Properties { get; }

Property Value

IEnumerable<PropertyEntry>

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Methods

ComplexProperty(IComplexProperty)

Provides access to change tracking information and operations for a given property of a nested complex type on this complex type.

public virtual ComplexPropertyEntry ComplexProperty(IComplexProperty property)

Parameters

property IComplexProperty

The property to access information and operations for.

Returns

ComplexPropertyEntry

An object that exposes change tracking information and operations for the given property.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

ComplexProperty(string)

Provides access to change tracking information and operations for a given property of a nested complex type on this complex type.

public virtual ComplexPropertyEntry ComplexProperty(string propertyName)

Parameters

propertyName string

The property to access information and operations for.

Returns

ComplexPropertyEntry

An object that exposes change tracking information and operations for the given property.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Property(IProperty)

Provides access to change tracking information and operations for a given property of this complex type.

public virtual PropertyEntry Property(IProperty property)

Parameters

property IProperty

The property to access information and operations for.

Returns

PropertyEntry

An object that exposes change tracking information and operations for the given property.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Property(string)

Provides access to change tracking information and operations for a given property of this complex type.

public virtual PropertyEntry Property(string propertyName)

Parameters

propertyName string

The property to access information and operations for.

Returns

PropertyEntry

An object that exposes change tracking information and operations for the given property.

Remarks

See Accessing tracked entities in EF Core for more information and examples.