语言

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]

获取 具有指定名称的 < a0/>。

SyncRoot

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

方法

名称 说明
Add(EntityParameter)

将指定的EntityParameter对象添加到 .EntityParameterCollection

Add(Object)

将指定的对象添加到 .EntityParameterCollection

Add(String, DbType, Int32)

向参数名称、数据类型和列长度添加 a EntityParameterEntityParameterCollection 。

Add(String, DbType)

向给定的参数名称和数据类型添加 a EntityParameterEntityParameterCollection 。

AddRange(Array)

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

AddRange(EntityParameter[])

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

AddWithValue(String, Object)

向末尾 EntityParameterCollection添加一个值。

Clear()

从 .. 中删除所有 EntityParameter 对象 EntityParameterCollection 。

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)

将 a ObjectEntityParameterCollection 插入到指定索引处。

Remove(EntityParameter)

从集合中移除指定的 EntityParameter 值。

Remove(Object)

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

RemoveAt(Int32)

从EntityParameterEntityParameterCollection指定索引处删除该位置。

RemoveAt(String)

从EntityParameterEntityParameterCollection指定参数名称处删除该参数。

适用于