![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If you drag a db table to a component in vs.net the DataAdapter is automatically configured (select, delete, tablemappings, ...). Is it possible to do this in code. I don't want to use the CommandBuilder because the statements generated by this are not so nice. For instance the parameter name is @P1 and not @Person_ID or @Original_Person_ID. I would like to generate the source code for my accessors. Kris. |
#3
| |||
| |||
|
|
The use the dataadapter config wizard (commonly known as DACW). This article will help get you going: http://msdn.microsoft.com/library/de...andbuilder.asp "Kris Desmadryl" <kris.desmadrylN00SPM (AT) tenforce (DOT) com> wrote in message news:ul7L5yt0EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl... If you drag a db table to a component in vs.net the DataAdapter is automatically configured (select, delete, tablemappings, ...). Is it possible to do this in code. I don't want to use the CommandBuilder because the statements generated by this are not so nice. For instance the parameter name is @P1 and not @Person_ID or @Original_Person_ID. I would like to generate the source code for my accessors. Kris. |
#4
| |||
| |||
|
|
thx for the information Is it possible to approach this DACW in coding ? It would be nice if I could generate all parameters for all tables in my database by writing a small program I tried this by using the commandbuilder, but I have some problems with it. For instance the type is Int32 but the size is 0 and so on. Kris "Earl" <brikshoe (AT) newsgroups (DOT) nospam> wrote in message news:eeDPq5u0EHA.2040 (AT) tk2msftngp13 (DOT) phx.gbl... The use the dataadapter config wizard (commonly known as DACW). This article will help get you going: http://msdn.microsoft.com/library/de...andbuilder.asp "Kris Desmadryl" <kris.desmadrylN00SPM (AT) tenforce (DOT) com> wrote in message news:ul7L5yt0EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl... If you drag a db table to a component in vs.net the DataAdapter is automatically configured (select, delete, tablemappings, ...). Is it possible to do this in code. I don't want to use the CommandBuilder because the statements generated by this are not so nice. For instance the parameter name is @P1 and not @Person_ID or @Original_Person_ID. I would like to generate the source code for my accessors. Kris. |
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |