IModel.Relate method
Namespace: NextDesign.Core
Description
Returns an additional associated instance, associating the given model with the end of the specified field of this instance.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name You cannot specify null or an empty string. |
opposite | IModel | The associated model Cannot be null. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite If null or an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass |
Illegal operation | ExtensionInvalidOperationException | If the model itself is a deleted model or a temporary proxy If an inoperable field is specified in the field name - Product line feature assignment field - System. Core tagged fields - owning fields |
Constraint Violation | ExtensionIllegalFieldAccessException | If the associated model is incompatible with the data type of the specified field If the association violates the multiplicity constraint of the field The association violates the path constraint of the field case |
ExtensionInvalidModelException with an invalid model |