|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2010-08-11 16:02:44
Posts: 338,
Visits: 890
|
|
Hi,
I'm reading HowToGuides.pdf from Eco5 and just wondering of how Globals node can be used.
The description is:
Globals - Defines global attributes that apply to the entire mapping file.
I don't really understand what it means.
Can you give me couple of samples?
Thanks,
Dmitriy.
My Blog: http://dnagir.blogspot.com
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-08-23 23:54:43
Posts: 1 228,
Visits: 1 374
|
|
There are two settings that can be defined "globally":
"ImplicitAliasInFeatures" and "ImplicitColumnInFeatures"
If you specify
<ORMapping ImplicitColumnInFeatures="true">
in your xml-file, you don't have to specify column names for attributes and singlelinks that have the same column names as the attribute/singlelink name
<ORMapping ImplicitAliasInFeatures="true">
means that you don't have to specify the alias for attributes and singlelinks if the class has only one alias.
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2010-08-11 16:02:44
Posts: 338,
Visits: 890
|
|
Hi Jonas,
Thanks.
These are very useful ones. It will allow to make XML file much less verbose.
Cheers.
My Blog: http://dnagir.blogspot.com
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-08-23 23:54:43
Posts: 1 228,
Visits: 1 374
|
|
and they have been there since ECO2... the doc in the howto pdf is "stolen" from the doc that was originally published in the delphi-docs for the custom OR mapping...
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2010-08-11 16:02:44
Posts: 338,
Visits: 890
|
|
|
|
|