@@ -45,7 +45,7 @@ Do one of the following:
45
45
46
46
Define the new entity type:
47
47
``` xml
48
- <EntityType name =" bankAccountInformation " >
48
+ <EntityType name =" bankAccountDetail " >
49
49
<Property Name =" accountNumber" Type =" Edm.string" />
50
50
<Property Name =" routingNumber" Type =" Edm.string" />
51
51
</EntityType >
@@ -54,37 +54,37 @@ Define the new entity type:
54
54
Add a contained navigation from user to the new entity type:
55
55
``` xml
56
56
<EntityType name =" user" >
57
- <NavigationProperty Name =" bankAccountInformation " Type =" bankAccountInformation " ContainsTarget =" true" />
57
+ <NavigationProperty Name =" bankAccountDetail " Type =" bankAccountDetail " ContainsTarget =" true" />
58
58
</EntityType >
59
59
```
60
60
61
61
#### Option 2: Contain the new type in an entity set elsewhere, and add a navigation property to the new type on the existing type.
62
62
63
63
Define the new entity type:
64
64
``` xml
65
- <EntityType name =" bankAccountInformation " >
65
+ <EntityType name =" bankAccountDetail " >
66
66
<Property Name =" accountNumber" Type =" Edm.string" />
67
67
<Property Name =" routingNumber" Type =" Edm.string" />
68
68
</EntityType >
69
69
```
70
70
71
71
Contain the new entity type in an entity set or singleton:
72
72
``` xml
73
- <EntitySet Name =" bankAccountInformations " EntityType =" bankAccountInformation " >
73
+ <EntitySet Name =" bankAccountDetails " EntityType =" bankAccountDetail " >
74
74
```
75
75
76
76
Add a navigation from user to the new type:
77
77
``` xml
78
78
<EntityType name =" user" >
79
- <NavigationProperty Name =" bankAccountInformation " Type =" bankAccountInformation " />
79
+ <NavigationProperty Name =" bankAccountDetail " Type =" bankAccountDetail " />
80
80
</EntityType >
81
81
```
82
82
83
83
#### Option 3: Contain the new type in an entity set elsewhere, and add a navigation property to the existing type on the new type.
84
84
85
85
Define the new entity type, with a navigation to the user:
86
86
``` xml
87
- <EntityType name =" bankAccountInformation " >
87
+ <EntityType name =" bankAccountDetail " >
88
88
<Property Name =" accountNumber" Type =" Edm.string" />
89
89
<Property Name =" routingNumber" Type =" Edm.string" />
90
90
<NavigationProperty Name =" user" Type =" microsoft.graph.user" />
0 commit comments