ClrICollectionAccessor<TEntity, TCollection, TElement> ClrICollectionAccessor(Of TEntity, TCollection, TElement) Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class ClrICollectionAccessor<TEntity, TCollection, TElement> : IClrCollectionAccessor where TEntity : class where TCollection : class, IEnumerable<TElement>
Public Class ClrICollectionAccessor(Of TEntity As Class, TCollection As {Class, IEnumerable(Of TElement)}, TElement)
    Implements IClrCollectionAccessor
Type Parameters
TEntity
TCollection
TElement
Inheritance
System.ObjectSystem.Object
ClrICollectionAccessor<TEntity, TCollection, TElement>ClrICollectionAccessor(Of TEntity, TCollection, TElement)
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

ClrICollectionAccessor(String, Func, Action, Func, TCollection>, Func) ClrICollectionAccessor(String, Func(Of TEntity, TCollection), Action(Of TEntity, TCollection), Func(Of TEntity, Action(Of TEntity, TCollection), TCollection), Func(Of TCollection))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public ClrICollectionAccessor(string propertyName, Func<TEntity, TCollection> getCollection, Action<TEntity, TCollection> setCollection, Func<TEntity, Action<TEntity, TCollection>, TCollection> createAndSetCollection, Func<TCollection> createCollection)
Public Sub New(propertyName As String, getCollection As Func(Of TEntity, TCollection), setCollection As Action(Of TEntity, TCollection), createAndSetCollection As Func(Of TEntity, Action(Of TEntity, TCollection), TCollection), createCollection As Func(Of TCollection))
Parameters
propertyName
System.String System.String
getCollection
System.Func<TEntity, TCollection> System.Func(Of TEntity, TCollection)
setCollection
System.Action<TEntity, TCollection> System.Action(Of TEntity, TCollection)
createAndSetCollection
System.Func<TEntity, System.Action<TEntity, TCollection>, TCollection> System.Func(Of TEntity, System.Action(Of TEntity, TCollection), TCollection)
createCollection
System.Func<TCollection> System.Func(Of TCollection)

Properties

CollectionType CollectionType

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Type CollectionType { get; }
Public Overridable ReadOnly Property CollectionType As Type
Value
System.Type System.Type

Methods

Add(Object, Object) Add(Object, Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual bool Add(object instance, object value)
Public Overridable Function Add(instance As Object, value As Object) As Boolean
Parameters
instance
System.Object System.Object
value
System.Object System.Object
Returns
System.Boolean System.Boolean

AddRange(Object, IEnumerable) AddRange(Object, IEnumerable(Of Object))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void AddRange(object instance, IEnumerable<object> values)
Public Overridable Sub AddRange(instance As Object, values As IEnumerable(Of Object))
Parameters
instance
System.Object System.Object
values
System.Collections.Generic.IEnumerable<System.Object> System.Collections.Generic.IEnumerable(Of System.Object)

Contains(Object, Object) Contains(Object, Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual bool Contains(object instance, object value)
Public Overridable Function Contains(instance As Object, value As Object) As Boolean
Parameters
instance
System.Object System.Object
value
System.Object System.Object
Returns
System.Boolean System.Boolean

Create(IEnumerable) Create(IEnumerable(Of Object))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual object Create(IEnumerable<object> values)
Public Overridable Function Create(values As IEnumerable(Of Object)) As Object
Parameters
values
System.Collections.Generic.IEnumerable<System.Object> System.Collections.Generic.IEnumerable(Of System.Object)
Returns
System.Object System.Object

GetOrCreate(Object) GetOrCreate(Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual object GetOrCreate(object instance)
Public Overridable Function GetOrCreate(instance As Object) As Object
Parameters
instance
System.Object System.Object
Returns
System.Object System.Object

Remove(Object, Object) Remove(Object, Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void Remove(object instance, object value)
Public Overridable Sub Remove(instance As Object, value As Object)
Parameters
instance
System.Object System.Object
value
System.Object System.Object