Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't delete row
Message
From
10/04/2007 18:19:13
 
 
To
10/04/2007 17:35:28
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01214017
Message ID:
01214201
Views:
10
Of course this whole CommandBuilder/TableAdapter issue all "goes to h*ll in a handbasket" if you're using Stored Procedures.

~~Bonnie




>Interesting that even my .Net 2.0 books don't talk about the TableAdapter. I'll look into some more.
>
>>As typical with most of .Net there are many ways. I know a lot of developers that shy away from the commandbuilder simply because they view it as a "blackbox". I used it back in version 1.0 but have not since the 1.1 framework was released. From what I remember it can be a bit testy.
>>
>>Some developers just manually create the sql and execute using a command object. You will find a number of data classes that use this approach and are generally geared toward OR mapping. Others prefer using dataAdapters and even generating typed datasets. Most of this is using the 1.1 framework.
>>
>>With 2.0 came the tableadapter that provides a wrapper around the dataAdapter layer. With VS 2005 you can use the TableAdapter configuration wizard. This allows you to use the query designer to create the sql select and it will generate the code to perform basic CRUD operations against the table. The table adapter can also contain multiple queries. In real world practice I find myself using both the tableadapter and command object to access data.
>>
>>I'm digging though some of my older projects that used the commandbuilder but so far I have not seen an example using the delete command. I have found select and update. I noticed in my code that when I changed the select statement and did a fill I called the RefreshSchema method prior to issuing updates.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform