Click here to Skip to main content
15,907,001 members
Home / Discussions / Database
   

Database

 
GeneralADO Over the Internet Pin
laphijia15-Jun-02 2:13
laphijia15-Jun-02 2:13 
GeneralRe: ADO Over the Internet Pin
Thesisus20-Jun-02 2:22
Thesisus20-Jun-02 2:22 
GeneralProblem with Recordset(ADO) Pin
Lizp14-Jun-02 22:15
Lizp14-Jun-02 22:15 
GeneralRe: Problem with Recordset(ADO) Pin
Mazdak16-Jun-02 5:58
Mazdak16-Jun-02 5:58 
GeneralRe: Problem with Recordset(ADO) Pin
Lizp16-Jun-02 15:23
Lizp16-Jun-02 15:23 
GeneralRe: Problem with Recordset(ADO) Pin
Mazdak16-Jun-02 21:00
Mazdak16-Jun-02 21:00 
GeneralObject Role Modeling Pin
gicio13-Jun-02 1:07
gicio13-Jun-02 1:07 
QuestionCan Microsoft beat Apple? Pin
gicio12-Jun-02 5:54
gicio12-Jun-02 5:54 
I have a fundamental question about
the way .NET handles the object orientated way of
persistence. I am coming from JAVA and WebObjects (Apple)
World and I am looking for a convenient way of working
with objects without seeing any SQL statements only
objects. I have used that approach for years on the
WebObjects Platform (Enterprise Object Framework) and in
Java recently (Container Managed Persistence). I am
looking for something like that in the Microsoft world.

As far as I understand Microsoft does not distinguish
between the Object Model and the Relational Model. The
main difference is that the Object model allows n : m
relationships and the Relational does not allow them. Here
a small example to visualize the problem:

Example:
There is a Patient object with following Attributes

String patientGUID;
String name;
Int age;
Hashtable diseases; (or some other Container like
Collection or Array)


And there is a Disease Object

String diseaseGUID;
String name;


In the object Model there is relation between Patient and
Disease where the patient has his diseases but on the
other site one disease can belong to 1..* patients. (n :
m)

That n : m relationship can not exist within a relational
database without a link table that contains the
connections between the tables: Patient and Disease.

Now, I would like to connect the object Model containing
TWO Entities (Patient, Disease) with the relational
database (containing THREE tables). Then I want to work
with my objects; e.g. create new diseases connect them to
existing patients by putting the diseases into the array
or create new Patients and connect them with already
existing diseases or just change a Patients name. When I
am finished I just want to say SAVECHANGES and the
database is updated accordingly including all link table
entries.

So all I have to care about are my objects and the
relations between them, some invisible layer does all the
dirty work like building SQL, converting the data types
and caching. So if I fetch a Patient with a specified GUID
I do not have to care about fetching his diseases. They
are fetched automatically. If there are too many Diseases
I do not care some kind of algorithm handles that problem
in such a way that if I have to search all of them for
something they are simply there. They are loaded on demand
(lazy evaluation)

Supposing that the disease has a further connection with
some DiseaseType Object/Table and that table has an
attribute/column "Description" I can access it by typing
the following code:

TextField1.Text = currentDisease.type().description()

Please note that to retrieve the description value I did
only fetch the Patient. The diseases and its types were
fetched automatically.

Is something like that possible or am I excepting too much
of the .NET?



Pawel
AnswerRe: Can Microsoft beat Apple? Pin
Matt Gullett12-Jun-02 6:24
Matt Gullett12-Jun-02 6:24 
GeneralRe: Can Microsoft beat Apple? Pin
gicio13-Jun-02 4:18
gicio13-Jun-02 4:18 
GeneralODBC Pin
12-Jun-02 5:50
suss12-Jun-02 5:50 
GeneralADO/MDAC/CDO2000 Memory Leak Pin
[James Pullicino]12-Jun-02 4:51
[James Pullicino]12-Jun-02 4:51 
GeneralSystem DNS database Pin
Vanting11-Jun-02 3:17
Vanting11-Jun-02 3:17 
GeneralRe: System DNS database Pin
Gethsus13-Jun-02 4:09
Gethsus13-Jun-02 4:09 
GeneralProblem with ODBC in Windows95 Pin
8-Jun-02 22:30
suss8-Jun-02 22:30 
GeneralRe: Problem with ODBC in Windows95 Pin
Mazdak9-Jun-02 3:05
Mazdak9-Jun-02 3:05 
QuestionHow access Indexing Server with ADO.NET Pin
serberwww5-Jun-02 21:00
serberwww5-Jun-02 21:00 
AnswerRe: How access Indexing Server with ADO.NET Pin
Sebastian Weber6-Jun-02 2:53
Sebastian Weber6-Jun-02 2:53 
GeneralDAO and Visual Studio .Net Pin
5-Jun-02 5:49
suss5-Jun-02 5:49 
GeneralATL7 OLEDB Consumer templates & stored procedures Pin
Jörgen Sigvardsson5-Jun-02 2:35
Jörgen Sigvardsson5-Jun-02 2:35 
GeneralSearching in a date range with sql Pin
Tim Rymer4-Jun-02 9:14
Tim Rymer4-Jun-02 9:14 
GeneralRe: Searching in a date range with sql Pin
Ed Gadziemski4-Jun-02 13:43
professionalEd Gadziemski4-Jun-02 13:43 
GeneralRe: Searching in a date range with sql Pin
Paul Watson20-Jun-02 2:25
sitebuilderPaul Watson20-Jun-02 2:25 
QuestionIs there a way to get the names of the keys that each table has in ADO? Pin
Bart-Man3-Jun-02 11:22
Bart-Man3-Jun-02 11:22 
AnswerSolution to my problem Pin
Bart-Man4-Jun-02 4:22
Bart-Man4-Jun-02 4:22 

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.