EntityParameterCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of parameters associated with a EntityCommand.
public ref class EntityParameterCollection sealed : System::Data::Common::DbParameterCollection
public sealed class EntityParameterCollection : System.Data.Common.DbParameterCollection
type EntityParameterCollection = class
inherit DbParameterCollection
Public NotInheritable Class EntityParameterCollection
Inherits DbParameterCollection
- Inheritance
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, Int32) |
Adds a EntityParameter to the EntityParameterCollection with the parameter name, the data type, and the column length. |
Add(String, DbType) |
Adds a EntityParameter to the EntityParameterCollection given the parameter name and the data type. |
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. |
CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through the EntityParameterCollection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetLifetimeService() |
Obsolete.
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
GetParameter(Int32) |
Returns the DbParameter object at the specified index in the collection. (Inherited from DbParameterCollection) |
GetParameter(String) |
Returns DbParameter the object with the specified name. (Inherited from DbParameterCollection) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
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. |
InitializeLifetimeService() |
Obsolete.
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
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. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) |
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. |
SetParameter(Int32, DbParameter) |
Sets the DbParameter object at the specified index to a new value. (Inherited from DbParameterCollection) |
SetParameter(String, DbParameter) |
Sets the DbParameter object with the specified name to a new value. (Inherited from DbParameterCollection) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Explicit Interface Implementations
IDataParameterCollection.Item[String] |
Gets or sets the parameter at the specified index. (Inherited from DbParameterCollection) |
IList.Item[Int32] |
Gets or sets the element at the specified index. (Inherited from DbParameterCollection) |
Extension Methods
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |