1. <?xml version="1.0" encoding="utf-16"?>
  2. <Model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="BDCMetadata" xmlns="http://schemas.microsoft.com/windows/2007/BusinessDataCatalog">
  3. <LobSystems>
  4. <LobSystem Name="Northwind" Type="OData">
  5. <Properties>
  6. <Property Name="ODataServiceMetadataUrl" Type="System.String">http://services.odata.org/Northwind/Northwind.svc/$metadata</Property>
  7. <Property Name="ODataServiceMetadataAuthenticationMode" Type="System.String">PassThrough</Property>
  8. <Property Name="ODataServicesVersion" Type="System.String">2.0</Property>
  9. </Properties>
  10. <AccessControlList>
  11. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  12. <Right BdcRight="Edit" />
  13. <Right BdcRight="Execute" />
  14. <Right BdcRight="SelectableInClients" />
  15. <Right BdcRight="SetPermissions" />
  16. </AccessControlEntry>
  17. </AccessControlList>
  18. <LobSystemInstances>
  19. <LobSystemInstance Name="Northwind">
  20. <Properties>
  21. <Property Name="ODataServiceUrl" Type="System.String">http://services.odata.org/Northwind/Northwind.svc</Property>
  22. <Property Name="ODataServiceAuthenticationMode" Type="System.String">PassThrough</Property>
  23. <Property Name="ODataFormat" Type="System.String">application/atom+xml</Property>
  24. <Property Name="HttpHeaderSetAcceptLanguage" Type="System.Boolean">true</Property>
  25. </Properties>
  26. </LobSystemInstance>
  27. </LobSystemInstances>
  28. <Entities>
  29. <Entity Name="Regions" DefaultDisplayName="Regions" Namespace="NorthwindModel" Version="1.0.0.0" EstimatedInstanceCount="2000">
  30. <Properties>
  31. <Property Name="ExcludeFromOfflineClientForList" Type="System.String">False</Property>
  32. </Properties>
  33. <AccessControlList>
  34. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  35. <Right BdcRight="Edit" />
  36. <Right BdcRight="Execute" />
  37. <Right BdcRight="SelectableInClients" />
  38. <Right BdcRight="SetPermissions" />
  39. </AccessControlEntry>
  40. </AccessControlList>
  41. <Identifiers>
  42. <Identifier Name="RegionID" TypeName="System.Int32" />
  43. </Identifiers>
  44. <Methods>
  45. <Method Name="CreateRegion" DefaultDisplayName="Create Region" IsStatic="false">
  46. <Properties>
  47. <Property Name="ODataEntityUrl" Type="System.String">/Regions</Property>
  48. </Properties>
  49. <AccessControlList>
  50. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  51. <Right BdcRight="Edit" />
  52. <Right BdcRight="Execute" />
  53. <Right BdcRight="SelectableInClients" />
  54. <Right BdcRight="SetPermissions" />
  55. </AccessControlEntry>
  56. </AccessControlList>
  57. <Parameters>
  58. <Parameter Name="@RegionID" Direction="In">
  59. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" CreatorField="true" />
  60. </Parameter>
  61. <Parameter Name="@RegionDescription" Direction="In">
  62. <TypeDescriptor Name="RegionDescription" DefaultDisplayName="RegionDescription" TypeName="System.String" CreatorField="true" />
  63. </Parameter>
  64. <Parameter Name="@CreateRegion" Direction="Return">
  65. <TypeDescriptor Name="CreateRegion" DefaultDisplayName="CreateRegion" TypeName="Microsoft.BusinessData.Runtime.DynamicType">
  66. <TypeDescriptors>
  67. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" ReadOnly="true" />
  68. <TypeDescriptor Name="RegionDescription" DefaultDisplayName="RegionDescription" TypeName="System.String" />
  69. </TypeDescriptors>
  70. </TypeDescriptor>
  71. </Parameter>
  72. </Parameters>
  73. <MethodInstances>
  74. <MethodInstance Name="CreateRegion" Type="Creator" ReturnParameterName="@CreateRegion" ReturnTypeDescriptorPath="CreateRegion">
  75. <AccessControlList>
  76. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  77. <Right BdcRight="Edit" />
  78. <Right BdcRight="Execute" />
  79. <Right BdcRight="SelectableInClients" />
  80. <Right BdcRight="SetPermissions" />
  81. </AccessControlEntry>
  82. </AccessControlList>
  83. </MethodInstance>
  84. </MethodInstances>
  85. </Method>
  86. <Method Name="ReadSpecificRegion" DefaultDisplayName="Read Specific Region" IsStatic="false">
  87. <Properties>
  88. <Property Name="ODataEntityUrl" Type="System.String">/Regions(RegionID=@RegionID)</Property>
  89. </Properties>
  90. <AccessControlList>
  91. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  92. <Right BdcRight="Edit" />
  93. <Right BdcRight="Execute" />
  94. <Right BdcRight="SelectableInClients" />
  95. <Right BdcRight="SetPermissions" />
  96. </AccessControlEntry>
  97. </AccessControlList>
  98. <Parameters>
  99. <Parameter Name="@RegionID" Direction="In">
  100. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" />
  101. </Parameter>
  102. <Parameter Name="@Region" Direction="Return">
  103. <TypeDescriptor Name="Region" DefaultDisplayName="Region" TypeName="Microsoft.BusinessData.Runtime.DynamicType">
  104. <TypeDescriptors>
  105. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" ReadOnly="true" />
  106. <TypeDescriptor Name="RegionDescription" DefaultDisplayName="RegionDescription" TypeName="System.String">
  107. <Properties>
  108. <Property Name="RequiredInForms" Type="System.Boolean">true</Property>
  109. </Properties>
  110. </TypeDescriptor>
  111. </TypeDescriptors>
  112. </TypeDescriptor>
  113. </Parameter>
  114. </Parameters>
  115. <MethodInstances>
  116. <MethodInstance Name="ReadSpecificRegion" Type="SpecificFinder" Default="true" ReturnParameterName="@Region" ReturnTypeDescriptorPath="Region">
  117. <AccessControlList>
  118. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  119. <Right BdcRight="Edit" />
  120. <Right BdcRight="Execute" />
  121. <Right BdcRight="SelectableInClients" />
  122. <Right BdcRight="SetPermissions" />
  123. </AccessControlEntry>
  124. </AccessControlList>
  125. </MethodInstance>
  126. </MethodInstances>
  127. </Method>
  128. <Method Name="ReadAllRegion" DefaultDisplayName="Read All Region" IsStatic="false">
  129. <Properties>
  130. <Property Name="ODataEntityUrl" Type="System.String">/Regions?$top=@LimitRegionss</Property>
  131. </Properties>
  132. <AccessControlList>
  133. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  134. <Right BdcRight="Edit" />
  135. <Right BdcRight="Execute" />
  136. <Right BdcRight="SelectableInClients" />
  137. <Right BdcRight="SetPermissions" />
  138. </AccessControlEntry>
  139. </AccessControlList>
  140. <FilterDescriptors>
  141. <FilterDescriptor Name="LimitFilter" DefaultDisplayName="LimitFilter" Type="Limit" />
  142. </FilterDescriptors>
  143. <Parameters>
  144. <Parameter Name="@LimitRegionss" Direction="In">
  145. <TypeDescriptor Name="LimitRegionss" DefaultDisplayName="LimitRegionss" TypeName="System.Int32" AssociatedFilter="LimitFilter">
  146. <Properties>
  147. <Property Name="LogicalOperatorWithPrevious" Type="System.String">None</Property>
  148. <Property Name="Order" Type="System.String">0</Property>
  149. </Properties>
  150. <DefaultValues>
  151. <DefaultValue MethodInstanceName="ReadAllRegion" Type="System.Int32">100</DefaultValue>
  152. </DefaultValues>
  153. </TypeDescriptor>
  154. </Parameter>
  155. <Parameter Name="@Regions" Direction="Return">
  156. <TypeDescriptor Name="Regions" DefaultDisplayName="Regions" TypeName="Microsoft.BusinessData.Runtime.IDynamicTypeEnumerator" IsCollection="true">
  157. <TypeDescriptors>
  158. <TypeDescriptor Name="Region" DefaultDisplayName="Region" TypeName="Microsoft.BusinessData.Runtime.DynamicType">
  159. <TypeDescriptors>
  160. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" ReadOnly="true" />
  161. <TypeDescriptor Name="RegionDescription" DefaultDisplayName="RegionDescription" TypeName="System.String">
  162. <Properties>
  163. <Property Name="RequiredInForms" Type="System.Boolean">true</Property>
  164. </Properties>
  165. </TypeDescriptor>
  166. </TypeDescriptors>
  167. </TypeDescriptor>
  168. </TypeDescriptors>
  169. </TypeDescriptor>
  170. </Parameter>
  171. </Parameters>
  172. <MethodInstances>
  173. <MethodInstance Name="ReadAllRegion" Type="Finder" Default="true" ReturnParameterName="@Regions" ReturnTypeDescriptorPath="Regions">
  174. <AccessControlList>
  175. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  176. <Right BdcRight="Edit" />
  177. <Right BdcRight="Execute" />
  178. <Right BdcRight="SelectableInClients" />
  179. <Right BdcRight="SetPermissions" />
  180. </AccessControlEntry>
  181. </AccessControlList>
  182. </MethodInstance>
  183. </MethodInstances>
  184. </Method>
  185. <Method Name="UpdateRegion" DefaultDisplayName="Update Region" IsStatic="false">
  186. <Properties>
  187. <Property Name="ODataEntityUrl" Type="System.String">/Regions(RegionID=@RegionID)</Property>
  188. </Properties>
  189. <AccessControlList>
  190. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  191. <Right BdcRight="Edit" />
  192. <Right BdcRight="Execute" />
  193. <Right BdcRight="SelectableInClients" />
  194. <Right BdcRight="SetPermissions" />
  195. </AccessControlEntry>
  196. </AccessControlList>
  197. <Parameters>
  198. <Parameter Name="@RegionID" Direction="In">
  199. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" UpdaterField="true" />
  200. </Parameter>
  201. <Parameter Name="@RegionDescription" Direction="In">
  202. <TypeDescriptor Name="RegionDescription" DefaultDisplayName="RegionDescription" TypeName="System.String" UpdaterField="true" />
  203. </Parameter>
  204. </Parameters>
  205. <MethodInstances>
  206. <MethodInstance Name="UpdateRegion" Type="Updater">
  207. <AccessControlList>
  208. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  209. <Right BdcRight="Edit" />
  210. <Right BdcRight="Execute" />
  211. <Right BdcRight="SelectableInClients" />
  212. <Right BdcRight="SetPermissions" />
  213. </AccessControlEntry>
  214. </AccessControlList>
  215. </MethodInstance>
  216. </MethodInstances>
  217. </Method>
  218. <Method Name="DeleteRegion" DefaultDisplayName="Delete Region" IsStatic="false">
  219. <Properties>
  220. <Property Name="ODataEntityUrl" Type="System.String">/Regions(RegionID=@RegionID)</Property>
  221. </Properties>
  222. <AccessControlList>
  223. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  224. <Right BdcRight="Edit" />
  225. <Right BdcRight="Execute" />
  226. <Right BdcRight="SelectableInClients" />
  227. <Right BdcRight="SetPermissions" />
  228. </AccessControlEntry>
  229. </AccessControlList>
  230. <Parameters>
  231. <Parameter Name="@RegionID" Direction="In">
  232. <TypeDescriptor Name="RegionID" DefaultDisplayName="RegionID" TypeName="System.Int32" IdentifierName="RegionID" />
  233. </Parameter>
  234. </Parameters>
  235. <MethodInstances>
  236. <MethodInstance Name="DeleteRegion" Type="Deleter">
  237. <AccessControlList>
  238. <AccessControlEntry Principal="STS|SecurityTokenService|http://sharepoint.microsoft.com/claims/2009/08/isauthenticated|true|http://www.w3.org/2001/XMLSchema#string">
  239. <Right BdcRight="Edit" />
  240. <Right BdcRight="Execute" />
  241. <Right BdcRight="SelectableInClients" />
  242. <Right BdcRight="SetPermissions" />
  243. </AccessControlEntry>
  244. </AccessControlList>
  245. </MethodInstance>
  246. </MethodInstances>
  247. </Method>
  248. </Methods>
  249. </Entity>
  250. </Entities>
  251. </LobSystem>
  252. </LobSystems>
  253. </Model>