System.Data.Common.DbCommandBuilder.GetSchemaTable(System.Data.Common.DbCommand)

Here are the examples of the csharp api class System.Data.Common.DbCommandBuilder.GetSchemaTable(System.Data.Common.DbCommand) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

View license
protected override DataTable GetSchemaTable(DbCommand sourceCommand)
    {
      DataTable schemaTable = base.GetSchemaTable(sourceCommand);

      foreach (DataRow row in schemaTable.Rows)
        if (row["BaseSchemaName"].Equals(sourceCommand.Connection.Database))
          row["BaseSchemaName"] = null;

      return schemaTable;
    }

2. Example

Project: referencesource
Source File: DBCommandBuilder.cs
View license
private void BuildCache(bool closeConnection, DataRow dataRow, bool useColumnsForParameterNames) { //n ..... /n //View Source file for more details /n }