Page 1 of 1

Table Adapter c++

Posted: Tue 20 Aug 2019 18:27
by MarcoGebras
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


Re: Table Adapter c++

Posted: Wed 21 Aug 2019 19:20
by Shalex
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;";

	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");

Re: Table Adapter c++

Posted: Fri 23 Aug 2019 21:45
by MarcoGebras
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?


Re: Table Adapter c++

Posted: Sat 24 Aug 2019 13:21
by Shalex
dotConnect for MySQL doesn't include any design time components for C++ projects.