Share via


EntityParameterCollection Class

Definition

Class representing a parameter collection used in EntityCommand

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
public sealed class EntityParameterCollection : System.Data.Common.DbParameterCollection
type EntityParameterCollection = class
    inherit DbParameterCollection
Public NotInheritable Class EntityParameterCollection
Inherits DbParameterCollection
Inheritance
EntityParameterCollection
Attributes

Properties

Count

Gets an Integer that contains the number of elements in the EntityParameterCollection .

IsFixedSize

Gets a value that indicates whether the EntityParameterCollection has a fixed size.

IsReadOnly

Gets a value that indicates whether the EntityParameterCollection is read-only.

IsSynchronized

Gets a value that indicates whether the EntityParameterCollection is synchronized.

Item[Int32]

Gets the EntityParameter at the specified index.

Item[String]

Gets the EntityParameter with the specified name.

SyncRoot

Gets an object that can be used to synchronize access to the EntityParameterCollection .

Methods

Add(EntityParameter)

Adds the specified EntityParameter object to the EntityParameterCollection .

Add(Object)

Adds the specified object to the EntityParameterCollection.

Add(String, DbType)

Adds a EntityParameter to the EntityParameterCollection given the parameter name and the data type.

Add(String, DbType, Int32)

Adds a EntityParameter to the EntityParameterCollection with the parameter name, the data type, and the column length.

AddRange(Array)

Adds an array of values to the end of the EntityParameterCollection .

AddRange(EntityParameter[])

Adds an array of EntityParameter values to the end of the EntityParameterCollection .

AddWithValue(String, Object)

Adds a value to the end of the EntityParameterCollection.

Clear()

Removes all the EntityParameter objects from the EntityParameterCollection .

Contains(Object)

Determines whether the specified Object is in this EntityParameterCollection .

Contains(String)

Determines whether the specified EntityParameter is in this EntityParameterCollection .

CopyTo(Array, Int32)

Copies all the elements of the current EntityParameterCollection to the specified one-dimensional Array starting at the specified destination Array index.

CopyTo(EntityParameter[], Int32)

Copies all the elements of the current EntityParameterCollection to the specified EntityParameterCollection starting at the specified destination index.

GetEnumerator()

Returns an enumerator that iterates through the EntityParameterCollection .

IndexOf(EntityParameter)

Gets the location of the specified EntityParameter in the collection.

IndexOf(Object)

Gets the location of the specified Object in the collection.

IndexOf(String)

Gets the location of the specified EntityParameter with the specified name.

Insert(Int32, EntityParameter)

Inserts a EntityParameter object into the EntityParameterCollection at the specified index.

Insert(Int32, Object)

Inserts an Object into the EntityParameterCollection at the specified index.

Remove(EntityParameter)

Removes the specified EntityParameter from the collection.

Remove(Object)

Removes the specified parameter from the collection.

RemoveAt(Int32)

Removes the EntityParameter from the EntityParameterCollection at the specified index.

RemoveAt(String)

Removes the EntityParameter from the EntityParameterCollection at the specified parameter name.

Applies to