Click or drag to resize

DataRowExtensions Class

Static extension methods for DataRow that will automatically type cast fields to the desired value. This is superior to DataSetExtensions.dll because if the field type does not exactly match in that case, a cast exception occurs.
Inheritance Hierarchy
SystemObject
  GSF.DataDataRowExtensions

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public static class DataRowExtensions
View Source

The DataRowExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAsBoolean(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsBoolean(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsBoolean(DataRow, Int32, Boolean) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsBoolean(DataRow, String, Boolean) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByte(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByte(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByte(DataRow, Int32, Byte) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByte(DataRow, String, Byte) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByteArray(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByteArray(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByteArray(DataRow, Int32, Byte) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsByteArray(DataRow, String, Byte) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDateTime(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDateTime(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDateTime(DataRow, Int32, DateTime) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDateTime(DataRow, String, DateTime) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDecimal(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDecimal(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDecimal(DataRow, Int32, Decimal) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDecimal(DataRow, String, Decimal) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDouble(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDouble(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDouble(DataRow, Int32, Double) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsDouble(DataRow, String, Double) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsGuid(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsGuid(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsGuid(DataRow, Int32, Guid) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsGuid(DataRow, String, Guid) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt16(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt16(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt16(DataRow, Int32, Int16) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt16(DataRow, String, Int16) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt32(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt32(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt32(DataRow, Int32, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt32(DataRow, String, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt64(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt64(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt64(DataRow, Int32, Int64) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsInt64(DataRow, String, Int64) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsSingle(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsSingle(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsSingle(DataRow, Int32, Single) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsSingle(DataRow, String, Single) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsString(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsString(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsString(DataRow, Int32, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsString(DataRow, String, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsUInt32(DataRow, Int32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsUInt32(DataRow, String) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsUInt32(DataRow, Int32, UInt32) Attempts to type cast the specified column of a to the defined type.
Public Extension MethodAsUInt32(DataRow, String, UInt32) Attempts to type cast the specified column of a to the defined type.
Top
See Also