InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Property Keywords

Class Definition Reference
Previous section           Next section
InterSystems: The power behind what matters   

Specifies the cardinality of this relationship property. Required for relationship properties. Not used for other properties.
To specify the cardinality of a relationship property, use the following syntax:
Relationship relname As classname [ Cardinality = cardinality; inverse = inverse ];
Where cardinality is one of the following:
This keyword specifies the cardinality of a relationship property.
The Cardinality keyword is required for relationship properties. It is ignored by non-relationship properties.
For more information on relationships, see “Defining and Using Relationships” in Defining and Using Classes.
There is no default. When you define a relationship, you must specify the Cardinality keyword.
Relationship Chapters As Chapter [ Cardinality = many; inverse = Book ];
See Also

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-10-18 05:16:51