/// <summary>
        /// Converts a SQLiteType to a .NET Type object
        /// </summary>
        /// <param name="t">The SQLiteType to convert</param>
        /// <returns>Returns a .NET Type object</returns>
        internal static Type SQLiteTypeToType(SQLiteType t)
        {
            if (t.Type != DbType.Object)
            {
                return(SQLiteConvert.DbTypeToType(t.Type));
            }

            return(_typeaffinities[(int)t.Affinity]);
        }
        /// <summary>
        /// Determines the data type of a column in a statement
        /// </summary>
        /// <param name="stmt">The statement to retrieve information for</param>
        /// <param name="i">The column to retrieve type information on</param>
        /// <param name="typ">The SQLiteType to receive the affinity for the given column</param>
        //    internal static void ColumnToType(SQLiteStatement stmt, int i, SQLiteType typ)
        //    {
        //      typ.Type = TypeNameToDbType(stmt._sql.ColumnType(stmt, i, out typ.Affinity));
        //    }

        /// <summary>
        /// Converts a SQLiteType to a .NET Type object
        /// </summary>
        /// <param name="t">The SQLiteType to convert</param>
        /// <returns>Returns a .NET Type object</returns>
        internal static Type SQLiteTypeToType(SQLiteType t)
        {
            if (t.Type == DbType.Object)
            {
                return(_affinitytotype[(int)t.Affinity]);
            }
            else
            {
                return(SQLiteConvert.DbTypeToType(t.Type));
            }
        }