Share via


ComplexCollectionEntry Class

Definition

Provides access to change tracking and loading information for a collection navigation complexProperty that associates this entity to a collection of another entities.

[System.Runtime.CompilerServices.Nullable(0)]
public class ComplexCollectionEntry : Microsoft.EntityFrameworkCore.ChangeTracking.MemberEntry
[<System.Runtime.CompilerServices.Nullable(0)>]
type ComplexCollectionEntry = class
    inherit MemberEntry
Public Class ComplexCollectionEntry
Inherits MemberEntry
Inheritance
ComplexCollectionEntry
Derived
Attributes

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, Changing foreign keys and navigations, and Loading related entities for more information and examples.

Constructors

Name Description
ComplexCollectionEntry(IInternalEntry, 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.

Properties

Name Description
CurrentValue

Gets or sets the value currently assigned to this complexProperty. If the current value is set using this complexProperty, the change tracker is aware of the change and DetectChanges() is not required for the context to detect the change.

EntityEntry

The EntityEntry to which this member belongs.

(Inherited from MemberEntry)
InternalEntry

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.

(Inherited from MemberEntry)
IsModified

Gets or sets a value indicating whether any of foreign key complexProperty values associated with this navigation complexProperty have been modified and should be updated in the database when SaveChanges() is called.

Item[Int32]

Gets a ComplexElementEntry for the complex item at the specified ordinal.

Metadata

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

Methods

Name Description
GetEnumerator()

Gets an enumerator over all complex entries in this collection.

GetOriginalEntry(Int32)

Gets a ComplexElementEntry for the original complex item at the specified ordinal.

Explicit Interface Implementations

Name Description
IInfrastructure<IInternalEntry>.Instance

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.

(Inherited from MemberEntry)

Applies to