MongOData icon indicating copy to clipboard operation
MongOData copied to clipboard

Customise the EntityContainer

Open shoringfan10 opened this issue 8 years ago • 0 comments

Hi, is it possible to customise the EntityContainer? For example,

<EntityType Name="scatterless">
<Key>
<PropertyRef Name="db_id"/>
</Key>
<Property Name="db_id" Type="Edm.String" Nullable="false"/>
<Property Name="dataName" Type="Edm.String"/>
<Property Name="dataValue" Type="Collection(Mongo.scatterless__dataValue)" Nullable="false"/>
</EntityType>
<ComplexType Name="scatterless__dataValue">
<Property Name="x" Type="Edm.Double"/>
<Property Name="y" Type="Edm.Double"/>
<Property Name="z" Type="Edm.Double"/>
</ComplexType>
<EntityContainer Name="MongoContext" m:IsDefaultEntityContainer="true">
<EntitySet Name="scatterless" EntityType="Mongo.scatterless"/>
</EntityContainer>

I would like to add the dataValue to be a EntitySet, like

<EntitySet Name="dataValue" EntityType="Mongo.scatterless__dataValue"/>

Would this be possible in the latest version?

shoringfan10 avatar Sep 30 '16 11:09 shoringfan10