You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 11. Collections of structural types (complex types or primitive types)
321
321
322
322
Collections of entity types are generally preferable to collections of structual types because collections of structural types must be updated as a single unit, meaning that they are overwritten entirely by new contents, rather than be updated relative to the existing contents.
323
-
324
-
Sometimes, structural collection properties are added to a type and then scenarios are discovered later that require a collection of entity types. In these cases, there are two options forward:
325
-
326
-
### 11.1 Side-by-side collection properties
327
-
328
-
If there's an entity type `foo` that has a collection of `bar`s:
323
+
Sometimes, structural collection properties are added to a type and then scenarios are discovered later that require a collection of entity types.
324
+
Take the following model with an entity type `foo` that has a collection of `bar`s:
329
325
330
326
```xml
331
327
<EntityTypeName="foo">
@@ -341,7 +337,12 @@ If there's an entity type `foo` that has a collection of `bar`s:
341
337
<PropertyName="prop2"Type="Edm.String" />
342
338
</ComplexType>
343
339
```
344
-
and a scenario arises that requires, for example, to remove individual `bar`s from the collection, the model can be updated to have two collections side-by-side:
340
+
and a scenario arises that requires, for example, to remove individual `bar`s from the collection.
341
+
There are two options forward:
342
+
343
+
### 11.1 Side-by-side collection properties
344
+
345
+
The model can be updated to have two collections side-by-side:
0 commit comments