Click here to Skip to main content
15,911,035 members
Home / Discussions / Database
   

Database

 
GeneralRe: Column Length Pin
Mark Salsbery4-Oct-06 11:49
Mark Salsbery4-Oct-06 11:49 
QuestionMs access and Scope identity Pin
Vipin.d4-Oct-06 2:12
Vipin.d4-Oct-06 2:12 
AnswerRe: Ms access and Scope identity Pin
Alaric_4-Oct-06 19:45
professionalAlaric_4-Oct-06 19:45 
QuestionProblem in Implementing DataAccess Mechanism Pin
Jay_se4-Oct-06 0:45
Jay_se4-Oct-06 0:45 
AnswerRe: Problem in Implementing DataAccess Mechanism Pin
Jay_se5-Oct-06 19:04
Jay_se5-Oct-06 19:04 
QuestionUrgent :: SQL Server Connection Problem Pin
harshActsw3-Oct-06 11:41
harshActsw3-Oct-06 11:41 
AnswerRe: Urgent :: SQL Server Connection Problem Pin
mr_lasseter3-Oct-06 13:45
mr_lasseter3-Oct-06 13:45 
QuestionDesign Issue: Multiple definitions of ADO.NET abstraction classes [modified] Pin
Alaric_3-Oct-06 10:00
professionalAlaric_3-Oct-06 10:00 
Hi. I've had an issue come up in a program that I am working on with multiple projects in the same solution. The way I handle database connectivity is to encapsulate my database connection and my dataset in two separate class files, clsDatabase and clsQueryResults. clsDatabase evaluates a given connectionString and dataProvider to determine whether the app is using an OLEDB, SQLServer, MySQL, or Oracle database and uses the appropriate connections (i.e. OleDbConnection for Access, SQLConnection for SQLServer)

...Anyway, each of the projects that are being put together into this program were developed discretely, so each of them needed to be able to communicate with the database. Thus, clsDatabase and clsQueryResults are located in each of the programs. This causes a problem in my application because it means that I have to maintain 2 separate instances of clsDatabase (both of which connect to the same db file) which is very undesirable. What I would like to do is pull clsDatabase and clsQueryResults out of the individual project files and place them in their own library. However, for security reasons, the db methods located in clsDatabase have been given access type "internal." I would like to keep this library exposed to my projects while not disclosing it to the UI or Application layer. Does anyone know of any way to accomplish this?

For clarity:
This is how my logic looks:
UI->Application->|Project1->|Project1ClassFile->|clsDatabase->|ADO.NET
                 |
                 |Project2->|Project2ClassFile->|clsDatabase->|ADO.NET


This is how I want it to look:
UI->Application->|Project1->|Project1ClassFile->|
                 |                              |->clsDatabase->|ADO.NET
                 |Project2->|Project2ClassFile->| 

AnswerRe: Design Issue: Multiple definitions of ADO.NET abstraction classes Pin
Eric Dahlvang4-Oct-06 3:41
Eric Dahlvang4-Oct-06 3:41 
GeneralRe: Design Issue: Multiple definitions of ADO.NET abstraction classes Pin
Alaric_4-Oct-06 18:32
professionalAlaric_4-Oct-06 18:32 
GeneralRe: Design Issue: Multiple definitions of ADO.NET abstraction classes Pin
Eric Dahlvang5-Oct-06 4:10
Eric Dahlvang5-Oct-06 4:10 
QuestionType of table generated is system Pin
Sushant Duggal3-Oct-06 2:15
Sushant Duggal3-Oct-06 2:15 
AnswerRe: Type of table generated is system Pin
Colin Angus Mackay3-Oct-06 5:31
Colin Angus Mackay3-Oct-06 5:31 
Questionradio button in data grid control Pin
abdelhameed813-Oct-06 2:06
abdelhameed813-Oct-06 2:06 
AnswerRe: radio button in data grid control Pin
mr_lasseter3-Oct-06 13:47
mr_lasseter3-Oct-06 13:47 
QuestionGenerating the INSERT script Pin
Brendan Vogt3-Oct-06 1:28
Brendan Vogt3-Oct-06 1:28 
AnswerRe: Generating the INSERT script Pin
Colin Angus Mackay3-Oct-06 5:28
Colin Angus Mackay3-Oct-06 5:28 
GeneralRe: Generating the INSERT script Pin
Brendan Vogt3-Oct-06 20:56
Brendan Vogt3-Oct-06 20:56 
GeneralRe: Generating the INSERT script Pin
Colin Angus Mackay3-Oct-06 21:37
Colin Angus Mackay3-Oct-06 21:37 
GeneralRe: Generating the INSERT script Pin
Brendan Vogt3-Oct-06 21:45
Brendan Vogt3-Oct-06 21:45 
GeneralRe: Generating the INSERT script Pin
Brendan Vogt4-Oct-06 21:23
Brendan Vogt4-Oct-06 21:23 
GeneralRe: Generating the INSERT script Pin
Colin Angus Mackay4-Oct-06 21:39
Colin Angus Mackay4-Oct-06 21:39 
QuestionADO.Net Problem getting schema information: AllowDBNull vs. IsNullable Pin
JSchumann3-Oct-06 1:22
JSchumann3-Oct-06 1:22 
QuestionRe: ADO.Net Problem getting schema information: AllowDBNull vs. IsNullable Pin
JSchumann7-Oct-06 0:32
JSchumann7-Oct-06 0:32 
QuestionEasy, easy select question [modified] Pin
Vodstok2-Oct-06 6:48
Vodstok2-Oct-06 6:48 

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.