/// <summary> /// Retrieve a non-nullable TimeSpan /// </summary> /// <param name="sesid">The session to use.</param> /// <param name="tableid">The table to retrieve the value from.</param> /// <param name="columnid">The column containing the value.</param> /// <returns>A non-nullable Float constructed from the column.</returns> private static TimeSpan RetrieveColumnAsNonNullableTimeSpan(JET_SESID sesid, JET_TABLEID tableid, JET_COLUMNID columnid) { return(UnwrapNullableColumnValue <TimeSpan>(ColumnConverter <TColumn> .RetrieveColumnAsTimeSpan(sesid, tableid, columnid))); }
/// <summary> /// Initializes a new instance of the PersistentDictionaryConverters /// class. This looks up the conversion types for /// <typeparamref name="TKey"/> and <typeparamref name="TValue"/>. /// </summary> public PersistentDictionaryConverters() { this.keyColumnConverter = new KeyColumnConverter(typeof(TKey)); this.valueColumnConverter = new ColumnConverter(typeof(TValue)); }
/// <summary> /// Retrieve a non-nullable DateTime /// </summary> /// <param name="sesid">The session to use.</param> /// <param name="tableid">The table to retrieve the value from.</param> /// <param name="columnid">The column containing the value.</param> /// <returns>A non-nullable DateTime constructed from the column.</returns> private static DateTime RetrieveColumnAsNonNullableDateTime(JET_SESID sesid, JET_TABLEID tableid, JET_COLUMNID columnid) { return(UnwrapNullableColumnValue <DateTime>(ColumnConverter <TColumn> .RetrieveColumnAsDateTime(sesid, tableid, columnid))); }