EntityModel.edmx 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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="ModeleMVC.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" 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="Colleges">
  9. <Key>
  10. <PropertyRef Name="Id" />
  11. </Key>
  12. <Property Name="Id" Type="nvarchar" MaxLength="8" Nullable="false" />
  13. <Property Name="Libelle" Type="nvarchar" MaxLength="255" Nullable="false" />
  14. <Property Name="Adresse" Type="nvarchar" MaxLength="255" />
  15. <Property Name="Code_Postal" Type="nvarchar" MaxLength="5" />
  16. <Property Name="TypeCollege_Id" Type="int" Nullable="false" />
  17. <Property Name="Commune_Insee" Type="nvarchar" MaxLength="5" />
  18. <Property Name="Commune" Type="nvarchar" MaxLength="255" Nullable="false" />
  19. <Property Name="Canton" Type="nvarchar" MaxLength="255" />
  20. <Property Name="Territoire_Id" Type="nvarchar" MaxLength="10" />
  21. <Property Name="TAD" Type="nvarchar" MaxLength="255" />
  22. <Property Name="CDC" Type="nvarchar" MaxLength="255" />
  23. <Property Name="Tel" Type="nvarchar" MaxLength="255" />
  24. <Property Name="Fax" Type="nvarchar" MaxLength="255" />
  25. <Property Name="Email" Type="nvarchar" MaxLength="255" />
  26. </EntityType>
  27. <EntityType Name="Territoires">
  28. <Key>
  29. <PropertyRef Name="Id" />
  30. </Key>
  31. <Property Name="Id" Type="nvarchar" MaxLength="10" Nullable="false" />
  32. <Property Name="Libelle" Type="nvarchar" MaxLength="255" Nullable="false" />
  33. <Property Name="Referent_SID" Type="nvarchar" MaxLength="64" />
  34. <Property Name="Referent_Nom" Type="nvarchar" MaxLength="255" />
  35. <Property Name="Referent_Prenom" Type="nvarchar" MaxLength="255" />
  36. <Property Name="Referent_Structure" Type="nvarchar" MaxLength="255" />
  37. <Property Name="Referent_Login" Type="nvarchar" MaxLength="255" />
  38. <Property Name="Referent_Email" Type="nvarchar" MaxLength="255" />
  39. <Property Name="Ordre" Type="int" Nullable="false" />
  40. </EntityType>
  41. <EntityType Name="TypesCollege">
  42. <Key>
  43. <PropertyRef Name="Id" />
  44. </Key>
  45. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  46. <Property Name="Libelle" Type="nvarchar" MaxLength="255" Nullable="false" />
  47. <Property Name="Ordre" Type="int" Nullable="false" />
  48. </EntityType>
  49. <Association Name="FK_Colleges_Territoires">
  50. <End Role="Territoires" Type="Self.Territoires" Multiplicity="0..1" />
  51. <End Role="Colleges" Type="Self.Colleges" Multiplicity="*" />
  52. <ReferentialConstraint>
  53. <Principal Role="Territoires">
  54. <PropertyRef Name="Id" />
  55. </Principal>
  56. <Dependent Role="Colleges">
  57. <PropertyRef Name="Territoire_Id" />
  58. </Dependent>
  59. </ReferentialConstraint>
  60. </Association>
  61. <Association Name="FK_Colleges_TypesCollege">
  62. <End Role="TypesCollege" Type="Self.TypesCollege" Multiplicity="1" />
  63. <End Role="Colleges" Type="Self.Colleges" Multiplicity="*" />
  64. <ReferentialConstraint>
  65. <Principal Role="TypesCollege">
  66. <PropertyRef Name="Id" />
  67. </Principal>
  68. <Dependent Role="Colleges">
  69. <PropertyRef Name="TypeCollege_Id" />
  70. </Dependent>
  71. </ReferentialConstraint>
  72. </Association>
  73. <EntityContainer Name="ModeleMVCStoreContainer">
  74. <EntitySet Name="Colleges" EntityType="Self.Colleges" Schema="dbo" store:Type="Tables" />
  75. <EntitySet Name="Territoires" EntityType="Self.Territoires" Schema="dbo" store:Type="Tables" />
  76. <EntitySet Name="TypesCollege" EntityType="Self.TypesCollege" Schema="dbo" store:Type="Tables" />
  77. <AssociationSet Name="FK_Colleges_Territoires" Association="Self.FK_Colleges_Territoires">
  78. <End Role="Territoires" EntitySet="Territoires" />
  79. <End Role="Colleges" EntitySet="Colleges" />
  80. </AssociationSet>
  81. <AssociationSet Name="FK_Colleges_TypesCollege" Association="Self.FK_Colleges_TypesCollege">
  82. <End Role="TypesCollege" EntitySet="TypesCollege" />
  83. <End Role="Colleges" EntitySet="Colleges" />
  84. </AssociationSet>
  85. </EntityContainer>
  86. </Schema></edmx:StorageModels>
  87. <!-- CSDL content -->
  88. <edmx:ConceptualModels>
  89. <Schema Namespace="CD67.FicheCollege" 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">
  90. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  91. <EntitySet Name="TypesCollege" EntityType="CD67.FicheCollege.TypeCollege" />
  92. <EntitySet Name="Territoires" EntityType="CD67.FicheCollege.Territoire" />
  93. <EntitySet Name="Colleges" EntityType="CD67.FicheCollege.College" />
  94. <AssociationSet Name="FK_Colleges_Territoires" Association="CD67.FicheCollege.FK_Colleges_Territoires">
  95. <End Role="Territoire" EntitySet="Territoires" />
  96. <End Role="College" EntitySet="Colleges" />
  97. </AssociationSet>
  98. <AssociationSet Name="FK_Colleges_TypesCollege" Association="CD67.FicheCollege.FK_Colleges_TypesCollege">
  99. <End Role="TypeCollege" EntitySet="TypesCollege" />
  100. <End Role="College" EntitySet="Colleges" />
  101. </AssociationSet>
  102. </EntityContainer>
  103. <EntityType Name="TypeCollege">
  104. <Key>
  105. <PropertyRef Name="Id" />
  106. </Key>
  107. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  108. <Property Name="Libelle" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
  109. <Property Name="Ordre" Type="Int32" Nullable="false" />
  110. <NavigationProperty Name="Colleges" Relationship="CD67.FicheCollege.FK_Colleges_TypesCollege" FromRole="TypeCollege" ToRole="College" />
  111. </EntityType>
  112. <EntityType Name="Territoire">
  113. <Key>
  114. <PropertyRef Name="Id" />
  115. </Key>
  116. <Property Name="Id" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  117. <Property Name="Libelle" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
  118. <Property Name="Referent_SID" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  119. <Property Name="Referent_Nom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  120. <Property Name="Referent_Prenom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  121. <Property Name="Referent_Structure" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  122. <Property Name="Referent_Login" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  123. <Property Name="Referent_Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  124. <Property Name="Ordre" Type="Int32" Nullable="false" />
  125. <NavigationProperty Name="Colleges" Relationship="CD67.FicheCollege.FK_Colleges_Territoires" FromRole="Territoire" ToRole="College" />
  126. </EntityType>
  127. <EntityType Name="College">
  128. <Key>
  129. <PropertyRef Name="Id" />
  130. </Key>
  131. <Property Name="Id" Type="String" Nullable="false" MaxLength="8" FixedLength="false" Unicode="true" />
  132. <Property Name="Libelle" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
  133. <Property Name="Adresse" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  134. <Property Name="Code_Postal" Type="String" MaxLength="5" FixedLength="false" Unicode="true" />
  135. <Property Name="TypeCollege_Id" Type="Int32" Nullable="false" />
  136. <Property Name="Commune_Insee" Type="String" MaxLength="5" FixedLength="false" Unicode="true" />
  137. <Property Name="Commune" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
  138. <Property Name="Canton" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  139. <Property Name="Territoire_Id" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  140. <Property Name="TAD" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  141. <Property Name="CDC" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  142. <Property Name="Tel" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  143. <Property Name="Fax" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  144. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  145. <NavigationProperty Name="Territoire" Relationship="CD67.FicheCollege.FK_Colleges_Territoires" FromRole="College" ToRole="Territoire" />
  146. <NavigationProperty Name="TypeCollege" Relationship="CD67.FicheCollege.FK_Colleges_TypesCollege" FromRole="College" ToRole="TypeCollege" />
  147. </EntityType>
  148. <Association Name="FK_Colleges_Territoires">
  149. <End Type="CD67.FicheCollege.Territoire" Role="Territoire" Multiplicity="0..1" />
  150. <End Type="CD67.FicheCollege.College" Role="College" Multiplicity="*" />
  151. <ReferentialConstraint>
  152. <Principal Role="Territoire">
  153. <PropertyRef Name="Id" />
  154. </Principal>
  155. <Dependent Role="College">
  156. <PropertyRef Name="Territoire_Id" />
  157. </Dependent>
  158. </ReferentialConstraint>
  159. </Association>
  160. <Association Name="FK_Colleges_TypesCollege">
  161. <End Type="CD67.FicheCollege.TypeCollege" Role="TypeCollege" Multiplicity="1" />
  162. <End Type="CD67.FicheCollege.College" Role="College" Multiplicity="*" />
  163. <ReferentialConstraint>
  164. <Principal Role="TypeCollege">
  165. <PropertyRef Name="Id" />
  166. </Principal>
  167. <Dependent Role="College">
  168. <PropertyRef Name="TypeCollege_Id" />
  169. </Dependent>
  170. </ReferentialConstraint>
  171. </Association>
  172. </Schema>
  173. </edmx:ConceptualModels>
  174. <!-- C-S mapping content -->
  175. <edmx:Mappings>
  176. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  177. <EntityContainerMapping StorageEntityContainer="ModeleMVCStoreContainer" CdmEntityContainer="Entities">
  178. <EntitySetMapping Name="TypesCollege">
  179. <EntityTypeMapping TypeName="CD67.FicheCollege.TypeCollege">
  180. <MappingFragment StoreEntitySet="TypesCollege">
  181. <ScalarProperty Name="Ordre" ColumnName="Ordre" />
  182. <ScalarProperty Name="Libelle" ColumnName="Libelle" />
  183. <ScalarProperty Name="Id" ColumnName="Id" />
  184. </MappingFragment>
  185. </EntityTypeMapping>
  186. </EntitySetMapping>
  187. <EntitySetMapping Name="Territoires">
  188. <EntityTypeMapping TypeName="CD67.FicheCollege.Territoire">
  189. <MappingFragment StoreEntitySet="Territoires">
  190. <ScalarProperty Name="Ordre" ColumnName="Ordre" />
  191. <ScalarProperty Name="Referent_Email" ColumnName="Referent_Email" />
  192. <ScalarProperty Name="Referent_Login" ColumnName="Referent_Login" />
  193. <ScalarProperty Name="Referent_Structure" ColumnName="Referent_Structure" />
  194. <ScalarProperty Name="Referent_Prenom" ColumnName="Referent_Prenom" />
  195. <ScalarProperty Name="Referent_Nom" ColumnName="Referent_Nom" />
  196. <ScalarProperty Name="Referent_SID" ColumnName="Referent_SID" />
  197. <ScalarProperty Name="Libelle" ColumnName="Libelle" />
  198. <ScalarProperty Name="Id" ColumnName="Id" />
  199. </MappingFragment>
  200. </EntityTypeMapping>
  201. </EntitySetMapping>
  202. <EntitySetMapping Name="Colleges">
  203. <EntityTypeMapping TypeName="CD67.FicheCollege.College">
  204. <MappingFragment StoreEntitySet="Colleges">
  205. <ScalarProperty Name="Email" ColumnName="Email" />
  206. <ScalarProperty Name="Fax" ColumnName="Fax" />
  207. <ScalarProperty Name="Tel" ColumnName="Tel" />
  208. <ScalarProperty Name="CDC" ColumnName="CDC" />
  209. <ScalarProperty Name="TAD" ColumnName="TAD" />
  210. <ScalarProperty Name="Territoire_Id" ColumnName="Territoire_Id" />
  211. <ScalarProperty Name="Canton" ColumnName="Canton" />
  212. <ScalarProperty Name="Commune" ColumnName="Commune" />
  213. <ScalarProperty Name="Commune_Insee" ColumnName="Commune_Insee" />
  214. <ScalarProperty Name="TypeCollege_Id" ColumnName="TypeCollege_Id" />
  215. <ScalarProperty Name="Code_Postal" ColumnName="Code_Postal" />
  216. <ScalarProperty Name="Adresse" ColumnName="Adresse" />
  217. <ScalarProperty Name="Libelle" ColumnName="Libelle" />
  218. <ScalarProperty Name="Id" ColumnName="Id" />
  219. </MappingFragment>
  220. </EntityTypeMapping>
  221. </EntitySetMapping>
  222. </EntityContainerMapping>
  223. </Mapping></edmx:Mappings>
  224. </edmx:Runtime>
  225. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  226. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  227. <Connection>
  228. <DesignerInfoPropertySet>
  229. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  230. </DesignerInfoPropertySet>
  231. </Connection>
  232. <Options>
  233. <DesignerInfoPropertySet>
  234. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  235. <DesignerProperty Name="EnablePluralization" Value="True" />
  236. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  237. <DesignerProperty Name="UseLegacyProvider" Value="False" />
  238. <DesignerProperty Name="CodeGenerationStrategy" Value="Aucun" />
  239. </DesignerInfoPropertySet>
  240. </Options>
  241. <!-- Diagram content (shape and connector positions) -->
  242. <Diagrams></Diagrams>
  243. </Designer>
  244. </edmx:Edmx>