Click here to Skip to main content
15,911,476 members
Home / Discussions / C#
   

C#

 
QuestionHow should I implement throttling an application's bandwidth using c#? [modified] Pin
suchnight2-Oct-06 15:31
suchnight2-Oct-06 15:31 
AnswerRe: How should I implement throttling an application's bandwidth using c#? Pin
Nader Elshehabi2-Oct-06 16:00
Nader Elshehabi2-Oct-06 16:00 
QuestionHow to print Form ? Pin
hdv2122-Oct-06 11:15
hdv2122-Oct-06 11:15 
AnswerRe: How to print Form ? Pin
Nader Elshehabi2-Oct-06 12:46
Nader Elshehabi2-Oct-06 12:46 
AnswerRe: How to print Form ? Pin
S. Senthil Kumar2-Oct-06 23:50
S. Senthil Kumar2-Oct-06 23:50 
GeneralRe: How to print Form ? Pin
hdv2123-Oct-06 1:19
hdv2123-Oct-06 1:19 
GeneralRe: How to print Form ? Pin
S. Senthil Kumar3-Oct-06 1:25
S. Senthil Kumar3-Oct-06 1:25 
QuestionDesign issue with unexpected requirement [modified] Pin
Alaric_2-Oct-06 10:53
professionalAlaric_2-Oct-06 10:53 
(first.....finally. For some reason the forum was making me re-verify my email address. Took like 2 hours for the confirmation msg to reach my inbox)

Anyway...I have a personal project going right now where my application links into several different modules that I've already made. The issue I have is that I have a standard way of handling database connectivity. I encapsulate my database connection and my result set into 2 classes: clsDatabase and clsQueryResults. For each of the individual projects, I've included these 2 classes and made the manipulation methods (i.e. open, close, beginTransaction, commit, rollback, ExecuteQuery) internal for security reasons. But now I have multiple definitions of these files located in each of the 3 modules that interface with the same database. I don't want to maintain each of them in their individual contexts. I want to be able to pull the clsDatabase and clsQueryResults out into a distinct component, but I am stuck on maintaining the integrity of the database. Once the classes are removed from the components, they can no longer access the internal methods located in these classes and making them public is not an option. Does anyone have suggestions to solve this issue?

[edit] To Clarify:
I would like clsDatabase to still be exposed to each of my projects, but not to the UI. Currently clsDatabase is maintained inside each of the projects and I would like to pull it out so I don't have to maintain multiple concurrent database connections to the same database inside the same instance of the program that can potentially attempt to manipulate data in the same table. So, I would like to pull clsDatabase and clsQueryResults out of each of the projects, place them in their own logical layer between my projects and ADO.NET and allow the projects to make direct calls to them with the caveat that they cannot be exposed to the UI. Does anyone know of an elegant solution to this issue? (Feel free to completely dispose of my logical design if you can formulate something that would work)



-- modified at 3:53 Tuesday 3rd October, 2006
QuestionThree Questions - Restricted Window & Forms's Order Level & Chart Pin
digitalhand2-Oct-06 9:24
digitalhand2-Oct-06 9:24 
AnswerRe: Three Questions - Restricted Window & Forms's Order Level & Chart Pin
Andrew Rissing2-Oct-06 9:58
Andrew Rissing2-Oct-06 9:58 
AnswerRe: Three Questions - Restricted Window & Forms's Order Level & Chart Pin
Nader Elshehabi2-Oct-06 14:18
Nader Elshehabi2-Oct-06 14:18 
AnswerRe: Three Questions - Restricted Window & Forms's Order Level & Chart Pin
digitalhand4-Oct-06 2:51
digitalhand4-Oct-06 2:51 
QuestionFriends...I need some help Pin
OMalleyW2-Oct-06 9:05
OMalleyW2-Oct-06 9:05 
AnswerRe: Friends...I need some help Pin
Nader Elshehabi2-Oct-06 12:56
Nader Elshehabi2-Oct-06 12:56 
QuestionWriting redirected output from an unmanaged executable to a windows form control Pin
erikash2-Oct-06 7:36
erikash2-Oct-06 7:36 
AnswerRe: Writing redirected output from an unmanaged executable to a windows form control Pin
Nader Elshehabi2-Oct-06 13:25
Nader Elshehabi2-Oct-06 13:25 
AnswerRe: Writing redirected output from an unmanaged executable to a windows form control Pin
umseker2-Oct-06 15:28
umseker2-Oct-06 15:28 
GeneralRe: Writing redirected output from an unmanaged executable to a windows form control Pin
erikash2-Oct-06 21:07
erikash2-Oct-06 21:07 
QuestionPrecompiled or runtime eval? Pin
spin vector2-Oct-06 7:14
spin vector2-Oct-06 7:14 
AnswerRe: Precompiled or runtime eval? Pin
Guffa2-Oct-06 8:49
Guffa2-Oct-06 8:49 
GeneralRe: Precompiled or runtime eval? Pin
spin vector2-Oct-06 10:27
spin vector2-Oct-06 10:27 
Questionicodecompiler Pin
waheed awan2-Oct-06 7:00
waheed awan2-Oct-06 7:00 
AnswerRe: icodecompiler [modified] Pin
samtam2-Oct-06 22:21
samtam2-Oct-06 22:21 
QuestionP2P messaging and file sharing Pin
asamay2-Oct-06 6:53
asamay2-Oct-06 6:53 
AnswerRe: P2P messaging and file sharing Pin
User 66582-Oct-06 7:03
User 66582-Oct-06 7:03 

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.