Export (0) Print
Expand All

EntityParameter Class

Represents a parameter used in EntityCommand.

System.Object
  System.MarshalByRefObject
    System.Data.Common.DbParameter
      System.Data.EntityClient.EntityParameter

Namespace:  System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public sealed class EntityParameter : DbParameter, 
	IDbDataParameter, IDataParameter

The EntityParameter type exposes the following members.

  NameDescription
Public methodEntityParameter()Initializes a new instance of the EntityParameter class using the default values.
Public methodEntityParameter(String, DbType)Initializes a new instance of the EntityParameter class using the specified parameter name and data type.
Public methodEntityParameter(String, DbType, Int32)Initializes a new instance of the EntityParameter class using the specified parameter name, data type and size.
Public methodEntityParameter(String, DbType, Int32, String)Initializes a new instance of the EntityParameter class using the specified properties.
Public methodEntityParameter(String, DbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)Initializes a new instance of the EntityParameter class using the specified properties.
Top

  NameDescription
Public propertyDbTypeGets or sets the DbType of the parameter. (Overrides DbParameter.DbType.)
Public propertyDirectionGets or sets the direction of the parameter. (Overrides DbParameter.Direction.)
Public propertyEdmTypeGets or sets the type of the parameter, expressed as an EdmType.
Public propertyIsNullableGets or sets a value that indicates whether the parameter accepts null values. (Overrides DbParameter.IsNullable.)
Public propertyParameterNameGets or sets the name of the entity parameter. (Overrides DbParameter.ParameterName.)
Public propertyPrecisionGets or sets the number of digits used to represent the Value property.
Public propertyScaleGets or sets the number of decimal places to which Value is resolved.
Public propertySizeGets or sets the maximum size of the data within the column. (Overrides DbParameter.Size.)
Public propertySourceColumnGets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value. (Overrides DbParameter.SourceColumn.)
Public propertySourceColumnNullMappingGets or sets a value that indicates whether source column is nullable. (Overrides DbParameter.SourceColumnNullMapping.)
Public propertySourceVersionGets or sets the DataRowVersion to use when loading the value. (Overrides DbParameter.SourceVersion.)
Public propertyValueGets or sets the value of the parameter. (Overrides DbParameter.Value.)
Top

  NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodResetDbTypeResets the type associated with the EntityParameter. (Overrides DbParameter.ResetDbType().)
Public methodToStringReturns a string representation of the parameter. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetationPrivate propertyIDbDataParameter.PrecisionIndicates the precision of numeric parameters. (Inherited from DbParameter.)
Explicit interface implemetationPrivate propertyIDbDataParameter.ScaleFor a description of this member, see IDbDataParameter.Scale. (Inherited from DbParameter.)
Top

No content here will be updated; please do not add material here.

.NET Framework

Supported in: 4.5.3, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft