EntityParameterCollection.Add Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Add(EntityParameter) |
Agrega el objeto especificado EntityParameter a .EntityParameterCollection |
| Add(Object) |
Agrega el objeto especificado al objeto EntityParameterCollection. |
| Add(String, DbType) |
Agrega un objeto EntityParameter a la colección EntityParameterCollection dados el nombre del parámetro y el tipo de datos. |
| Add(String, DbType, Int32) |
Agrega un objeto EntityParameter a la colección EntityParameterCollection con el nombre de parámetro, el tipo de datos y la longitud de columna. |
Add(EntityParameter)
Agrega el objeto especificado EntityParameter a .EntityParameterCollection
public System.Data.Entity.Core.EntityClient.EntityParameter Add (System.Data.Entity.Core.EntityClient.EntityParameter value);
override this.Add : System.Data.Entity.Core.EntityClient.EntityParameter -> System.Data.Entity.Core.EntityClient.EntityParameter
Public Function Add (value As EntityParameter) As EntityParameter
Parámetros
- value
- EntityParameter
EntityParameter que se agrega a la colección.
Devoluciones
Un nuevo objeto EntityParameter.
Excepciones
El EntityParameter especificado en el parámetro value ya se ha agregado a esta u otra EntityParameterCollection .
El parámetro pasado no era EntityParameter.
El parámetro value es null.
Se aplica a
Add(Object)
Agrega el objeto especificado al objeto EntityParameterCollection.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public override int Add (object value);
override this.Add : obj -> int
Public Overrides Function Add (value As Object) As Integer
Parámetros
Devoluciones
El índice del nuevo objeto EntityParameter.
- Atributos
Se aplica a
Add(String, DbType)
Agrega un objeto EntityParameter a la colección EntityParameterCollection dados el nombre del parámetro y el tipo de datos.
public System.Data.Entity.Core.EntityClient.EntityParameter Add (string parameterName, System.Data.DbType dbType);
override this.Add : string * System.Data.DbType -> System.Data.Entity.Core.EntityClient.EntityParameter
Parámetros
- parameterName
- String
El nombre del parámetro.
Devoluciones
Un nuevo objeto EntityParameter.
Se aplica a
Add(String, DbType, Int32)
Agrega un objeto EntityParameter a la colección EntityParameterCollection con el nombre de parámetro, el tipo de datos y la longitud de columna.
public System.Data.Entity.Core.EntityClient.EntityParameter Add (string parameterName, System.Data.DbType dbType, int size);
override this.Add : string * System.Data.DbType * int -> System.Data.Entity.Core.EntityClient.EntityParameter
Parámetros
- parameterName
- String
El nombre del parámetro.
- size
- Int32
Longitud de columna.
Devoluciones
Un nuevo objeto EntityParameter.