Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
AnswerRe: <script languaage="c#" runat="server">... Pin
Guffa8-Feb-07 3:29
Guffa8-Feb-07 3:29 
GeneralRe: <script languaage="c#" runat="server">... Pin
acodman8-Feb-07 5:15
acodman8-Feb-07 5:15 
AnswerRe: <script languaage="c#" runat="server">... Pin
Zach Burnett8-Feb-07 8:16
Zach Burnett8-Feb-07 8:16 
QuestionHow to know when an image was successfully loaded into a picturebox from url Pin
Subterranean8-Feb-07 3:22
Subterranean8-Feb-07 3:22 
AnswerRe: How to know when an image was successfully loaded into a picturebox from url Pin
Ravi Bhavnani8-Feb-07 6:11
professionalRavi Bhavnani8-Feb-07 6:11 
AnswerRe: How to know when an image was successfully loaded into a picturebox from url Pin
Patrick Etc.8-Feb-07 11:55
Patrick Etc.8-Feb-07 11:55 
GeneralRe: How to know when an image was successfully loaded into a picturebox from url Pin
Subterranean9-Feb-07 1:33
Subterranean9-Feb-07 1:33 
QuestionDatabase Routines Pin
Wayne Phipps8-Feb-07 2:58
Wayne Phipps8-Feb-07 2:58 
Hi Guys,

I always get stuck into thinking about the best way / most correct way of coding something.

I'm writting an application which uses a databasse.

One of table is used to store configuration information used (as example) by the configuration class/object.

Now at the moment, my database code including it's creation is all contained within a static class named Database.

My questions are:
1) Is having a static class for database routines a good idea? There is a potential for the application to be multi-threaded although each thread would most likely access different tables from the database.

2) Where is it best to code the rotine to load the configuration from the database?
I could have a method like Database.LoadConfig( Config config ) where an singleton instance of Config is passed to the Database --or-- I could have a method in the Config Class like Config.Load().

Any thoughts and comments appreciated.

Regards

Wayne Phipps
____________

Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog

AnswerRe: Database Routines Pin
Colin Angus Mackay8-Feb-07 3:33
Colin Angus Mackay8-Feb-07 3:33 
GeneralRe: Database Routines Pin
Wayne Phipps9-Feb-07 5:02
Wayne Phipps9-Feb-07 5:02 
QuestionExporting DataGrid to Excel Pin
pssuresh8-Feb-07 2:52
pssuresh8-Feb-07 2:52 
AnswerRe: Exporting DataGrid to Excel Pin
Sandeep Akhare8-Feb-07 3:11
Sandeep Akhare8-Feb-07 3:11 
GeneralRe: Exporting DataGrid to Excel Pin
pssuresh8-Feb-07 3:24
pssuresh8-Feb-07 3:24 
GeneralRe: Exporting DataGrid to Excel Pin
Sandeep Akhare8-Feb-07 3:44
Sandeep Akhare8-Feb-07 3:44 
GeneralRe: Exporting DataGrid to Excel [modified] Pin
pssuresh8-Feb-07 3:56
pssuresh8-Feb-07 3:56 
QuestionBtrieve Database Pin
coolestCoder8-Feb-07 2:35
coolestCoder8-Feb-07 2:35 
QuestionCast to a Generic Type at runtime Pin
Florian Storck8-Feb-07 2:30
Florian Storck8-Feb-07 2:30 
QuestionDelegate Help Pin
JeremyLM8-Feb-07 2:29
JeremyLM8-Feb-07 2:29 
AnswerRe: Delegate Help Pin
aSarafian8-Feb-07 3:23
aSarafian8-Feb-07 3:23 
GeneralRe: Delegate Help Pin
JeremyLM8-Feb-07 4:04
JeremyLM8-Feb-07 4:04 
QuestionUpdating and removing nodes from a treeview Pin
sharpiesharpie8-Feb-07 2:12
sharpiesharpie8-Feb-07 2:12 
AnswerRe: Updating and removing nodes from a treeview Pin
Ravi Bhavnani8-Feb-07 6:16
professionalRavi Bhavnani8-Feb-07 6:16 
QuestionAdding compiled help to a C# project Pin
Antony M Kancidrowski8-Feb-07 1:58
Antony M Kancidrowski8-Feb-07 1:58 
AnswerRe: Adding compiled help to a C# project Pin
Sandeep Akhare8-Feb-07 3:14
Sandeep Akhare8-Feb-07 3:14 
GeneralRe: Adding compiled help to a C# project Pin
Antony M Kancidrowski8-Feb-07 4:24
Antony M Kancidrowski8-Feb-07 4:24 

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.