Skip to content

BizArk.Core.Extensions.DataExt

Brian Brewder edited this page Apr 1, 2017 · 1 revision

Back to BizArk.Core API Reference

Provides extension methods for string arrays.

Static Methods - DataRow

  • public static bool? GetBool(this DataRow row, string fieldName) - Returns the field value as a bool. Uses ConvertEx to convert the value.
  • public static byte[] GetBytes(this DataRow row, string fieldName) - Returns the field value as a byte array.
  • public static DateTime? GetDateTime(this DataRow row, string fieldName) - Returns the field value as a DateTime. Uses ConvertEx to convert the value.
  • public static double? GetDouble(this DataRow row, string fieldName) - Returns the field value as a double. Uses ConvertEx to convert the value.
  • public static Guid? GetGuid(this DataRow row, string fieldName) - Returns the field value as a Guid. Uses ConvertEx to convert the value.
  • public static int? GetInt(this DataRow row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static string GetString(this DataRow row, string fieldName) - Returns the field value as a string. Uses ConvertEx to convert the value.
  • public static T GetValue<T>(this DataRow row, string fieldName) - Returns the field value as the specified type. Uses ConvertEx to convert the value to the correct type.

Static Methods - DataRowView

  • public static bool? GetBool(this DataRowView row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static byte[] GetBytes(this DataRowView row, string fieldName) - Returns the field value as a byte array.
  • public static DateTime? GetDateTime(this DataRowView row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static double? GetDouble(this DataRowView row, string fieldName) - Returns the field value as a double. Uses ConvertEx to convert the value.
  • public static Guid? GetGuid(this DataRowView row, string fieldName) - Returns the field value as a Guid. Uses ConvertEx to convert the value.
  • public static int? GetInt(this DataRowView row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static string GetString(this DataRowView row, string fieldName) - Returns the field value as a string. Uses ConvertEx to convert the value to a string.
  • public static T GetValue<T>(this DataRowView row, string fieldName) - Returns the field value as the specified type. Uses ConvertEx to convert the value to the correct type.
  • public static bool IsNull(this DataRowView row, string fieldName) - Determines if the field is null.

Static Methods - IDataReader

  • public static bool ContainsField(this IDataReader row, string fieldName) - Determines if the IDataReader contains the specified field.
  • public static bool? GetBool(this IDataReader row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static byte[] GetBytes(this IDataReader row, string fieldName) - Returns the field value as a byte array.
  • public static DateTime? GetDateTime(this IDataReader row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static double? GetDouble(this IDataReader row, string fieldName) - Returns the field value as a double. Uses ConvertEx to convert the value to a double.
  • public static decimal? GetDecimal(this IDataReader row, string fieldName) - Returns the field value as a decimal. Uses ConvertEx to convert the value to a decimal.
  • public static Guid? GetGuid(this IDataReader row, string fieldName) - Returns the field value as a Guid. Uses ConvertEx to convert the value.
  • public static int? GetInt(this IDataReader row, string fieldName) - Returns the field value as a int. Uses ConvertEx to convert the value.
  • public static string GetString(this IDataReader row, string fieldName) - Returns the field value as a string. Uses ConvertEx to convert the value to a string.
  • public static T GetValue<T>(this IDataReader row, string fieldName, T dfltVal) - Returns the field value as the specified type. Uses ConvertEx to convert the value to the correct type.
  • public static bool IsNull(this IDataReader row, string fieldName) - Determines if the field is null.

Static Methods - SqlCommand

Static Methods - SqlParameterCollection

Clone this wiki locally