Association element: Assignment_Resource (ProjectServerData service)
Last modified: March 09, 2015
In this article
Definition
Attributes
Parent element
Child elements
The Assignment_Resource_Resource_Assignments association relates assignments to a resource and relates a resource to its assignments.
|
Attribute |
Value |
Description |
|---|---|---|
|
Name |
Assignment_Resource_Resource_Assignments |
Identifies the entity types and the navigation properties that form the two-way association for assignments and resources. In the first half of the name, Assignment is the entity type and Resource is the navigation property. In the second half of the name, Resource is the entity type and Assignments is the navigation property. |
The Assignment_Resource_Resource_Assignments association element contains two End elements that represent opposite ends of the association. The Role attribute is a lookup key that enables a navigational property to specify the direction in the association. The Multiplicity attribute refers to the entity type. Multiplicity indicates the number of entities that can be related at each end of the association: zero or one (0..1), or many (*). The Microsoft .NET implementation of OData uses 0..1 when the navigational property points to a single entity, rather than to an entity set.
|
Role |
Type |
Multiplicity |
Description |
|---|---|---|---|
|
Assignment_Resource |
* |
There can be many assignments that correspond to a resource. |
|
|
Resource_Assignments |
0..1 |
There is one resource that corresponds to a collection of assignments. |
One end of the association is the Assignment entity, and the other end is the Resource entity. The Assignment entity type contains the Resource navigation property, where the FromRole defines Assignment_Resource as the start of the association to get the collection of assignments that are associated with a resource. Similarly, the Resource entity type contains the Assignments navigation property, where the FromRole defines Resource_Assignments as the start of the association to get the resource that is associated with a collection of assignments.