Click here to Skip to main content
15,921,542 members
Home / Discussions / C#
   

C#

 
GeneralRe: Geting the process that uses a file Pin
Martin#8-Feb-07 6:01
Martin#8-Feb-07 6:01 
GeneralRe: Geting the process that uses a file Pin
Luc Pattyn8-Feb-07 10:36
sitebuilderLuc Pattyn8-Feb-07 10:36 
GeneralRe: Geting the process that uses a file Pin
jiorn11-Feb-07 7:24
jiorn11-Feb-07 7:24 
QuestionGeneral Web Service Question Pin
Planker8-Feb-07 4:31
Planker8-Feb-07 4:31 
AnswerRe: General Web Service Question Pin
Ravi Bhavnani8-Feb-07 6:09
professionalRavi Bhavnani8-Feb-07 6:09 
Questiondatagrid-paging Pin
sanaziuse8-Feb-07 3:54
sanaziuse8-Feb-07 3:54 
AnswerRe: datagrid-paging Pin
ednrgc8-Feb-07 4:40
ednrgc8-Feb-07 4:40 
QuestionOpen Excel File Stored in Access Database Pin
Shaurya_Rastogi8-Feb-07 3:35
Shaurya_Rastogi8-Feb-07 3:35 
Question<script languaage="c#" runat="server">... Pin
acodman8-Feb-07 3:24
acodman8-Feb-07 3:24 
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 

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.