Curt Emich wrote:
> I'm trying to create a dataset. I start by creating a connection. Then I
> create and configure a data adapter. Finally, I select "generate dataset"
> after right-clicking on the data adapter. It creates a dataset and puts it
> under the form, just like the connection and the adapter.
>
> When I try to compile the code GENERTED BY THE IDE, it bombs. Here's the
> code:
>
> protected System.Data.OleDb.OleDbCommand oleDbSelectCommand1;
>
> protected System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
>
> protected System.Data.OleDb.OleDbCommand oleDbUpdateCommand1;
>
> protected System.Data.OleDb.OleDbCommand oleDbDeleteCommand1;
>
> protected System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
>
> protected TrainOfThought.DataSet1 dataSet11;
>
>
>
> It bombs on the last line. It says that the type or namespace "DataSet1"
> does not exist. I never said it did. Does anyone know why .NET would bomb
> on its own code? What can I do to fix this?
Did you add the generated dataset to your project?
Frans.
--
Get LLBLGen Pro, the new O/R mapper for .NET:
http://www.llblgen.com
My .NET Blog:
http://weblogs.asp.net/fbouma
Microsoft C# MVP