IClrCollectionAccessor Interface

Definition

Represents operations backed by compiled delegates that allow manipulation of collections on navigation properties.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IClrCollectionAccessor
type IClrCollectionAccessor = interface
Public Interface IClrCollectionAccessor

Remarks

See Implementation of database providers and extensions for more information and examples.

Properties

CollectionType

The collection type.

Methods

Add(Object, Object, Boolean)

Adds a value to the navigation property collection, unless it is already contained in the collection.

AddStandalone(Object, Object)

Adds a value to the passed collection, unless it is already contained in the collection.

Contains(Object, Object)

Checks whether the value is contained in the collection.

ContainsStandalone(Object, Object)

Checks whether the value is contained in the passed collection.

Create()

Creates a new collection instance of the appropriate type for the navigation property.

GetOrCreate(Object, Boolean)

Either returns the existing collection instance set on the navigation property, or if none exists, then creates a new instance, sets it, and returns it.

Remove(Object, Object)

Removes a value from the collection.

RemoveStandalone(Object, Object)

Removes a value from the passed collection.

Applies to