Click here to Skip to main content
15,902,817 members
Home / Discussions / Database
   

Database

 
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 
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 
Using the class files in each of the projects is how the application is currently managed. The problem is that inside each of the object files inside each of the projects, linkage to the clsDatabase class is maintained inside the context of the project. So Project1.ObjectClassA 's private database connection object is a Project1.clsDatabase. Project2.ObjectClassB 's private database connection object is a Project2.clsDatabase.
My logical design goes like this:
UI->App Layer|->ObjectAList|->  ObjectClassA  |->clsDatabase|->ADO.NET|->DB1
             |
             |->ObjectBList|->  ObjectClassB  |->clsDatabase|->ADO.NET|->DB1


I don't want to have to maintain 2 logical channels to my database. I think I can elaborate better through code

At the Application Layer:

I have a "Mediator" class that handles Network connectivity and Business Logic Management. Mediator contains an instance of "Project1List" and "Project2List"

using Project1;
using Project2;

clsProject1List prjList1;
clsProject2List prjList2;
clsProject1.clsDatabase mDatabase1;
clsProject2.clsDatabase mDatabase2;

public clsMediator()
{
    string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data           
                               Source=mydatabase.mdb;";
    string dataProvider = "OLEDB";
    mDatabase1 = new clsDatabase(connectionString, dataProvider);
    mDatabase2 = new clsDatabase(connectionString, dataProvider);
}

As you can see, I have to fetch two db connections from the connection pool when I should actually only be using one. Imagine if this were a module that aggregated 20 or 30 different busines modules that all connected to the same corporate database. .......WAY too convoluted.

The logical design I desire is:
UI->App Logic |>ObjectAList|>ObjectA|
              |                     |>clsDatabase->ADO.NET->Database
              |>ObjectBList|>ObjectB|

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 
AnswerRe: Easy, easy select question Pin
Edbert P2-Oct-06 20:26
Edbert P2-Oct-06 20:26 
QuestionTable clone on same database. Pin
theJazzyBrain2-Oct-06 2:46
theJazzyBrain2-Oct-06 2:46 

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.