示例#1
0
文件: Form1.cs 项目: zhimaqiao51/docs
        private NorthwindDataSet.CustomersRow GetCurrentRowInDB(NorthwindDataSet.CustomersRow RowWithError)
        {
            this.customersTableAdapter.Fill(tempCustomersDataTable);

            NorthwindDataSet.CustomersRow currentRowInDb =
                tempCustomersDataTable.FindByCustomerID(RowWithError.CustomerID);

            return(currentRowInDb);
        }
示例#2
0
        private NorthwindDataSet.CustomersRow GetCurrentRowInDB(NorthwindDataSet.CustomersRow RowWithError)
        {
            // Load data from the Customers table to tempCustomersDataTable.
            customersTableAdapter.Fill(tempCustomersDataTable);

            // Get the row for the given customerID
            NorthwindDataSet.CustomersRow currentRowInDb =
                tempCustomersDataTable.FindByCustomerID(RowWithError.CustomerID);

            return(currentRowInDb);
        }