Share via


ComplexElementEntry<TEntity,TComplexProperty>.ComplexCollection Method

Definition

Overloads

Name Description
ComplexCollection<TElement>(IComplexProperty)

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

ComplexCollection<TElement>(Expression<Func<TEntity,IEnumerable<TElement>>>)

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

ComplexCollection<TElement>(String)

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

ComplexCollection<TElement>(IComplexProperty)

Source:
ComplexElementEntry%60.cs

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

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(Microsoft.EntityFrameworkCore.Metadata.IComplexProperty property);
override this.ComplexCollection : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (property As IComplexProperty) As ComplexCollectionEntry(Of TEntity, TElement)

Type Parameters

TElement

The element type.

Parameters

property
IComplexProperty

The property to access information and operations for.

Returns

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.

Applies to

ComplexCollection<TElement>(Expression<Func<TEntity,IEnumerable<TElement>>>)

Source:
ComplexElementEntry%60.cs

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

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(System.Linq.Expressions.Expression<Func<TEntity,System.Collections.Generic.IEnumerable<TElement>?>> propertyExpression);
override this.ComplexCollection : System.Linq.Expressions.Expression<Func<'Entity, seq<'Element>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyExpression As Expression(Of Func(Of TEntity, IEnumerable(Of TElement)))) As ComplexCollectionEntry(Of TEntity, TElement)

Type Parameters

TElement

The element type.

Parameters

propertyExpression
Expression<Func<TEntity,IEnumerable<TElement>>>

A lambda expression representing the property to access information and operations for.

Returns

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.

Applies to

ComplexCollection<TElement>(String)

Source:
ComplexElementEntry%60.cs

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

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(string propertyName);
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyName As String) As ComplexCollectionEntry(Of TEntity, TElement)

Type Parameters

TElement

The element type.

Parameters

propertyName
String

The property to access information and operations for.

Returns

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.

Applies to