473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CRUD with ADO.NET

Hello,

I have a C# problem that I hope you could help me with.

I'm making a program where I need data from a database using ADO.NET.

The problem is that I can't figure out how to retrieve the data without
using a datagrid (I presume that a dataset is the correct solution, when I
also need to CRUD (Create-Read-Update-Delete).

I need to use the data in my system instead of displaying it in the GUI, but
I haven't found any examples that could help me.

In other words: I need to read data from a database and storage it in a
arraylist (or whatever) with the possibility to CRUD using ADO.NET.

best regards

Torben
Nov 15 '05 #1
3 3716
Hi,

I guess what you are looking for is a DataSet. To cut a long story short, a
dataset is an inmemory disconnected data representation.

You could get all your data into a dataset, work with the
datatables,datacolums and datarows in the dataset to do CRUD.

For more info on how to use the Dataset, Pl lookup the reference ( I guess
there is no point in my repeating what is already published :) )

-Diws
"Torben Madsen" <as*****@privat.dk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hello,

I have a C# problem that I hope you could help me with.

I'm making a program where I need data from a database using ADO.NET.

The problem is that I can't figure out how to retrieve the data without
using a datagrid (I presume that a dataset is the correct solution, when I
also need to CRUD (Create-Read-Update-Delete).

I need to use the data in my system instead of displaying it in the GUI, but I haven't found any examples that could help me.

In other words: I need to read data from a database and storage it in a
arraylist (or whatever) with the possibility to CRUD using ADO.NET.

best regards

Torben

Nov 15 '05 #2
Torben wrote:
The problem is that I can't figure out how to retrieve
the data without using a datagrid (I presume that a
dataset is the correct solution, when I
also need to CRUD (Create-Read-Update-Delete).
Not necessarily, many advocates the use of "disconnected" sets. In that case
you simply read the data, check what you have to do, and make those changes
in another call.
I need to use the data in my system instead of
displaying it in the GUI, but I haven't found
any examples that could help me.


Since you're danish, maybe this compendium can
help you, though it's written in swedish... ;-)

http://www.eki.mdh.se/kurshemsidor/i...endier/DB3.pdf

It doesn't solve your question per se, since it doesn't use connected sets
exactly as you've asked for, but it maybe can give you some hints, and at
least some alternatives.

// Bjorn A
Nov 15 '05 #3
tusind tak og mange gode guldbajere Bjorn ;o)
-med lidt modifikationer fik jeg det til at virke :o)

(thanks a bunch Bjorn, its worked with some modifications)

best regards
Torben

"Bjorn A" <bj*************@DoNotSpam.hotmail.com> skrev i en meddelelse
news:uQ**************@TK2MSFTNGP10.phx.gbl...
Torben wrote:
The problem is that I can't figure out how to retrieve
the data without using a datagrid (I presume that a
dataset is the correct solution, when I
also need to CRUD (Create-Read-Update-Delete).
Not necessarily, many advocates the use of "disconnected" sets. In that

case you simply read the data, check what you have to do, and make those changes in another call.
I need to use the data in my system instead of
displaying it in the GUI, but I haven't found
any examples that could help me.


Since you're danish, maybe this compendium can
help you, though it's written in swedish... ;-)

http://www.eki.mdh.se/kurshemsidor/i...endier/DB3.pdf

It doesn't solve your question per se, since it doesn't use connected sets
exactly as you've asked for, but it maybe can give you some hints, and at
least some alternatives.

// Bjorn A

Nov 15 '05 #4

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

Similar topics

1
332
by: amber | last post by:
Hello, I'm looking for some guidance . I'm new to VB.NET and SQL server, and have been working on a project for a while. I have been reading up on implementing CRUD operations using stored...
0
4078
by: Marie Ramos | last post by:
I'm looking for some good basic samples of Winforms C# CRUD models. The app is pretty simple, so I'm not looking for a super-sophisticated framework. Can anyone recommend some good books or online...
4
2700
by: lkamal | last post by:
What is CRUD? Read at http://lkamal.blogspot.com/
0
2479
by: RickmanCR750 | last post by:
People, I have an old (php3?) script which does CRUD over a mySQL db. I've upgraded to php5 and PostgreSQL (on Linux), and the script bombs (multiple errors). I'm working through it at the moment,...
3
3520
by: =?Utf-8?B?dGhlamFja29mYWxs?= | last post by:
Hi. Is there a way to generate the CRUD stored procedures for a table using the Visual Studio 2005? I tried to do it in a new database project, but I can't find a way to do it. Can VS 2005...
13
2693
by: John Kraft | last post by:
Friends, I'm working on some crud stuff, and I was looking for opinions on the subject. Below, I have pasted some VERY simple sample code. Class2 is a "traditional" crud type object. In a...
11
4329
by: walterbyrd | last post by:
With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax and non-Ajax solutions abound. With Python, finding such library, or apps. seems to be much more difficult to find. I...
0
1370
by: CBFalconer | last post by:
For the past week I have been collecting data on the relative incidence of crud in the 18 newsgroups I monitor. Here crud is defined as anything that gets caught by my filters, and good is...
1
3678
by: nospam | last post by:
Hello all, Using Net 2 0 and VS 2005 and MSSQL 2000... I am a newbie to ASP. I am trying to created a screen to manipulate a table - CRUD commands. The problem is the checkbox to...
0
7233
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
7135
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
7342
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,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.