EntityParameterCollection 类

定义

表示 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
继承
EntityParameterCollection
属性

属性

Count

获取一个整数,其中包含 中的 EntityParameterCollection 元素数。

IsFixedSize

获取一个值,该值指示 EntityParameterCollection 是否具有固定大小。

IsReadOnly

获取一个值,该值指示 EntityParameterCollection 是否为只读。

IsSynchronized

获取一个值,该值指示 EntityParameterCollection 是否已同步。

Item[Int32]

获取位于指定索引处的 EntityParameter

Item[String]

获取具有指定名称的 EntityParameter

SyncRoot

获取可用于同步对 的访问的对象 EntityParameterCollection

方法

Add(EntityParameter)

将指定的 EntityParameter 对象添加到 EntityParameterCollection

Add(Object)

将指定的对象添加到 EntityParameterCollection 中。

Add(String, DbType)

在给定参数名称和数据类型时向 EntityParameter 中添加一个 EntityParameterCollection

Add(String, DbType, Int32)

使用给定的参数名称、数据类型和列长度向 EntityParameter 中添加一个 EntityParameterCollection

AddRange(Array)

将值的数组添加到 的 EntityParameterCollection 末尾。

AddRange(EntityParameter[])

将值的数组 EntityParameter 添加到 的 EntityParameterCollection 末尾。

AddWithValue(String, Object)

EntityParameterCollection 的末尾添加一个值。

Clear()

EntityParameterCollection 中删除所有 EntityParameter 对象。

Contains(Object)

确定指定的 Object 是否在此 EntityParameterCollection 中。

Contains(String)

确定指定的 EntityParameter 是否在此 EntityParameterCollection 中。

CopyTo(Array, Int32)

将当前 EntityParameterCollection 的所有元素复制到指定的一维 Array 中,并以指定的目标 Array 索引位置作为复制到的起始位置。

CopyTo(EntityParameter[], Int32)

将当前 EntityParameterCollection 的所有元素复制到指定的 EntityParameterCollection 中,并以指定的目标索引位置作为复制到的起始位置。

GetEnumerator()

返回循环访问 的 EntityParameterCollection 枚举器。

IndexOf(EntityParameter)

获取指定的 EntityParameter 在集合中的位置。

IndexOf(Object)

获取指定的 Object 在集合中的位置。

IndexOf(String)

获取具有指定名称的指定 EntityParameter 的位置。

Insert(Int32, EntityParameter)

EntityParameter 中的指定索引处插入一个 EntityParameterCollection 对象。

Insert(Int32, Object)

Object 中的指定索引处插入一个 EntityParameterCollection

Remove(EntityParameter)

从集合中移除指定的 EntityParameter

Remove(Object)

从集合中移除指定的参数。

RemoveAt(Int32)

EntityParameter 的指定索引处移除 EntityParameterCollection

RemoveAt(String)

EntityParameter 中移除具有指定参数名称的 EntityParameterCollection

适用于