System.Data.Common.DataAdapter.Fill(System.Data.DataTable, System.Data.IDataReader)

Here are the examples of the csharp api class System.Data.Common.DataAdapter.Fill(System.Data.DataTable, System.Data.IDataReader) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
protected override int Fill(DataTable dataTable, IDataReader dataReader)
        {
            currentSchema = dataReader.GetSchemaTable();

            try
            {
                dataTable.Columns.CollectionChanged += Columns_CollectionChanged;

                AddExtendedProperties(new[] { dataTable }, dataReader);
                return base.Fill(dataTable, dataReader);
            }
            finally
            {
                dataTable.Columns.CollectionChanged -= Columns_CollectionChanged;
            }
        }