Thanks for Prodip's quick response!
Hi Alan,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to generate data accessing
code automatically according to particular database table. If there is any
misunderstanding, please feel free to let me know.
I think you mean the DataAdapter's SELECT, UPDATE, INSERT and DELETE
commands in this issue. We can use the DataAdapter Configuration Wizard to
accomplish this. You can drag a DataAdapter object from the toolbox and the
wizard will be shown. We just use the query builder to generate the SELECT
command, and the other commands will be generated in later steps of the
wizard.
If you need to generate the commands at runtime using code, and working on
a SQL server as database, we can also use SqlCommandBuilder class to
achieve this. For more information, please check the following link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdatasqlclientsqlcommandbuilderclasstopic.asp
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."