GetOleDbSchemaTablewith OleDbSchemaGuid.Tablesfield returns tables (including name names) defined inside the directory, while an array of objects refers to this construct
new object { "table_catalog", "table_schema", "table_name", "table_type" }
OleDbSchemaGuidIt consists of three fields: OleDbSchemaGuid.Tables, OleDbSchemaGuid.Columnsand OleDbSchemaGuid.Primary_Keys. To get table properties, you can use the field OleDbSchemaGuid.Columns:
connection.GetOleDbSchemaTable(OleDbSchemaGuid.Columns,
new object[] { "table_catalog", "table_schema", "table_name", "column_name" });
, :
var columns = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Columns,
new object[] { null, "schema_name", null, null });
, :
var columns = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Columns,
new object[] { null, "schema_name", "table_name", null });