ComponentResourceManager

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
RJordan
Posts: 14
Joined: Tue 07 Nov 2006 11:45
Location: Germany

ComponentResourceManager

Post by RJordan » Thu 16 Nov 2006 15:23

The command generator of mysqldatatable sometimes generates code in the InitializeComponent() part that looks like this:

System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(User));
this.mySqlConnection1 = new CoreLab.MySql.MySqlConnection();
this.mySqlDataTable1 = new CoreLab.MySql.MySqlDataTable();
this.mySqlDeleteCommand1 = new CoreLab.MySql.MySqlCommand();
this.mySqlInsertCommand1 = new CoreLab.MySql.MySqlCommand();
this.mySqlSelectCommand1 = new CoreLab.MySql.MySqlCommand();
this.mySqlUpdateCommand1 = new CoreLab.MySql.MySqlCommand();
...
//
// mySqlDeleteCommand1
//
this.mySqlDeleteCommand1.CommandText = "DELETE FROM testuser WHERE ((UserID = :Original_UserID))";
...
//
// mySqlInsertCommand1
//
this.mySqlInsertCommand1.CommandText = resources.GetString("mySqlInsertCommand1.CommandText");...

What is it with the resource string? They are not found at runtime and causes an error. And why is this defined for some strings (not for all)?

Kind regards,
Roger

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Fri 17 Nov 2006 13:30

What version of Visual Studio do you use?
Professional or Standard edition?
What version of MySQLDirect .NET do you use (Std, Pro, Mobile)?
Do you write class library (dll), executable application (exe), web project,
web project with dynamically compiled sources?

RJordan
Posts: 14
Joined: Tue 07 Nov 2006 11:45
Location: Germany

Post by RJordan » Sat 18 Nov 2006 20:18

- VS2005 Professional
- MySqlDirect 3.50.14 25.10.06 Pro
- develop web project without dynamically compiled source

The resource string are in the resource file of the aspx file.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Mon 20 Nov 2006 07:33

We cannot reproduce this behaviour. Please ascertain the circumstances when this take place.

Post Reply