TableAdapter hiding
-
Hi I am using TableAdapters in my middle layer. Now I want to hide them from my UI code. The IDE offers only 2 possible access specifiers - Public and Friend. When I set the access specifier to Friend, the compiler complains that the methods in the table adapter generated code that return a strongly typed data table cannot be exposed. The error is as follows: ********** Error start ************ Error 21 'GetConfigDetails' cannot expose type 'Vigi.DTSysConfigDataTable' outside the project through class 'DTSysConfigTableAdapter'. ********** Error end ************ where GetConfigDetails is the method in the generated code and DTSysConfigTableAdapter is the tableadapter class generated by the IDE. The strongly typed dataset and the class that is calling it both reside in the same project (hence assembly, I assume) I am returning only the class object from the middle tier. Any idea how I can hide the dataset(with tableadapters) from the outside world and not get these types of errors?
Shreekar