GetOleDbSchemaTable
with OleDbSchemaGuid.Tables
field 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" }
OleDbSchemaGuid
It consists of three fields: OleDbSchemaGuid.Tables
, OleDbSchemaGuid.Columns
and 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 });