TableAdapter Commands on PostgreSQL Direct.
Posted: Sat 12 Aug 2006 07:49
Good Day.
I created a form in Visual Studio 2005, Added a datagridview to databind it to a datasource
upon form load.
I created a dataset that contains different tables from different databases (SQL Server 2000, MS Access, Posgres 8.1) by dragging from the tables in the Server Explorer to the dataset.
Reviewing the Tables and the generated TableAdapter. I noticed that TableAdapters from SQL Server and MSAccess have generated the InsertCommand, UpdateCommand, DeleteCommand and SelectCommand, while the TableAdapter of Postgres has only SelectCommand and InsertCommand generated. And with that, I cannot call the TableAdapters' Update Method, it will generate and exception since the UpdateCommand and the Delete Command is not generated.
Data Binding on controls in VS2005 designer relies on BindingSource and TableAdapters, which i think makes it easy to add and update data compared to Data Adapters.
The Tables have simple structure, it has a primary key, other fields and contains data.
How can I solve this problem, I hope that PostGreSQL Direct can work fully with VS2005 TableAdapters.
Any advise and help would be greatly appreciated.
Thank you very Much.
I created a form in Visual Studio 2005, Added a datagridview to databind it to a datasource
upon form load.
I created a dataset that contains different tables from different databases (SQL Server 2000, MS Access, Posgres 8.1) by dragging from the tables in the Server Explorer to the dataset.
Reviewing the Tables and the generated TableAdapter. I noticed that TableAdapters from SQL Server and MSAccess have generated the InsertCommand, UpdateCommand, DeleteCommand and SelectCommand, while the TableAdapter of Postgres has only SelectCommand and InsertCommand generated. And with that, I cannot call the TableAdapters' Update Method, it will generate and exception since the UpdateCommand and the Delete Command is not generated.
Data Binding on controls in VS2005 designer relies on BindingSource and TableAdapters, which i think makes it easy to add and update data compared to Data Adapters.
The Tables have simple structure, it has a primary key, other fields and contains data.
How can I solve this problem, I hope that PostGreSQL Direct can work fully with VS2005 TableAdapters.
Any advise and help would be greatly appreciated.
Thank you very Much.