Inaccessible due to it's protection level
I have picked up a project from someone else and cannot get it to compile.
The solution is a web application containing two class libraries. When compiling, I am getting an error which reads 'fulfilmentDAL.FulfilmentSchemaDataSetTableAdapter s.FULFILMENT_VERSIONSTableAdapter.Connection' is inaccessible due to its protection level and have tried to search on Google for an answer - found nothing of any real use.
The error points to the following code, with the error on the "Connection" for the second line.
FULFILMENT_VERSIONSTableAdapter VersionsAdapter = new FULFILMENT_VERSIONSTableAdapter();
VersionsAdapter.Connection = new System.Data.OracleClient.OracleConnection(connectionString);
By right-clicking on the FULFILMENT_VERSIONSTableAdapter and going to the definition, we get
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapt erDesigner, Microsoft.VSDesigner" +
", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class FULFILMENT_VERSIONSTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.OracleClient.OracleDataAdapter _adapter;
private global::System.Data.OracleClient.OracleConnection _connection;
private global::System.Data.OracleClient.OracleCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public FULFILMENT_VERSIONSTableAdapter() {
this.ClearBeforeFill = true;
}
...snip...
I can't see anything that appears to be particularly wrong with the code that I am seeing and hope that someone is able to offer some guidance on this.
Thanks in advance for any help.
__________________
Regards,
Sean
|