473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

anyone using CommandBuilder to generate update logic at runtime?

What we've done so far in our web applications:
1. We have no datasets dragged-and-dropped in Visual Studio. They are all
defined in the code, generated at runtime.
2. when a user updates or hits a 'delete' button next to a row in a
datagrid, we call a webservice. In there, we coded insert, update & delete
functionality.

I'm tired of seeing all that update logic in our code. I am looking for a
way to have .NET generate its own update / delete / insert statements. BUT,
I don't want to use that DataAdapter Configuration Wizard because if we
change around a field in the db, everything breaks and there's too much
going on under the hood to fix it. If a query changes in our dataset, I
would like the update logic to automatically change as well. I've been
looking at CommandBuilder -- is this something good to use? In order to use
it, do I need to define the dataset at Design Time (visually drag it on to
the web service etc) ?

Any other suggestions would be appreciated
TY
Jason Shohet
Nov 15 '05 #1
1 2049
CommandBuilder isn't going to do this automatically. If you find it does,
let me know. :-) I'd use the DA Config Wiz. If you change a field, go back
through the wiz and tell it to regenerate. If you have classes that use
this as a independent object, it should be simple to go back and add/remove
the edits you make to that particular table.

Nick Harris, MCSD
http://www.VizSoft.net
" Jason Shohet" <as****@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl...
What we've done so far in our web applications:
1. We have no datasets dragged-and-dropped in Visual Studio. They are all defined in the code, generated at runtime.
2. when a user updates or hits a 'delete' button next to a row in a
datagrid, we call a webservice. In there, we coded insert, update & delete functionality.

I'm tired of seeing all that update logic in our code. I am looking for a
way to have .NET generate its own update / delete / insert statements. BUT, I don't want to use that DataAdapter Configuration Wizard because if we
change around a field in the db, everything breaks and there's too much
going on under the hood to fix it. If a query changes in our dataset, I
would like the update logic to automatically change as well. I've been
looking at CommandBuilder -- is this something good to use? In order to use it, do I need to define the dataset at Design Time (visually drag it on to
the web service etc) ?

Any other suggestions would be appreciated
TY
Jason Shohet

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Joao Santa Barbara | last post by:
hi all i need to work with the commandbuilder and with a transaction object how can i do this ???? thks JSB please donīt tell me that i have to do this ex:
10
by: Hank1234 | last post by:
Can I use one Data Adapter and one Command Builder to update amny tables? Currently in my data adapter I query two tables and fill them into two tables in a data set. When I make a change to a...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
1
by: Jeremy | last post by:
When executing myda.update(myds,"cert"). I get the message "The field 'Cert.DateofInspection' cannot contain a Null value because the Required property for this field is set to True. Enter a...
25
by: Mark Harrison | last post by:
I would like to try and build a queuing mechanism on top of Postgresql. Imagine an application where a large number of processes generate images and queue up thumbnail requests. A smaller number...
1
by: zoneal | last post by:
The following procedure does not Update the record(s). '------------------------------------------------------------------ Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As...
2
by: nannu | last post by:
m using this code :........................... ======================================================================= OleDbConnection con =new OleDbConnection...
1
by: gomathinayagam | last post by:
hai, am only beginer in c#... i am trying to connect database with webform. using a technique that the fields of the table and the controls in a form are named same...then i try get the controls...
3
by: ton | last post by:
Hi, I'm using AJAXPRO this works very well. What I want to do is to add new page elements at my web site without using a postback. And I do not mean listitems but a complete dialog. Let me...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.