K
Create a base profile in the OBD table. And by doing that, to form SQL requests. For example, we' a table info on the tables.CREATE TABLE info
(
ID int identity (1, 1) primary key
,NameTable varchar(50)
,NameColumn varchar(50)
)
When the annex is launched, we shall read this table and ask for other tables. For example, we download the table to DataTable with the name infoTable:string command = "SELECT [ID] ";
foreach (DataRow row in infoTable.Rows)
{
command = command + ",[" + row[2].ToString() + "]";
}
command = command + " FROM [" + row[1].ToString() + "]";
Ultimately, the command receives a type request:SELECT [ID], [NameColumn1], [NameColumn2] FROM [NameTable]
And so on... The table in the OBD system is changed, the description is changed, the queries are developed differently.