![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, A section in Data Sources window is mystifying to me. In the case of my code the Data Sources window shows my references to the data access layer. First here is what I see in my Data Sources window ... ([+] means expandable, [-] means expanded, [x] is a checked checkbox, "QmsDataLayer" is the name of the referenced data layer.) \\ {} QmsDataLayer [+] DataSet1.lkpDeviceTypeDataTable [+] DataSet1.lkpLaborCostCodeRateDataTable [+] DataSet1.lkpOptionCategoryDataTable [+] DataSet1.tbl050OptionDataTable {} QmsDataLayer.DataSet1TableAdapters [-] lkpDeviceTypeTableAdapter <<< What is this? [x] ClearBeforeFill // 1.) Why is only one TableAdapter represented in this section? \\ {} QmsDataLayer.DataSet1TableAdapters [-] lkpDeviceTypeTableAdapter // The references as shown in the Class View for this project shows all the TableAdapters under "{} DataSet1TableAdapters"... \\ [-] QmsUI [-] References [-] QmsDataLayer [-] {} QmsDataLayer [+] Class1 [+] DataSet1 [-] {} DataSet1TableAdapters [+] lkpDeviceTypeTableAdaper [+] lkpLaborCostCodeRateTableAdaper [+] lkpOptionCategoryTableAdaper [+] tbl050OptionTableAdaper // In other words, why don't I see this in the Data Sources window?... \\ {} QmsDataLayer.DataSet1TableAdapters [-] lkpDeviceTypeTableAdapter [-] lkpLaborCostCodeRateTableAdapter [-] lkpOptionCategoryTableAdapter [-] tbl050OptionTableAdapter // 2.) The one TableAdapter present has the option "ClearBeforeFill" selected. With the others not present does that mean that I can only have this feature available for the one TableAdapter? \\ {} QmsDataLayer.DataSet1TableAdapters [-] lkpDeviceTypeTableAdapter <<< What is this? [x] ClearBeforeFill // Then there is this contradiction to consider. In my form(s) the TableAdapters are identified as shown below and each of these has its property "ClearBeforeFill" set to "True" \\ DataSet11.LkpDeviceTypeTableAdapter1 DataSet11.lkpLaborCostCodeRateTableAdapter1 DataSet11.lkpOptionCategoryTableAdapter1 DataSet11.tbl050OptionTableAdapter1 // 4.) This brings me to the question... why the section "{} QmsDataLayer.DataSet1TableAdapters" even present in the Data Sources window? My first guess would be that it is brought in with the reference to QmsDataLayer, but the class view of QmsDataLayer looks like this... \\ QmsDataLayer [-] {} QmsDataLayer [+] Class1 [+] DataSet1 [-] {} DataSet1TableAdapters [+] lkpDeviceTypeTableAdaper [+] lkpLaborCostCodeRateTableAdaper [+] lkpOptionCategoryTableAdaper [+] tbl050OptionTableAdaper [+] ... [+] ... // The presence of all the TableAdapters under "{} DataSet1TableAdapters" brings me back to question #1 about why there is only one TableAdapter shown under "{} QmsDataLayer.DataSet1TableAdapters". It is not because I haven't refreshed the Data Source window. Does anyone have any explanation for all this? |
|
Thank you, dbuchanan |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |