/// <summary> /// Returns schema information for the data source of this <see cref="DbConnection"/> /// using the specified string for the schema name and the specified string array /// for the restriction values. /// </summary> /// <param name="collectionName">Specifies the name of the schema to return.</param> /// <param name="restrictionValues">Specifies a set of restriction values for the requested schema.</param> /// <returns>A <see cref="DataTable"/> that contains schema information.</returns> public override DataTable GetSchema(string collectionName, string[] restrictionValues) { if (collectionName == null) { collectionName = SchemaProvider.MetaCollection; } string[] restrictions = schemaProvider.CleanRestrictions(restrictionValues); MyCatSchemaCollection c = schemaProvider.GetSchema(collectionName, restrictions); return(c.AsDataTable()); }