Table Adapter c++

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
MarcoGebras
Posts: 2
Joined: Tue 20 Aug 2019 18:16

Table Adapter c++

Post by MarcoGebras » Tue 20 Aug 2019 18:27

Hi,
I'm a new user of visual studio. I'm trying to develop software in a similar way I use to do in Delphi.
Is it possible to configure GridView (like a TableAdapter) in design time using dotConnect?
I'm using Visual Studio 2019, c++, RCL

Thanks,
Marco

Shalex
Site Admin
Posts: 8981
Joined: Thu 14 Aug 2008 12:44

Re: Table Adapter c++

Post by Shalex » Wed 21 Aug 2019 19:20

For the test purpose, we have successfully executed the following code with dotConnect for MySQL:

Code: Select all

	auto conn = gcnew Devart::Data::MySql::MySqlConnection();
	conn->ConnectionString = L"server=db-mysql-x64;port=3312;uid=root;pwd=root;database=test;";
	conn->Open();

	auto adapter = gcnew Devart::Data::MySql::MySqlDataAdapter(L"SELECT * FROM DEPT", conn);
	adapter->MissingSchemaAction = System::Data::MissingSchemaAction::AddWithKey;
	auto dataSet = gcnew System::Data::DataSet();
	adapter->Fill(dataSet, L"Departments");

MarcoGebras
Posts: 2
Joined: Tue 20 Aug 2019 18:16

Re: Table Adapter c++

Post by MarcoGebras » Fri 23 Aug 2019 21:45

my question is if it is possible tu use design time functionalities, like, data source wizard.
The code you post, works in the run time. I'm looking for design time.
Is it possible to use in c++ and visual studio?

Thanks

Shalex
Site Admin
Posts: 8981
Joined: Thu 14 Aug 2008 12:44

Re: Table Adapter c++

Post by Shalex » Sat 24 Aug 2019 13:21

dotConnect for MySQL doesn't include any design time components for C++ projects.

Post Reply