コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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));
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <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));
 }
コード例 #7
0
 /// <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));
 }
コード例 #8
0
 /// <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));
 }
コード例 #9
0
 /// <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));
 }
コード例 #10
0
 /// <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));
 }
コード例 #11
0
 /// <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));
 }
コード例 #12
0
 /// <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));
 }