Click here to Skip to main content
15,898,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: double quotes (!!?!?!?!?!) Pin
$iva11-Dec-02 22:23
$iva11-Dec-02 22:23 
GeneralRe: double quotes (!!?!?!?!?!) Pin
Christian Graus11-Dec-02 22:45
protectorChristian Graus11-Dec-02 22:45 
GeneralRe: double quotes (!!?!?!?!?!) Pin
SimonS11-Dec-02 22:36
SimonS11-Dec-02 22:36 
General.NET Framework OR Mapping Pin
behrang Javaaherian11-Dec-02 22:08
behrang Javaaherian11-Dec-02 22:08 
GeneralRe: .NET Framework OR Mapping Pin
SimonS11-Dec-02 22:28
SimonS11-Dec-02 22:28 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian11-Dec-02 22:40
behrang Javaaherian11-Dec-02 22:40 
GeneralRe: .NET Framework OR Mapping Pin
Kannan Kalyanaraman11-Dec-02 22:32
Kannan Kalyanaraman11-Dec-02 22:32 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian11-Dec-02 22:55
behrang Javaaherian11-Dec-02 22:55 
Suppose you want to write an Adress Directory Application. In Object Oriented environment you have a Class called Party. All the information that both companies and persons have goes here. and you have to class Person and Company derived from party that have their own information. in Database you can have two diferrent aproaches:
1. you have a Party table which have all the field that person and company requires then when you have a person , fields which are for company are set to null.
2. you have a Party table contains only common field and another Person and Company tables for storing type dependent information on them ( a one to one relation between party and these two table also required)
in any of these aproaches the object model are the same but the senario in database completely differs and this will influence the code.
OR mapping means mapping between objects in memory and persistence places ( like Relational Database System). We have a object graph in memory and we want to map this object graph into Database and vice versa we have a some database row and want to create Object graph from it!
a good OR mapping completely seperate the Persistecy of objects from the business logics.
Suppose the example agian. if we have a good OR Mapping framework we can simple write the code bellow :
Company comp = Company.getCompany();
comp.Name = "Microsoft";
Person pers = Person.getPerson();
pers.Name = "Bill";
pers.Family = "Gates";
pers.Company = comp;
PersistentLayer.AddForSave(pers);
PersistentLayer.AddForSave(comp);
PersistentLayer.Save();
so the code is not filled with any SELECT or other Sql Commands. All the Sql commands are in one place and PersitentLayer Engine use some logic to create them.
I hope it was useful for you.
Regards
Behrang
GeneralRe: .NET Framework OR Mapping Pin
leppie12-Dec-02 8:06
leppie12-Dec-02 8:06 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian13-Dec-02 19:07
behrang Javaaherian13-Dec-02 19:07 
GeneralRe: .NET Framework OR Mapping Pin
leppie13-Dec-02 23:32
leppie13-Dec-02 23:32 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian13-Dec-02 23:56
behrang Javaaherian13-Dec-02 23:56 
GeneralRe: .NET Framework OR Mapping Pin
leppie14-Dec-02 0:17
leppie14-Dec-02 0:17 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian14-Dec-02 1:02
behrang Javaaherian14-Dec-02 1:02 
GeneralRe: .NET Framework OR Mapping Pin
leppie14-Dec-02 1:14
leppie14-Dec-02 1:14 
GeneralRe: .NET Framework OR Mapping Pin
leppie14-Dec-02 1:29
leppie14-Dec-02 1:29 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian14-Dec-02 1:33
behrang Javaaherian14-Dec-02 1:33 
GeneralRe: .NET Framework OR Mapping Pin
MikeDoerfler12-Dec-02 2:42
MikeDoerfler12-Dec-02 2:42 
GeneralRe: .NET Framework OR Mapping Pin
behrang Javaaherian12-Dec-02 3:57
behrang Javaaherian12-Dec-02 3:57 
GeneralRe: .NET Framework OR Mapping Pin
MikeDoerfler12-Dec-02 4:33
MikeDoerfler12-Dec-02 4:33 
Generallaunching file search window programmatically Pin
Anonymous11-Dec-02 17:44
Anonymous11-Dec-02 17:44 
GeneralRe: launching file search window programmatically Pin
Kannan Kalyanaraman11-Dec-02 18:45
Kannan Kalyanaraman11-Dec-02 18:45 
GeneralRe: launching file search window programmatically Pin
AJ7012-Dec-02 9:16
sussAJ7012-Dec-02 9:16 
GeneralResources- I'm lost! Pin
peterchen11-Dec-02 12:29
peterchen11-Dec-02 12:29 
GeneralRe: Resources- I'm lost! Pin
Nick Parker11-Dec-02 16:54
protectorNick Parker11-Dec-02 16:54 

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.