SqlDataRecord
Represents a single row of data and its metadata. This class cannot be inherited.
Gets the number of columns in the data row. This property is read-only.
Gets the common language runtime (CLR) type value for the column specified by the column ordinalordinal argument.
Gets the common language runtime (CLR) type value for the column specified by the column namename argument.
Inititializes a new SqlDataRecord instance with the schema based on the array of SqlMetaData objects passed as an argument.
Gets the value for the column specified by the ordinal as a Boolean.
Gets the value for the column specified by the ordinal as a Byte.
public virtual long GetBytes(int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length)
Gets the value for the column specified by the ordinal as an array of Byte objects.
Gets the value for the column specified by the ordinal as a Char.
public virtual long GetChars(int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length)
Gets the value for the column specified by the ordinal as an array of Char objects.
Returns the name of the data type for the column specified by the ordinal argument.
Gets the value for the column specified by the ordinal as a DateTime.
Returns the specified column’s data as a DateTimeOffset.
Gets the value for the column specified by the ordinal as a Decimal.
Gets the value for the column specified by the ordinal as a Double.
Returns a Type object representing the common language runtime (CLR) type that maps to the SQL Server type of the column specified by the ordinalordinal argument.
Gets the value for the column specified by the ordinal as a float.
Gets the value for the column specified by the ordinal as a Guid.
Gets the value for the column specified by the ordinal as a Int16.
Gets the value for the column specified by the ordinal as a Int32.
Gets the value for the column specified by the ordinal as a Int64.
Returns the name of the column specified by the ordinal argument.
Returns the column ordinal specified by the column name.
Gets the value for the column specified by the ordinal as a SqlBinary.
Gets the value for the column specified by the ordinal as a SqlBoolean.
Gets the value for the column specified by the ordinal as a SqlByte.
Gets the value for the column specified by the ordinal as a SqlBytes.
Gets the value for the column specified by the ordinal as a SqlChars.
Gets the value for the column specified by the ordinal as a SqlDateTime.
Gets the value for the column specified by the ordinal as a SqlDecimal.
Gets the value for the column specified by the ordinal as a SqlDouble.
Returns a Type object that represents the type (as a SQL Server type, defined in SqlTypes) that maps to the SQL Server type of the column.
Gets the value for the column specified by the ordinal as a SqlGuid.
Gets the value for the column specified by the ordinal as a SqlInt16.
Gets the value for the column specified by the ordinal as a SqlInt32.
Gets the value for the column specified by the ordinal as a SqlInt64.
Returns a SqlMetaData object, describing the metadata of the column specified by the column ordinal.
Gets the value for the column specified by the ordinal as a SqlMoney.
Gets the value for the column specified by the ordinal as a SqlSingle.
Gets the value for the column specified by the ordinal as a SqlString.
Returns the data value stored in the column, expressed as a SQL Server type, specified by the column ordinal.
Returns the values for all the columns in the record, expressed as SQL Server types, in an array.
Gets the value for the column specified by the ordinal as a SqlXml.
Gets the value for the column specified by the ordinal as a String.
Returns the specified column’s data as a TimeSpan.
Returns the common language runtime (CLR) type value for the column specified by the ordinal argument.
Returns the values for all the columns in the record, expressed as common language runtime (CLR) types, in an array.
Returns true if the column specified by the column ordinal parameter is null.
Sets the data stored in the column to the specified Boolean value.
Sets the data stored in the column to the specified Byte value.
public virtual void SetBytes(int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length)
Sets the data stored in the column to the specified array of Byte values.
Sets the data stored in the column to the specified Char value.
public virtual void SetChars(int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length)
Sets the data stored in the column to the specified array of Char values.
Sets the data stored in the column to the specified DateTime value.
Sets the value of the column specified to the DateTimeOffset value.
Sets the value in the specified column to DBNull.
Sets the data stored in the column to the specified Decimal value.
Sets the data stored in the column to the specified Double value.
Sets the data stored in the column to the specified float value.
Sets the data stored in the column to the specified Guid value.
Sets the data stored in the column to the specified Int16 value.
Sets the data stored in the column to the specified Int32 value.
Sets the data stored in the column to the specified Int64 value.
Sets the data stored in the column to the specified SqlBinary value.
Sets the data stored in the column to the specified SqlBoolean value.
Sets the data stored in the column to the specified SqlByte value.
Sets the data stored in the column to the specified SqlBytes value.
Sets the data stored in the column to the specified SqlChars value.
Sets the data stored in the column to the specified SqlDateTime value.
Sets the data stored in the column to the specified SqlDecimal value.
Sets the data stored in the column to the specified SqlDouble value.
Sets the data stored in the column to the specified SqlGuid value.
Sets the data stored in the column to the specified SqlInt16 value.
Sets the data stored in the column to the specified SqlInt32 value.
Sets the data stored in the column to the specified SqlInt64 value.
Sets the data stored in the column to the specified SqlMoney value.
Sets the data stored in the column to the specified SqlSingle value.
Sets the data stored in the column to the specified SqlString value.
Sets the data stored in the column to the specified SqlXml value.
Sets the data stored in the column to the specified String value.
Sets the value of the column specified to the TimeSpan.
Sets a new value, expressed as a common language runtime (CLR) type, for the column specified by the column ordinal.
Sets new values for all of the columns in the SqlDataRecord. These values are expressed as common language runtime (CLR) types.