Globals in Custom OR Mapping
 
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Globals in Custom OR Mapping Expand / Collapse
Author
Message
Posted 2009-05-12 02:09:10


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3283
Posted 2009-05-13 19:37:00
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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]
Post #3307
Posted 2009-05-14 01:32:00


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3315
Posted 2009-05-15 01:13:19
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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]
Post #3329
Posted 2009-05-15 01:32:03


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 2010-08-11 16:02:44
Posts: 338, Visits: 890
This is ridiculous. How could I miss it and!

Anyway, thanks for the help.


My Blog: http://dnagir.blogspot.com
Post #3332
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 4:40

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0,156. 7 queries. Compression Disabled.