AXForum  
Zurück   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Kennwort vergessen?
Registrieren Forum Rules Hilfe Benutzerliste Heutige Beiträge Suchen Alle Foren als gelesen markieren

 
 
Themen-Optionen Thema durchsuchen Ansicht
Alt 18.12.2012, 02:11   #1  
Blog bot ist offline
Blog bot
Участник
 
25.646 / 848 (80) +++++++
Registriert seit: 28.10.2006
ax-erp: Understanding the RelationshipType Enumeration [AX 2012]
Источник: http://microsoft-dynamics-ax-erp.blo...nshiptype.html
==============


Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

When you add a node under AOT > Data Dictionary > Tables > YourTable > Relations, you can set the value of the RelationshipTypeproperty of the new relation. The list of possible values for the RelationshipType property is the list of elements in the RelationshipTypeenum. The meaning of each element in the RelationshipType enum is described in this topic.

Description of Elements

The following table describes the elements of the RelationshipType property.

Element name
Description
Automatic inference
NotSpecified
Often the default value for the RelationshipTypeproperty.
When the RelationshipType property has the valueNotSpecified, the system infers an appropriate value. The system infers the value in the following sequence:
  1. Specialization
  2. Link
  3. Composition
  4. Aggregation
  5. Association
For example, if the criteria for both Composition andAggregation are met, the system infers Composition. This is true because Composition occurs earlier in the list.
Specialization
Applies only to table inheritance, to relationships between base and derived tables.
The system sets the RelationshipType property toSpecialization whenever table inheritance is involved.
Link
Is a non-relational relationship. Link requires that the Validate property be set to No.
This type of relationship supports navigation between forms that list many records from a table and forms that provide detail fields for one record from the table.
Link is meant only to support the migration of extended data type (EDT) link relations for upgrade to Microsoft Dynamics AX 2012 from earlier versions of the product. Migration tools create this type relationship, but you must not.
Composition
Is a stronger type of Aggregation. A table must not have more than one Composition relation. For example, a building is composed of rooms, and a given room cannot exist in more than one building.
If the criteria for Composition are met, but you manually assign the value of Aggregation or Association, the system leaves the value as Aggregation or Association.
Aggregation
Is appropriate when the child table is considered to be subordinate to the entity of the parent table.
The system infers Aggregation when either of the following is true:
  • The parent table has a delete action node that is defined to use this relation node.
  • Any of the foreign key fields for this relation in the child table have their Mandatory property set toYes.
If the criteria for Aggregation are met, but you manually assign the value of Association, the system leaves the value as Association.
Association
The concept of a standard foreign key.
You must set the RelationshipType property toAssociation if the system does not set the value of property to anything, and both Aggregation andComposition are inappropriate.






Источник: http://microsoft-dynamics-ax-erp.blo...nshiptype.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Alt 18.12.2012, 13:25   #2  
lvan ist offline
lvan
Участник
Benutzerbild von lvan
Лучший по профессии 2014
 
858 / 82 (4) ++++
Registriert seit: 15.04.2011
Blog-Einträge: 1
Вам не кажется, что этого индуса уже давно пора убрать из блогов?
Alt 14.01.2017, 23:18   #3  
ski ist offline
ski
Участник
 
35 / 12 (1) ++
Registriert seit: 27.05.2009
? В чем смысл свойств для Relation?
Подскажите, пожалуйста, какой смысл в свойствах RelationshipType, Role и EntityRelationshipRole для Relation таблицы? Т.е. как их заполнять вполне понятно, но зачем? Например, в чем изменится поведение системы, если я для RelationshipType поставлю неправильное значение свойства?
 

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
ax-erp: Debug BP errors in Dynamics AX 2012 Blog bot DAX Blogs 0 14.12.2012 23:11
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
ax-erp: Creating SSRS-Reports in Dynamics AX 2012 – What’s no longer possible in AX-reports Blog bot DAX Blogs 0 18.07.2012 12:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Gehe zu

Рейтинг@Mail.ru
Alle Zeitangaben in WEZ +3. Es ist jetzt 19:38 Uhr.
Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.