Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerSolved! Pin
Luis Alonso Ramos4-Oct-05 5:42
Luis Alonso Ramos4-Oct-05 5:42 
AnswerRe: Displaying an owned form when main form is shown Pin
mav.northwind4-Oct-05 7:07
mav.northwind4-Oct-05 7:07 
QuestionRemoting URI question ? Pin
Member 127995794-Oct-05 5:10
Member 127995794-Oct-05 5:10 
AnswerRe: Remoting URI question ? Pin
S. Senthil Kumar4-Oct-05 6:07
S. Senthil Kumar4-Oct-05 6:07 
QuestionAutocompletion Pin
PaulaM4-Oct-05 5:07
PaulaM4-Oct-05 5:07 
AnswerRe: Autocompletion Pin
Daniel Grunwald4-Oct-05 5:54
Daniel Grunwald4-Oct-05 5:54 
Questionwav file + c# Pin
g00fyman4-Oct-05 3:26
g00fyman4-Oct-05 3:26 
Questionhandling table SQL in 1 class? Pin
mpw_4-Oct-05 2:34
mpw_4-Oct-05 2:34 
How is SQL generally handled? I'm building my first application for windows using c# and have just finished up the base class for the application forms to inherit from.

Next, I'm wondering how to handle the SQL (connection, selects, inserts, updates, deletes) and wondering if these should all go into there own class. One class per table or something like that as opposed to having each form use it's own set of SQL. ex: Customer form loads a grid using customer table. Customer search populates a listbox from customer table and displays this in a dialog. Customer edit takes an existing record (or allows the creation of a new record). 3 seperate forms. Should 1 class handle the customer SQL or would you handle that individually in each of the 3 forms? (frmGrid, frmSearch, frmEdit) I'm concerned that if anything changes (and it probably will) within the table, I'd need to search through each form that uses that table to handle mod's.

Thanks for any guidance you can offer!




AnswerRe: handling table SQL in 1 class? Pin
Wjousts4-Oct-05 3:26
Wjousts4-Oct-05 3:26 
GeneralRe: handling table SQL in 1 class? Pin
mpw_4-Oct-05 3:45
mpw_4-Oct-05 3:45 
AnswerRe: handling table SQL in 1 class? Pin
g00fyman4-Oct-05 3:31
g00fyman4-Oct-05 3:31 
GeneralRe: handling table SQL in 1 class? Pin
mpw_4-Oct-05 4:11
mpw_4-Oct-05 4:11 
QuestionForm Inheritance Pin
PHDENG814-Oct-05 2:08
PHDENG814-Oct-05 2:08 
AnswerRe: Form Inheritance Pin
spif20014-Oct-05 2:10
spif20014-Oct-05 2:10 
GeneralRe: Form Inheritance Pin
PHDENG814-Oct-05 2:21
PHDENG814-Oct-05 2:21 
GeneralRe: Form Inheritance Pin
PHDENG814-Oct-05 2:31
PHDENG814-Oct-05 2:31 
GeneralRe: Form Inheritance Pin
spif20014-Oct-05 2:32
spif20014-Oct-05 2:32 
Questionhi all Pin
magnifique4-Oct-05 1:44
magnifique4-Oct-05 1:44 
AnswerRe: hi all Pin
Guffa4-Oct-05 2:06
Guffa4-Oct-05 2:06 
QuestionDeriving a class variable from a string Pin
MrEyes4-Oct-05 1:39
MrEyes4-Oct-05 1:39 
AnswerRe: Deriving a class variable from a string Pin
Robert Rohde4-Oct-05 2:05
Robert Rohde4-Oct-05 2:05 
QuestionStandard Deviation Graph?? Pin
parvinder sehrawat4-Oct-05 1:34
parvinder sehrawat4-Oct-05 1:34 
QuestionHandling .class files in C# Pin
Dsypher4-Oct-05 1:07
Dsypher4-Oct-05 1:07 
AnswerRe: Handling .class files in C# Pin
g00fyman4-Oct-05 3:19
g00fyman4-Oct-05 3:19 
AnswerRe: Handling .class files in C# Pin
Daniel Grunwald4-Oct-05 5:56
Daniel Grunwald4-Oct-05 5:56 

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.