Table of Contents

Class ClrICollectionAccessor<TEntity, TCollection, TElement>

Namespace
Microsoft.EntityFrameworkCore.Metadata.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

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.

public class ClrICollectionAccessor<TEntity, TCollection, TElement> : IClrCollectionAccessor where TEntity : class where TCollection : class, IEnumerable<TElement> where TElement : class

Type Parameters

TEntity
TCollection
TElement
Inheritance
ClrICollectionAccessor<TEntity, TCollection, TElement>
Implements
Inherited Members

Constructors

ClrICollectionAccessor(string, Func<TEntity, TCollection>?, Action<TEntity, TCollection>?, Action<TEntity, TCollection>?, Func<TEntity, Action<TEntity, TCollection>, TCollection>?, Func<TCollection>?)

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.

public ClrICollectionAccessor(string propertyName, Func<TEntity, TCollection>? getCollection, Action<TEntity, TCollection>? setCollection, Action<TEntity, TCollection>? setCollectionForMaterialization, Func<TEntity, Action<TEntity, TCollection>, TCollection>? createAndSetCollection, Func<TCollection>? createCollection)

Parameters

propertyName string
getCollection Func<TEntity, TCollection>
setCollection Action<TEntity, TCollection>
setCollectionForMaterialization Action<TEntity, TCollection>
createAndSetCollection Func<TEntity, Action<TEntity, TCollection>, TCollection>
createCollection Func<TCollection>

Properties

CollectionType

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.

public virtual Type CollectionType { get; }

Property Value

Type

Methods

Add(object, object, bool)

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.

public virtual bool Add(object entity, object value, bool forMaterialization)

Parameters

entity object
value object
forMaterialization bool

Returns

bool

AddStandalone(object, object)

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.

public virtual bool AddStandalone(object collection, object value)

Parameters

collection object
value object

Returns

bool

Contains(object, object)

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.

public virtual bool Contains(object entity, object value)

Parameters

entity object
value object

Returns

bool

ContainsStandalone(object, object)

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.

public virtual bool ContainsStandalone(object collection, object value)

Parameters

collection object
value object

Returns

bool

Create()

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.

public virtual object Create()

Returns

object

GetOrCreate(object, bool)

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.

public virtual object GetOrCreate(object entity, bool forMaterialization)

Parameters

entity object
forMaterialization bool

Returns

object

Remove(object, object)

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.

public virtual bool Remove(object entity, object value)

Parameters

entity object
value object

Returns

bool

RemoveStandalone(object?, object)

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.

public virtual bool RemoveStandalone(object? collection, object value)

Parameters

collection object
value object

Returns

bool