Пример #1
0
        protected override void FillDataSource(OleDbConnection connection, nwindDataSet dataSource) {
            var customerOrdersTableAdapter = new CustomerOrdersTableAdapter();
            customerOrdersTableAdapter.Connection = connection;
            customerOrdersTableAdapter.Fill(dataSource.CustomerOrders);

            var orderReportsTableAdapter = new OrderReportsTableAdapter();
            orderReportsTableAdapter.Connection = connection;
            orderReportsTableAdapter.Fill(dataSource.OrderReports);
        }
Пример #2
0
        protected override void FillDataSource(OleDbConnection connection, nwindDataSet dataSource)
        {
            var customerOrdersTableAdapter = new CustomerOrdersTableAdapter();

            customerOrdersTableAdapter.Connection = connection;
            customerOrdersTableAdapter.Fill(dataSource.CustomerOrders);

            var orderReportsTableAdapter = new OrderReportsTableAdapter();

            orderReportsTableAdapter.Connection = connection;
            orderReportsTableAdapter.Fill(dataSource.OrderReports);
        }