/// <summary> /// Gets the value of the specified column as a DateTime -or- the specified default value if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="i">The zero-based column ordinal.</param> /// <returns>The value of the column -or- the default value if the column is null.</returns> public static TimeSpan?GetNullableTimeSpan(this IFlatFileDataRecord record, int i) { return(GetNullable(record, i, record.GetTimeSpan)); }
/// <summary> /// Gets the value of the specified column as a sbyte -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="name">The name of the column to find.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static sbyte?GetNullableSByte(this IFlatFileDataRecord record, string name) { return(GetNullable(record, name, record.GetSByte)); }
/// <summary> /// Gets the DateTime value of the specified column. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="name">The name of the column to find.</param> /// <returns>The DateTime value of the specified column.</returns> public static TimeSpan GetTimeSpan(this IFlatFileDataRecord record, string name) { return(Get(record, name, record.GetTimeSpan)); }
/// <summary> /// Gets the value of the specified column as a DateTime -or- the specified default value if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="name">The name of the column to find.</param> /// <returns>The value of the column -or- the default value if the column is null.</returns> public static DateTimeOffset?GetNullableDateTimeOffset(this IFlatFileDataRecord record, string name) { return(GetNullable(record, name, record.GetDateTimeOffset)); }
/// <summary> /// Gets the value of the specified column as a sbyte -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="i">The zero-based column ordinal.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static sbyte?GetNullableSByte(this IFlatFileDataRecord record, int i) { return(GetNullable(record, i, record.GetSByte)); }
/// <summary> /// Gets the value of the specified column as a ulong -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="name">The name of the column to find.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static ulong?GetNullableUInt64(this IFlatFileDataRecord record, string name) { return(GetNullable(record, name, record.GetUInt64)); }
/// <summary> /// Gets the value of the specified column as a DateTime -or- the specified default value if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="i">The zero-based column ordinal.</param> /// <returns>The value of the column -or- the default value if the column is null.</returns> public static DateTimeOffset?GetNullableDateTimeOffset(this IFlatFileDataRecord record, int i) { return(GetNullable(record, i, record.GetDateTimeOffset)); }
/// <summary> /// Gets the value of the specified column as a ulong -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="i">The zero-based column ordinal.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static ulong?GetNullableUInt64(this IFlatFileDataRecord record, int i) { return(GetNullable(record, i, record.GetUInt64)); }
/// <summary> /// Gets the value of the specified column as a uint -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="name">The name of the column to find.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static uint?GetNullableUInt32(this IFlatFileDataRecord record, string name) { return(GetNullable(record, name, record.GetUInt32)); }
/// <summary> /// Gets the value of the specified column as a uint -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="i">The zero-based column ordinal.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static uint?GetNullableUInt32(this IFlatFileDataRecord record, int i) { return(GetNullable(record, i, record.GetUInt32)); }
/// <summary> /// Gets the value of the specified column as a ushort -or- null if the column is null. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="i">The zero-based column ordinal.</param> /// <returns>The value of the column -or- null if the column is null.</returns> public static ushort?GetNullableUInt16(this IFlatFileDataRecord record, int i) { return(GetNullable(record, i, record.GetUInt16)); }
/// <summary> /// Gets the ushort value of the specified column. /// </summary> /// <param name="record">The IDataRecord to get the value for.</param> /// <param name="name">The name of the column to find.</param> /// <returns>The ushort value of the specified column.</returns> public static ushort GetUInt16(this IFlatFileDataRecord record, string name) { return(Get(record, name, record.GetUInt16)); }