Details
-
Question
-
Status: Open
-
Major
-
Resolution: Unresolved
-
V2 2.0.11
-
None
-
None
Description
How can I order the properties or fields in the $metadata file in Olingo2?
At the moment there is alphabetic order between the properties inside metadata file.
<EntityType Name="Condition"> <Key><PropertyRef Name="Id"/></Key> <Property Name="ActionId" Type="Edm.String" Nullable="false" MaxLength="255"/> <Property Name="Deleted" Type="Edm.Byte" Nullable="false"/> <Property Name="Id" Type="Edm.Int32" Nullable="false"/> <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="255"/> </EntityType>
However I want it like this, for example first the Id then Name and so on in the metadata.
<EntityType Name="Condition"> <Key><PropertyRef Name="Id"/></Key> <Property Name="Id" Type="Edm.Int32" Nullable="false"/> <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="255"/> <Property Name="ActionId" Type="Edm.String" Nullable="false" MaxLength="255"/> <Property Name="Deleted" Type="Edm.Byte" Nullable="false"/> </EntityType>