Пример #1
0
 /// <summary>
 /// DisCover all the DataBase Columns and put them in Table object, return <see cref="IEnumerable{T}"/> contain all Columns
 /// </summary>
 /// <param name="table">the Table object</param>
 public static IEnumerable <SQLiteTableColumn> TableColumns(SQLiteTable table) =>
 table.GetObjectArray2D(table.ExecuteReaderQuery(table.Query.GetTableColumns))
 .Select(column => new SQLiteTableColumn(column[1].ToString(), column[2].ToString()));