Dataset error when upgrading from version 3.5 to 4
Dataset error when upgrading from version 3.5 to 4
hi,
I have upgraded my project from version 3.5 to 4.
I remove all tableAdapters from the dataset and forms, remove the Corelab reference and add the 2 new dll from corelab.
But when I change the custom tool property to MySqlDataSetGenerator, I get an error on the dataset.designer
The error is "sub 'CreateColumns' couldn't be 'Overrides', because it's not a member of the base class" on the folllowing declaration
_
Protected Overrides Sub CreateColumns()
End Sub
CreateColumns is a member of DbDataTable but a boolean parameters has to be passed to this sub. "CreateColumns(byval value as Boolean)"
I have tested to creat a new project and add a new dataset but I receive the same error.
I use Visual Studio 2005 (Visual Basic) and Corelab 4.0.13
Thanks for your help
I have upgraded my project from version 3.5 to 4.
I remove all tableAdapters from the dataset and forms, remove the Corelab reference and add the 2 new dll from corelab.
But when I change the custom tool property to MySqlDataSetGenerator, I get an error on the dataset.designer
The error is "sub 'CreateColumns' couldn't be 'Overrides', because it's not a member of the base class" on the folllowing declaration
_
Protected Overrides Sub CreateColumns()
End Sub
CreateColumns is a member of DbDataTable but a boolean parameters has to be passed to this sub. "CreateColumns(byval value as Boolean)"
I have tested to creat a new project and add a new dataset but I receive the same error.
I use Visual Studio 2005 (Visual Basic) and Corelab 4.0.13
Thanks for your help
On my project, I have changed the custom tool property because I used Corelab V3.55.
But I tested to create a new test project and start directly with v4.0. In this test project, so when I use Dataset wizard, the custom property is set to MySQLDataSetGenerator.
I have searched where CreateColumns sub is used in my references, I found it in 3 references.
-Corelab.Common.DbDataTable.CreateColumns(Boolean)
-Corelab.Common.DbLoader.CreateColumns()
-Corelab.MySQL.MySQLLoader.CreateColumns()
The problem seems to come from the reference Corelab.Common.DbDataTable.CreateColumns(Boolean) wich uses a Boolean parameter ?
But I tested to create a new test project and start directly with v4.0. In this test project, so when I use Dataset wizard, the custom property is set to MySQLDataSetGenerator.
I have searched where CreateColumns sub is used in my references, I found it in 3 references.
-Corelab.Common.DbDataTable.CreateColumns(Boolean)
-Corelab.Common.DbLoader.CreateColumns()
-Corelab.MySQL.MySQLLoader.CreateColumns()
The problem seems to come from the reference Corelab.Common.DbDataTable.CreateColumns(Boolean) wich uses a Boolean parameter ?
At the end of the wizard, when the dataset is created.
If I open the DataSet1.Designer.vb and insert a Boolean parameter to the sub CreateColumns, the error is cleared! But of course, it will appear again each time I execute the custom tool.
This declaration is working
Protected Overrides Sub CreateColumns(byval value as boolean)
Endd sub
If I open the DataSet1.Designer.vb and insert a Boolean parameter to the sub CreateColumns, the error is cleared! But of course, it will appear again each time I execute the custom tool.
This declaration is working
Protected Overrides Sub CreateColumns(byval value as boolean)
Endd sub
I have removed corelab components, and remove all references and reinstall again but the error appears again.
On my computer, after installed the last version of corelab MySqlDirect (v 4.0.13.0), I have the following versions
CoreLab.Data version 4.0.11.0
CoreLab.MySql version 4.0.13.0
I just tested to re-install an old version of corelab components, I have no error for the following versions!
CoreLab.Data version 4.0.8.0
CoreLab.MySql version 4.0.9.0
On my computer, after installed the last version of corelab MySqlDirect (v 4.0.13.0), I have the following versions
CoreLab.Data version 4.0.11.0
CoreLab.MySql version 4.0.13.0
I just tested to re-install an old version of corelab components, I have no error for the following versions!
CoreLab.Data version 4.0.8.0
CoreLab.MySql version 4.0.9.0
CoreLab.Data.Design and CoreLab.MySql.Design assemblies have the same versions as CoreLab.Data and CoreLab.MySql. Assemblies loaded are also correct!
The problem is that with version 4.0.13 a boolean parameters is requested for this sub
Protected Overridable Sub CreateColumns(ByVal throwOnEmptySchemaTable As Boolean)
Member of : CoreLab.Common.DbDataTable
but with version 4.0.8, no parameter is needed
Protected Overridable Sub CreateColumns()
Member of : CoreLab.Common.DbDataTable
Do you know why using version 4.0.13 the Sub CreateColumns use the parameter throwOnEmptySchemaTable ?
Because other subs CreateColumns don't use Boolean parameters
CoreLab.Common.DbLoader.CreateColumns()
CoreLab.MySql.MySqlLoader.CreateColumns()
The problem is that with version 4.0.13 a boolean parameters is requested for this sub
Protected Overridable Sub CreateColumns(ByVal throwOnEmptySchemaTable As Boolean)
Member of : CoreLab.Common.DbDataTable
but with version 4.0.8, no parameter is needed
Protected Overridable Sub CreateColumns()
Member of : CoreLab.Common.DbDataTable
Do you know why using version 4.0.13 the Sub CreateColumns use the parameter throwOnEmptySchemaTable ?
Because other subs CreateColumns don't use Boolean parameters
CoreLab.Common.DbLoader.CreateColumns()
CoreLab.MySql.MySqlLoader.CreateColumns()