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
stringgetCollection
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
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
Returns
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)