Click here to Skip to main content
16,014,705 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGeneric query database and sort out returned DataSet? Pin
toptone7828-Jul-06 9:43
toptone7828-Jul-06 9:43 
AnswerRe: Generic query database and sort out returned DataSet? Pin
Ista28-Jul-06 9:57
Ista28-Jul-06 9:57 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7828-Jul-06 11:31
toptone7828-Jul-06 11:31 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista28-Jul-06 18:41
Ista28-Jul-06 18:41 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 5:22
toptone7829-Jul-06 5:22 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 7:11
Ista29-Jul-06 7:11 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 7:24
Ista29-Jul-06 7:24 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 8:50
toptone7829-Jul-06 8:50 
So by 1:1 you mean 1 player in the db equals one instance of player class in the code right?
So there would pretty much be a class for each table (or useful table that is not just foreign keys).

I was concerned by using stored procedures to insert and update since in C# i would have to sort out the paramaters for the variables, so if the db changed i would have to change the stored proc and have to change the code as well, wheras if i just used insert and update statements with ExecuteNonQuery of an SqlCommand object i would only have to change the code. At the moment in my Database class i am using an SqlDataAdapter to fill a DataSet and returning that dataset for SELECT statements. For other SQL statements i just execute the SQL.

As for the generic class, could this only handle like table, e.g. ones like you say that use an IDENTITY column or could it handle and table?
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 12:11
toptone7829-Jul-06 12:11 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 15:41
Ista29-Jul-06 15:41 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7830-Jul-06 0:25
toptone7830-Jul-06 0:25 
GeneralRe: Generic query database and sort out returned DataSet? [modified] Pin
Ista31-Jul-06 4:48
Ista31-Jul-06 4:48 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone781-Aug-06 4:53
toptone781-Aug-06 4:53 
QuestionWant no postback on imagebutton click Pin
Vijaykumar Rajaram28-Jul-06 7:34
Vijaykumar Rajaram28-Jul-06 7:34 
AnswerRe: Want no postback on imagebutton click Pin
Ista28-Jul-06 8:44
Ista28-Jul-06 8:44 
AnswerRe: Want no postback on imagebutton click Pin
eggsovereasy28-Jul-06 8:51
eggsovereasy28-Jul-06 8:51 
QuestionAccess denied - urgent Pin
dansoft28-Jul-06 6:58
dansoft28-Jul-06 6:58 
AnswerRe: Access denied - urgent Pin
ToddHileHoffer28-Jul-06 7:03
ToddHileHoffer28-Jul-06 7:03 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:16
dansoft28-Jul-06 7:16 
GeneralRe: Access denied - urgent [modified] Pin
ToddHileHoffer28-Jul-06 7:27
ToddHileHoffer28-Jul-06 7:27 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:29
dansoft28-Jul-06 7:29 
GeneralRe: Access denied - urgent Pin
ToddHileHoffer28-Jul-06 7:35
ToddHileHoffer28-Jul-06 7:35 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:40
dansoft28-Jul-06 7:40 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 8:19
dansoft28-Jul-06 8:19 
AnswerRe: Access denied - urgent Pin
Ista28-Jul-06 7:35
Ista28-Jul-06 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.