EducfModel.edmx 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="educfModel.Store" Provider="Npgsql" ProviderManifestToken="9.2.8" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="commune">
  9. <Key>
  10. <PropertyRef Name="id" />
  11. </Key>
  12. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="nom" Type="varchar" MaxLength="200" />
  14. <Property Name="code" Type="varchar" MaxLength="7" />
  15. <Property Name="insee" Type="varchar" MaxLength="30" />
  16. <Property Name="superficie" Type="numeric" Precision="10" Scale="0" />
  17. <Property Name="maire" Type="varchar" MaxLength="100" />
  18. <Property Name="adresse" Type="varchar" MaxLength="100" />
  19. <Property Name="tel" Type="varchar" MaxLength="100" />
  20. <Property Name="fax" Type="varchar" MaxLength="100" />
  21. <Property Name="email" Type="varchar" MaxLength="250" />
  22. <Property Name="urbanisationemail" Type="varchar" MaxLength="250" />
  23. <Property Name="urbanisationinterlocuteur" Type="varchar" MaxLength="100" />
  24. <Property Name="urbanisationtel" Type="varchar" MaxLength="100" />
  25. <Property Name="optcommunecollege" Type="numeric" Precision="1" Scale="0" />
  26. <Property Name="rpi" Type="varchar" MaxLength="50" />
  27. <Property Name="web" Type="varchar" MaxLength="100" />
  28. <Property Name="idcanton" Type="int4" />
  29. </EntityType>
  30. <EntityType Name="etabeffectifannee">
  31. <Key>
  32. <PropertyRef Name="id" />
  33. </Key>
  34. <Property Name="idetablissement" Type="int4" />
  35. <Property Name="annee" Type="float8" />
  36. <Property Name="effectif" Type="float8" />
  37. <Property Name="idniveau" Type="float8" />
  38. <Property Name="tap" Type="float8" />
  39. <Property Name="tevit" Type="float8" />
  40. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  41. <Property Name="nbclasses" Type="numeric" Precision="5" Scale="0" />
  42. <Property Name="effectifdp" Type="float8" />
  43. <Property Name="effectifderog" Type="float8" />
  44. <Property Name="tapsec" Type="float8" />
  45. </EntityType>
  46. <EntityType Name="etablissement">
  47. <Key>
  48. <PropertyRef Name="id" />
  49. </Key>
  50. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  51. <Property Name="nom" Type="varchar" MaxLength="250" />
  52. <Property Name="numero" Type="varchar" MaxLength="20" />
  53. <Property Name="idtype" Type="float8" />
  54. <Property Name="privepublic" Type="float8" />
  55. <Property Name="numadresse" Type="varchar" MaxLength="20" />
  56. <Property Name="idrue" Type="float8" />
  57. <Property Name="adresse2" Type="varchar" MaxLength="250" />
  58. <Property Name="tel" Type="varchar" MaxLength="20" />
  59. <Property Name="fax" Type="varchar" MaxLength="20" />
  60. <Property Name="tel2" Type="varchar" MaxLength="20" />
  61. <Property Name="numabrege" Type="varchar" MaxLength="10" />
  62. <Property Name="email" Type="varchar" MaxLength="250" />
  63. <Property Name="anneeconstruction" Type="float8" />
  64. <Property Name="idclassement" Type="float8" />
  65. <Property Name="web" Type="varchar" MaxLength="250" />
  66. <Property Name="surface" Type="varchar" MaxLength="20" />
  67. <Property Name="accueilhandicape" Type="numeric" Precision="1" Scale="0" />
  68. <Property Name="idelementairesecteur" Type="text" />
  69. <Property Name="horaires1" Type="varchar" MaxLength="100" />
  70. <Property Name="horaires2" Type="varchar" MaxLength="100" />
  71. <Property Name="horaires3" Type="varchar" MaxLength="100" />
  72. <Property Name="horaires4" Type="varchar" MaxLength="100" />
  73. <Property Name="optdplundi" Type="numeric" Precision="1" Scale="0" />
  74. <Property Name="optdpmardi" Type="numeric" Precision="1" Scale="0" />
  75. <Property Name="optdpmercredi" Type="numeric" Precision="1" Scale="0" />
  76. <Property Name="optdpjeudi" Type="numeric" Precision="1" Scale="0" />
  77. <Property Name="optdpvendredi" Type="numeric" Precision="1" Scale="0" />
  78. <Property Name="idregierestauration" Type="numeric" Precision="3" Scale="0" />
  79. <Property Name="idbassin" Type="numeric" Precision="5" Scale="0" />
  80. <Property Name="couleur" Type="numeric" Precision="10" Scale="0" />
  81. <Property Name="idcouleur" Type="int4" />
  82. <Property Name="optulis" Type="int4" />
  83. <Property Name="cp" Type="varchar" MaxLength="10" />
  84. <Property Name="anneerestructuration" Type="varchar" MaxLength="4" />
  85. <Property Name="libellecarte1" Type="varchar" MaxLength="200" />
  86. <Property Name="libellecarte2" Type="varchar" MaxLength="200" />
  87. </EntityType>
  88. <EntityType Name="etaboptionsannee">
  89. <Key>
  90. <PropertyRef Name="id" />
  91. </Key>
  92. <Property Name="idetablissement" Type="int4" />
  93. <Property Name="idoption" Type="numeric" Precision="5" Scale="0" />
  94. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  95. </EntityType>
  96. <EntityType Name="filiere">
  97. <Key>
  98. <PropertyRef Name="id" />
  99. </Key>
  100. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  101. <Property Name="nom" Type="varchar" MaxLength="60" />
  102. <Property Name="libelle" Type="varchar" MaxLength="100" />
  103. </EntityType>
  104. <EntityType Name="matiereoption">
  105. <Key>
  106. <PropertyRef Name="id" />
  107. </Key>
  108. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  109. <Property Name="code" Type="varchar" MaxLength="20" />
  110. <Property Name="nom" Type="varchar" MaxLength="100" />
  111. <Property Name="nomcourt" Type="varchar" MaxLength="50" />
  112. <Property Name="nomlong" Type="varchar" MaxLength="200" />
  113. </EntityType>
  114. <EntityType Name="mef">
  115. <Key>
  116. <PropertyRef Name="id" />
  117. </Key>
  118. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  119. <Property Name="code" Type="varchar" MaxLength="11" />
  120. <Property Name="mefst11" Type="varchar" MaxLength="11" />
  121. <Property Name="nomcourt" Type="varchar" MaxLength="6" />
  122. <Property Name="nomlong" Type="varchar" MaxLength="40" />
  123. <Property Name="idniveau" Type="numeric" Precision="5" Scale="0" />
  124. <Property Name="idfiliere" Type="numeric" Precision="5" Scale="0" />
  125. </EntityType>
  126. <EntityType Name="niveau">
  127. <Key>
  128. <PropertyRef Name="id" />
  129. </Key>
  130. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  131. <Property Name="typeetablissement" Type="float8" />
  132. <Property Name="nom" Type="varchar" MaxLength="20" />
  133. <Property Name="ordre" Type="float8" />
  134. <Property Name="idniveaumontee" Type="numeric" Precision="5" Scale="0" />
  135. <Property Name="capacite" Type="numeric" Precision="3" Scale="0" />
  136. <Property Name="capacitezep" Type="numeric" Precision="3" Scale="0" />
  137. </EntityType>
  138. <EntityType Name="rues">
  139. <Key>
  140. <PropertyRef Name="id" />
  141. </Key>
  142. <Property Name="id" Type="int4" StoreGeneratedPattern="Identity" Nullable="false" />
  143. <Property Name="nom" Type="varchar" MaxLength="100" />
  144. <Property Name="idcommune" Type="int4" />
  145. <Property Name="typerue" Type="varchar" MaxLength="100" />
  146. <Property Name="rivoli" Type="varchar" MaxLength="10" />
  147. </EntityType>
  148. <Association Name="FK_EtabEffectifAnnee">
  149. <End Role="etablissement" Type="Self.etablissement" Multiplicity="0..1">
  150. <OnDelete Action="Cascade" />
  151. </End>
  152. <End Role="etabeffectifannee" Type="Self.etabeffectifannee" Multiplicity="*" />
  153. <ReferentialConstraint>
  154. <Principal Role="etablissement">
  155. <PropertyRef Name="id" />
  156. </Principal>
  157. <Dependent Role="etabeffectifannee">
  158. <PropertyRef Name="idetablissement" />
  159. </Dependent>
  160. </ReferentialConstraint>
  161. </Association>
  162. <Association Name="FK_EtabOptionsAnnee">
  163. <End Role="etablissement" Type="Self.etablissement" Multiplicity="0..1">
  164. <OnDelete Action="Cascade" />
  165. </End>
  166. <End Role="etaboptionsannee" Type="Self.etaboptionsannee" Multiplicity="*" />
  167. <ReferentialConstraint>
  168. <Principal Role="etablissement">
  169. <PropertyRef Name="id" />
  170. </Principal>
  171. <Dependent Role="etaboptionsannee">
  172. <PropertyRef Name="idetablissement" />
  173. </Dependent>
  174. </ReferentialConstraint>
  175. </Association>
  176. <Association Name="FK_RuesCommunes">
  177. <End Role="commune" Type="Self.commune" Multiplicity="0..1">
  178. <OnDelete Action="Cascade" />
  179. </End>
  180. <End Role="rues" Type="Self.rues" Multiplicity="*" />
  181. <ReferentialConstraint>
  182. <Principal Role="commune">
  183. <PropertyRef Name="id" />
  184. </Principal>
  185. <Dependent Role="rues">
  186. <PropertyRef Name="idcommune" />
  187. </Dependent>
  188. </ReferentialConstraint>
  189. </Association>
  190. <EntityContainer Name="educfModelStoreContainer">
  191. <EntitySet Name="commune" EntityType="Self.commune" Schema="educf" store:Type="Tables" />
  192. <EntitySet Name="etabeffectifannee" EntityType="Self.etabeffectifannee" Schema="educf" store:Type="Tables" />
  193. <EntitySet Name="etablissement" EntityType="Self.etablissement" Schema="educf" store:Type="Tables" />
  194. <EntitySet Name="etaboptionsannee" EntityType="Self.etaboptionsannee" Schema="educf" store:Type="Tables" />
  195. <EntitySet Name="filiere" EntityType="Self.filiere" Schema="educf" store:Type="Tables" />
  196. <EntitySet Name="matiereoption" EntityType="Self.matiereoption" Schema="educf" store:Type="Tables" />
  197. <EntitySet Name="mef" EntityType="Self.mef" Schema="educf" store:Type="Tables" />
  198. <EntitySet Name="niveau" EntityType="Self.niveau" Schema="educf" store:Type="Tables" />
  199. <EntitySet Name="rues" EntityType="Self.rues" Schema="educf" store:Type="Tables" />
  200. <AssociationSet Name="FK_EtabEffectifAnnee" Association="Self.FK_EtabEffectifAnnee">
  201. <End Role="etablissement" EntitySet="etablissement" />
  202. <End Role="etabeffectifannee" EntitySet="etabeffectifannee" />
  203. </AssociationSet>
  204. <AssociationSet Name="FK_EtabOptionsAnnee" Association="Self.FK_EtabOptionsAnnee">
  205. <End Role="etablissement" EntitySet="etablissement" />
  206. <End Role="etaboptionsannee" EntitySet="etaboptionsannee" />
  207. </AssociationSet>
  208. <AssociationSet Name="FK_RuesCommunes" Association="Self.FK_RuesCommunes">
  209. <End Role="commune" EntitySet="commune" />
  210. <End Role="rues" EntitySet="rues" />
  211. </AssociationSet>
  212. </EntityContainer>
  213. </Schema></edmx:StorageModels>
  214. <!-- CSDL content -->
  215. <edmx:ConceptualModels>
  216. <Schema Namespace="educfModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  217. <EntityType Name="commune">
  218. <Key>
  219. <PropertyRef Name="id" />
  220. </Key>
  221. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  222. <Property Name="nom" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  223. <Property Name="code" Type="String" MaxLength="7" FixedLength="false" Unicode="true" />
  224. <Property Name="insee" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  225. <Property Name="superficie" Type="Decimal" Precision="10" Scale="0" />
  226. <Property Name="maire" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  227. <Property Name="adresse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  228. <Property Name="tel" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  229. <Property Name="fax" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  230. <Property Name="email" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
  231. <Property Name="urbanisationemail" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
  232. <Property Name="urbanisationinterlocuteur" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  233. <Property Name="urbanisationtel" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  234. <Property Name="optcommunecollege" Type="Decimal" Precision="1" Scale="0" />
  235. <Property Name="rpi" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  236. <Property Name="web" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  237. <Property Name="idcanton" Type="Int32" />
  238. <NavigationProperty Name="rues" Relationship="Self.FK_RuesCommunes" FromRole="commune" ToRole="rues" />
  239. </EntityType>
  240. <EntityType Name="etabeffectifannee">
  241. <Key>
  242. <PropertyRef Name="id" />
  243. </Key>
  244. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
  245. <Property Name="idetablissement" Type="Int32" />
  246. <Property Name="annee" Type="Double" />
  247. <Property Name="effectif" Type="Double" />
  248. <Property Name="idniveau" Type="Int32" />
  249. <Property Name="tap" Type="Double" />
  250. <Property Name="tevit" Type="Double" />
  251. <Property Name="nbclasses" Type="Decimal" Precision="5" Scale="0" />
  252. <Property Name="effectifdp" Type="Double" />
  253. <Property Name="effectifderog" Type="Double" />
  254. <Property Name="tapsec" Type="Double" />
  255. <NavigationProperty Name="etablissement" Relationship="Self.FK_EtabEffectifAnnee" FromRole="etabeffectifannee" ToRole="etablissement" />
  256. <NavigationProperty Name="niveau" Relationship="educfModel.niveauetabeffectifannee" FromRole="etabeffectifannee" ToRole="niveau" />
  257. </EntityType>
  258. <EntityType Name="etablissement">
  259. <Key>
  260. <PropertyRef Name="id" />
  261. </Key>
  262. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  263. <Property Name="nom" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
  264. <Property Name="numero" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  265. <Property Name="idtype" Type="Double" />
  266. <Property Name="privepublic" Type="Double" />
  267. <Property Name="numadresse" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  268. <Property Name="idrue" Type="Int32" />
  269. <Property Name="adresse2" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
  270. <Property Name="tel" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  271. <Property Name="fax" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  272. <Property Name="tel2" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  273. <Property Name="numabrege" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  274. <Property Name="email" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
  275. <Property Name="anneeconstruction" Type="Double" />
  276. <Property Name="idclassement" Type="Double" />
  277. <Property Name="web" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
  278. <Property Name="surface" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  279. <Property Name="accueilhandicape" Type="Decimal" Precision="1" Scale="0" />
  280. <Property Name="idelementairesecteur" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  281. <Property Name="horaires1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  282. <Property Name="horaires2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  283. <Property Name="horaires3" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  284. <Property Name="horaires4" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  285. <Property Name="optdplundi" Type="Decimal" Precision="1" Scale="0" />
  286. <Property Name="optdpmardi" Type="Decimal" Precision="1" Scale="0" />
  287. <Property Name="optdpmercredi" Type="Decimal" Precision="1" Scale="0" />
  288. <Property Name="optdpjeudi" Type="Decimal" Precision="1" Scale="0" />
  289. <Property Name="optdpvendredi" Type="Decimal" Precision="1" Scale="0" />
  290. <Property Name="idregierestauration" Type="Decimal" Precision="3" Scale="0" />
  291. <Property Name="idbassin" Type="Decimal" Precision="5" Scale="0" />
  292. <Property Name="couleur" Type="Decimal" Precision="10" Scale="0" />
  293. <Property Name="idcouleur" Type="Int32" />
  294. <Property Name="optulis" Type="Int32" />
  295. <Property Name="cp" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  296. <Property Name="anneerestructuration" Type="String" MaxLength="4" FixedLength="false" Unicode="true" />
  297. <Property Name="libellecarte1" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  298. <Property Name="libellecarte2" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  299. <NavigationProperty Name="etabeffectifannees" Relationship="Self.FK_EtabEffectifAnnee" FromRole="etablissement" ToRole="etabeffectifannee" />
  300. <NavigationProperty Name="rue" Relationship="educfModel.etablissementrue" FromRole="etablissement" ToRole="rue" />
  301. <NavigationProperty Name="etaboptionsannees" Relationship="educfModel.FK_EtabOptionsAnnee" FromRole="etablissement" ToRole="etaboptionsannee" />
  302. </EntityType>
  303. <EntityType Name="niveau">
  304. <Key>
  305. <PropertyRef Name="id" />
  306. </Key>
  307. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  308. <Property Name="typeetablissement" Type="Double" />
  309. <Property Name="nom" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  310. <Property Name="ordre" Type="Double" />
  311. <Property Name="idniveaumontee" Type="Decimal" Precision="5" Scale="0" />
  312. <Property Name="capacite" Type="Decimal" Precision="3" Scale="0" />
  313. <Property Name="capacitezep" Type="Decimal" Precision="3" Scale="0" />
  314. <NavigationProperty Name="etabeffectifannees" Relationship="educfModel.niveauetabeffectifannee" FromRole="niveau" ToRole="etabeffectifannee" />
  315. </EntityType>
  316. <EntityType Name="rue">
  317. <Key>
  318. <PropertyRef Name="id" />
  319. </Key>
  320. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  321. <Property Name="nom" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  322. <Property Name="idcommune" Type="Int32" />
  323. <Property Name="typerue" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  324. <Property Name="rivoli" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  325. <NavigationProperty Name="commune" Relationship="Self.FK_RuesCommunes" FromRole="rues" ToRole="commune" />
  326. <NavigationProperty Name="etablissements" Relationship="educfModel.etablissementrue" FromRole="rue" ToRole="etablissement" />
  327. </EntityType>
  328. <Association Name="FK_RuesCommunes">
  329. <End Role="commune" Type="Self.commune" Multiplicity="0..1">
  330. <OnDelete Action="Cascade" />
  331. </End>
  332. <End Role="rues" Type="Self.rue" Multiplicity="*" />
  333. <ReferentialConstraint>
  334. <Principal Role="commune">
  335. <PropertyRef Name="id" />
  336. </Principal>
  337. <Dependent Role="rues">
  338. <PropertyRef Name="idcommune" />
  339. </Dependent>
  340. </ReferentialConstraint>
  341. </Association>
  342. <Association Name="FK_EtabEffectifAnnee">
  343. <End Role="etablissement" Type="Self.etablissement" Multiplicity="0..1">
  344. <OnDelete Action="Cascade" />
  345. </End>
  346. <End Role="etabeffectifannee" Type="Self.etabeffectifannee" Multiplicity="*" />
  347. <ReferentialConstraint>
  348. <Principal Role="etablissement">
  349. <PropertyRef Name="id" />
  350. </Principal>
  351. <Dependent Role="etabeffectifannee">
  352. <PropertyRef Name="idetablissement" />
  353. </Dependent>
  354. </ReferentialConstraint>
  355. </Association>
  356. <EntityContainer Name="EducfEntities" annotation:LazyLoadingEnabled="true">
  357. <EntitySet Name="communes" EntityType="Self.commune" />
  358. <EntitySet Name="etabeffectifannees" EntityType="Self.etabeffectifannee" />
  359. <EntitySet Name="etablissements" EntityType="Self.etablissement" />
  360. <EntitySet Name="niveaux" EntityType="Self.niveau" />
  361. <EntitySet Name="rues" EntityType="Self.rue" />
  362. <AssociationSet Name="FK_RuesCommunes" Association="Self.FK_RuesCommunes">
  363. <End Role="commune" EntitySet="communes" />
  364. <End Role="rues" EntitySet="rues" />
  365. </AssociationSet>
  366. <AssociationSet Name="FK_EtabEffectifAnnee" Association="Self.FK_EtabEffectifAnnee">
  367. <End Role="etablissement" EntitySet="etablissements" />
  368. <End Role="etabeffectifannee" EntitySet="etabeffectifannees" />
  369. </AssociationSet>
  370. <AssociationSet Name="etablissementrue" Association="educfModel.etablissementrue">
  371. <End Role="etablissement" EntitySet="etablissements" />
  372. <End Role="rue" EntitySet="rues" />
  373. </AssociationSet>
  374. <AssociationSet Name="niveauetabeffectifannee" Association="educfModel.niveauetabeffectifannee">
  375. <End Role="niveau" EntitySet="niveaux" />
  376. <End Role="etabeffectifannee" EntitySet="etabeffectifannees" />
  377. </AssociationSet>
  378. <EntitySet Name="filieres" EntityType="educfModel.filiere" />
  379. <EntitySet Name="mefs" EntityType="educfModel.mef" />
  380. <AssociationSet Name="filieremef" Association="educfModel.filieremef">
  381. <End Role="filiere" EntitySet="filieres" />
  382. <End Role="mef" EntitySet="mefs" />
  383. </AssociationSet>
  384. <EntitySet Name="etaboptionsannees" EntityType="educfModel.etaboptionsannee" />
  385. <EntitySet Name="matiereoptions" EntityType="educfModel.matiereoption" />
  386. <AssociationSet Name="FK_EtabOptionsAnnee" Association="educfModel.FK_EtabOptionsAnnee">
  387. <End Role="etablissement" EntitySet="etablissements" />
  388. <End Role="etaboptionsannee" EntitySet="etaboptionsannees" />
  389. </AssociationSet>
  390. <AssociationSet Name="matiereoptionetaboptionsannee" Association="educfModel.matiereoptionetaboptionsannee">
  391. <End Role="etaboptionsannee" EntitySet="etaboptionsannees" />
  392. <End Role="matiereoption" EntitySet="matiereoptions" />
  393. </AssociationSet>
  394. </EntityContainer>
  395. <Association Name="etablissementrue">
  396. <End Type="educfModel.etablissement" Role="etablissement" Multiplicity="*" />
  397. <End Type="educfModel.rue" Role="rue" Multiplicity="0..1" />
  398. <ReferentialConstraint>
  399. <Principal Role="rue">
  400. <PropertyRef Name="id" />
  401. </Principal>
  402. <Dependent Role="etablissement">
  403. <PropertyRef Name="idrue" />
  404. </Dependent>
  405. </ReferentialConstraint>
  406. </Association>
  407. <Association Name="niveauetabeffectifannee">
  408. <End Type="educfModel.niveau" Role="niveau" Multiplicity="0..1" />
  409. <End Type="educfModel.etabeffectifannee" Role="etabeffectifannee" Multiplicity="*" />
  410. <ReferentialConstraint>
  411. <Principal Role="niveau">
  412. <PropertyRef Name="id" />
  413. </Principal>
  414. <Dependent Role="etabeffectifannee">
  415. <PropertyRef Name="idniveau" />
  416. </Dependent>
  417. </ReferentialConstraint>
  418. </Association>
  419. <EntityType Name="filiere">
  420. <Key>
  421. <PropertyRef Name="id" />
  422. </Key>
  423. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  424. <Property Name="nom" Type="String" MaxLength="60" FixedLength="false" Unicode="true" />
  425. <Property Name="libelle" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  426. <NavigationProperty Name="mefs" Relationship="educfModel.filieremef" FromRole="filiere" ToRole="mef" />
  427. </EntityType>
  428. <EntityType Name="mef">
  429. <Key>
  430. <PropertyRef Name="id" />
  431. </Key>
  432. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  433. <Property Name="code" Type="String" MaxLength="11" FixedLength="false" Unicode="true" />
  434. <Property Name="mefst11" Type="String" MaxLength="11" FixedLength="false" Unicode="true" />
  435. <Property Name="nomcourt" Type="String" MaxLength="6" FixedLength="false" Unicode="true" />
  436. <Property Name="nomlong" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  437. <Property Name="idniveau" Type="Int32" />
  438. <Property Name="idfiliere" Type="Int32" />
  439. <NavigationProperty Name="filiere" Relationship="educfModel.filieremef" FromRole="mef" ToRole="filiere" />
  440. </EntityType>
  441. <Association Name="filieremef">
  442. <End Type="educfModel.filiere" Role="filiere" Multiplicity="0..1" />
  443. <End Type="educfModel.mef" Role="mef" Multiplicity="*" />
  444. <ReferentialConstraint>
  445. <Principal Role="filiere">
  446. <PropertyRef Name="id" />
  447. </Principal>
  448. <Dependent Role="mef">
  449. <PropertyRef Name="idfiliere" />
  450. </Dependent>
  451. </ReferentialConstraint>
  452. </Association>
  453. <EntityType Name="etaboptionsannee">
  454. <Key>
  455. <PropertyRef Name="id" />
  456. </Key>
  457. <Property Name="idetablissement" Type="Int32" />
  458. <Property Name="idoption" Type="Int32" />
  459. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  460. <NavigationProperty Name="etablissement" Relationship="educfModel.FK_EtabOptionsAnnee" FromRole="etaboptionsannee" ToRole="etablissement" />
  461. <NavigationProperty Name="matiereoption" Relationship="educfModel.matiereoptionetaboptionsannee" FromRole="etaboptionsannee" ToRole="matiereoption" />
  462. </EntityType>
  463. <EntityType Name="matiereoption">
  464. <Key>
  465. <PropertyRef Name="id" />
  466. </Key>
  467. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  468. <Property Name="code" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  469. <Property Name="nom" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  470. <Property Name="nomcourt" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  471. <Property Name="nomlong" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  472. <NavigationProperty Name="etaboptionsannees" Relationship="educfModel.matiereoptionetaboptionsannee" FromRole="matiereoption" ToRole="etaboptionsannee" />
  473. </EntityType>
  474. <Association Name="FK_EtabOptionsAnnee">
  475. <End Type="educfModel.etablissement" Role="etablissement" Multiplicity="0..1">
  476. <OnDelete Action="Cascade" />
  477. </End>
  478. <End Type="educfModel.etaboptionsannee" Role="etaboptionsannee" Multiplicity="*" />
  479. <ReferentialConstraint>
  480. <Principal Role="etablissement">
  481. <PropertyRef Name="id" />
  482. </Principal>
  483. <Dependent Role="etaboptionsannee">
  484. <PropertyRef Name="idetablissement" />
  485. </Dependent>
  486. </ReferentialConstraint>
  487. </Association>
  488. <Association Name="matiereoptionetaboptionsannee">
  489. <End Type="educfModel.etaboptionsannee" Role="etaboptionsannee" Multiplicity="*" />
  490. <End Type="educfModel.matiereoption" Role="matiereoption" Multiplicity="0..1" />
  491. <ReferentialConstraint>
  492. <Principal Role="matiereoption">
  493. <PropertyRef Name="id" />
  494. </Principal>
  495. <Dependent Role="etaboptionsannee">
  496. <PropertyRef Name="idoption" />
  497. </Dependent>
  498. </ReferentialConstraint>
  499. </Association>
  500. </Schema>
  501. </edmx:ConceptualModels>
  502. <!-- C-S mapping content -->
  503. <edmx:Mappings>
  504. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  505. <EntityContainerMapping StorageEntityContainer="educfModelStoreContainer" CdmEntityContainer="EducfEntities">
  506. <EntitySetMapping Name="communes">
  507. <EntityTypeMapping TypeName="educfModel.commune">
  508. <MappingFragment StoreEntitySet="commune">
  509. <ScalarProperty Name="id" ColumnName="id" />
  510. <ScalarProperty Name="nom" ColumnName="nom" />
  511. <ScalarProperty Name="code" ColumnName="code" />
  512. <ScalarProperty Name="insee" ColumnName="insee" />
  513. <ScalarProperty Name="superficie" ColumnName="superficie" />
  514. <ScalarProperty Name="maire" ColumnName="maire" />
  515. <ScalarProperty Name="adresse" ColumnName="adresse" />
  516. <ScalarProperty Name="tel" ColumnName="tel" />
  517. <ScalarProperty Name="fax" ColumnName="fax" />
  518. <ScalarProperty Name="email" ColumnName="email" />
  519. <ScalarProperty Name="urbanisationemail" ColumnName="urbanisationemail" />
  520. <ScalarProperty Name="urbanisationinterlocuteur" ColumnName="urbanisationinterlocuteur" />
  521. <ScalarProperty Name="urbanisationtel" ColumnName="urbanisationtel" />
  522. <ScalarProperty Name="optcommunecollege" ColumnName="optcommunecollege" />
  523. <ScalarProperty Name="rpi" ColumnName="rpi" />
  524. <ScalarProperty Name="web" ColumnName="web" />
  525. <ScalarProperty Name="idcanton" ColumnName="idcanton" />
  526. </MappingFragment>
  527. </EntityTypeMapping>
  528. </EntitySetMapping>
  529. <EntitySetMapping Name="etabeffectifannees">
  530. <EntityTypeMapping TypeName="educfModel.etabeffectifannee">
  531. <MappingFragment StoreEntitySet="etabeffectifannee">
  532. <ScalarProperty Name="idetablissement" ColumnName="idetablissement" />
  533. <ScalarProperty Name="annee" ColumnName="annee" />
  534. <ScalarProperty Name="effectif" ColumnName="effectif" />
  535. <ScalarProperty Name="idniveau" ColumnName="idniveau" />
  536. <ScalarProperty Name="tap" ColumnName="tap" />
  537. <ScalarProperty Name="tevit" ColumnName="tevit" />
  538. <ScalarProperty Name="id" ColumnName="id" />
  539. <ScalarProperty Name="nbclasses" ColumnName="nbclasses" />
  540. <ScalarProperty Name="effectifdp" ColumnName="effectifdp" />
  541. <ScalarProperty Name="effectifderog" ColumnName="effectifderog" />
  542. <ScalarProperty Name="tapsec" ColumnName="tapsec" />
  543. </MappingFragment>
  544. </EntityTypeMapping>
  545. </EntitySetMapping>
  546. <EntitySetMapping Name="etablissements">
  547. <EntityTypeMapping TypeName="educfModel.etablissement">
  548. <MappingFragment StoreEntitySet="etablissement">
  549. <ScalarProperty Name="id" ColumnName="id" />
  550. <ScalarProperty Name="nom" ColumnName="nom" />
  551. <ScalarProperty Name="numero" ColumnName="numero" />
  552. <ScalarProperty Name="idtype" ColumnName="idtype" />
  553. <ScalarProperty Name="privepublic" ColumnName="privepublic" />
  554. <ScalarProperty Name="numadresse" ColumnName="numadresse" />
  555. <ScalarProperty Name="idrue" ColumnName="idrue" />
  556. <ScalarProperty Name="adresse2" ColumnName="adresse2" />
  557. <ScalarProperty Name="tel" ColumnName="tel" />
  558. <ScalarProperty Name="fax" ColumnName="fax" />
  559. <ScalarProperty Name="tel2" ColumnName="tel2" />
  560. <ScalarProperty Name="numabrege" ColumnName="numabrege" />
  561. <ScalarProperty Name="email" ColumnName="email" />
  562. <ScalarProperty Name="anneeconstruction" ColumnName="anneeconstruction" />
  563. <ScalarProperty Name="idclassement" ColumnName="idclassement" />
  564. <ScalarProperty Name="web" ColumnName="web" />
  565. <ScalarProperty Name="surface" ColumnName="surface" />
  566. <ScalarProperty Name="accueilhandicape" ColumnName="accueilhandicape" />
  567. <ScalarProperty Name="idelementairesecteur" ColumnName="idelementairesecteur" />
  568. <ScalarProperty Name="horaires1" ColumnName="horaires1" />
  569. <ScalarProperty Name="horaires2" ColumnName="horaires2" />
  570. <ScalarProperty Name="horaires3" ColumnName="horaires3" />
  571. <ScalarProperty Name="horaires4" ColumnName="horaires4" />
  572. <ScalarProperty Name="optdplundi" ColumnName="optdplundi" />
  573. <ScalarProperty Name="optdpmardi" ColumnName="optdpmardi" />
  574. <ScalarProperty Name="optdpmercredi" ColumnName="optdpmercredi" />
  575. <ScalarProperty Name="optdpjeudi" ColumnName="optdpjeudi" />
  576. <ScalarProperty Name="optdpvendredi" ColumnName="optdpvendredi" />
  577. <ScalarProperty Name="idregierestauration" ColumnName="idregierestauration" />
  578. <ScalarProperty Name="idbassin" ColumnName="idbassin" />
  579. <ScalarProperty Name="couleur" ColumnName="couleur" />
  580. <ScalarProperty Name="idcouleur" ColumnName="idcouleur" />
  581. <ScalarProperty Name="optulis" ColumnName="optulis" />
  582. <ScalarProperty Name="cp" ColumnName="cp" />
  583. <ScalarProperty Name="anneerestructuration" ColumnName="anneerestructuration" />
  584. <ScalarProperty Name="libellecarte1" ColumnName="libellecarte1" />
  585. <ScalarProperty Name="libellecarte2" ColumnName="libellecarte2" />
  586. </MappingFragment>
  587. </EntityTypeMapping>
  588. </EntitySetMapping>
  589. <EntitySetMapping Name="niveaux">
  590. <EntityTypeMapping TypeName="educfModel.niveau">
  591. <MappingFragment StoreEntitySet="niveau">
  592. <ScalarProperty Name="id" ColumnName="id" />
  593. <ScalarProperty Name="typeetablissement" ColumnName="typeetablissement" />
  594. <ScalarProperty Name="nom" ColumnName="nom" />
  595. <ScalarProperty Name="ordre" ColumnName="ordre" />
  596. <ScalarProperty Name="idniveaumontee" ColumnName="idniveaumontee" />
  597. <ScalarProperty Name="capacite" ColumnName="capacite" />
  598. <ScalarProperty Name="capacitezep" ColumnName="capacitezep" />
  599. </MappingFragment>
  600. </EntityTypeMapping>
  601. </EntitySetMapping>
  602. <EntitySetMapping Name="rues">
  603. <EntityTypeMapping TypeName="educfModel.rue">
  604. <MappingFragment StoreEntitySet="rues">
  605. <ScalarProperty Name="id" ColumnName="id" />
  606. <ScalarProperty Name="nom" ColumnName="nom" />
  607. <ScalarProperty Name="idcommune" ColumnName="idcommune" />
  608. <ScalarProperty Name="typerue" ColumnName="typerue" />
  609. <ScalarProperty Name="rivoli" ColumnName="rivoli" />
  610. </MappingFragment>
  611. </EntityTypeMapping>
  612. </EntitySetMapping>
  613. <EntitySetMapping Name="filieres">
  614. <EntityTypeMapping TypeName="educfModel.filiere">
  615. <MappingFragment StoreEntitySet="filiere">
  616. <ScalarProperty Name="libelle" ColumnName="libelle" />
  617. <ScalarProperty Name="nom" ColumnName="nom" />
  618. <ScalarProperty Name="id" ColumnName="id" />
  619. </MappingFragment>
  620. </EntityTypeMapping>
  621. </EntitySetMapping>
  622. <EntitySetMapping Name="mefs">
  623. <EntityTypeMapping TypeName="educfModel.mef">
  624. <MappingFragment StoreEntitySet="mef">
  625. <ScalarProperty Name="idfiliere" ColumnName="idfiliere" />
  626. <ScalarProperty Name="idniveau" ColumnName="idniveau" />
  627. <ScalarProperty Name="nomlong" ColumnName="nomlong" />
  628. <ScalarProperty Name="nomcourt" ColumnName="nomcourt" />
  629. <ScalarProperty Name="mefst11" ColumnName="mefst11" />
  630. <ScalarProperty Name="code" ColumnName="code" />
  631. <ScalarProperty Name="id" ColumnName="id" />
  632. </MappingFragment>
  633. </EntityTypeMapping>
  634. </EntitySetMapping>
  635. <EntitySetMapping Name="etaboptionsannees">
  636. <EntityTypeMapping TypeName="educfModel.etaboptionsannee">
  637. <MappingFragment StoreEntitySet="etaboptionsannee">
  638. <ScalarProperty Name="id" ColumnName="id" />
  639. <ScalarProperty Name="idoption" ColumnName="idoption" />
  640. <ScalarProperty Name="idetablissement" ColumnName="idetablissement" />
  641. </MappingFragment>
  642. </EntityTypeMapping>
  643. </EntitySetMapping>
  644. <EntitySetMapping Name="matiereoptions">
  645. <EntityTypeMapping TypeName="educfModel.matiereoption">
  646. <MappingFragment StoreEntitySet="matiereoption">
  647. <ScalarProperty Name="nomlong" ColumnName="nomlong" />
  648. <ScalarProperty Name="nomcourt" ColumnName="nomcourt" />
  649. <ScalarProperty Name="nom" ColumnName="nom" />
  650. <ScalarProperty Name="code" ColumnName="code" />
  651. <ScalarProperty Name="id" ColumnName="id" />
  652. </MappingFragment>
  653. </EntityTypeMapping>
  654. </EntitySetMapping>
  655. </EntityContainerMapping>
  656. </Mapping>
  657. </edmx:Mappings>
  658. </edmx:Runtime>
  659. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  660. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  661. <Connection>
  662. <DesignerInfoPropertySet>
  663. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  664. </DesignerInfoPropertySet>
  665. </Connection>
  666. <Options>
  667. <DesignerInfoPropertySet>
  668. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  669. <DesignerProperty Name="EnablePluralization" Value="true" />
  670. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  671. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  672. <DesignerProperty Name="CodeGenerationStrategy" Value="Aucun" />
  673. </DesignerInfoPropertySet>
  674. </Options>
  675. <!-- Diagram content (shape and connector positions) -->
  676. <Diagrams></Diagrams>
  677. </Designer>
  678. </edmx:Edmx>