ModeleAnnuaire.edmx 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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="AnnuaireModele.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="Personnes">
  9. <Key>
  10. <PropertyRef Name="Id" />
  11. </Key>
  12. <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
  13. <Property Name="NumTitre" Type="smallint" Nullable="false" />
  14. <Property Name="Nom" Type="varchar" MaxLength="50" Nullable="false" />
  15. <Property Name="Prenom" Type="varchar" MaxLength="50" Nullable="false" />
  16. <Property Name="Telephone" Type="nchar" MaxLength="10" Nullable="false" />
  17. </EntityType>
  18. <EntityType Name="Titres">
  19. <Key>
  20. <PropertyRef Name="NumTitre" />
  21. </Key>
  22. <Property Name="NumTitre" Type="smallint" Nullable="false" />
  23. <Property Name="Titre" Type="varchar" MaxLength="50" Nullable="false" />
  24. </EntityType>
  25. <Association Name="Personnes_Titres">
  26. <End Role="Titres" Type="Self.Titres" Multiplicity="1" />
  27. <End Role="Personnes" Type="Self.Personnes" Multiplicity="*" />
  28. <ReferentialConstraint>
  29. <Principal Role="Titres">
  30. <PropertyRef Name="NumTitre" />
  31. </Principal>
  32. <Dependent Role="Personnes">
  33. <PropertyRef Name="NumTitre" />
  34. </Dependent>
  35. </ReferentialConstraint>
  36. </Association>
  37. <EntityContainer Name="AnnuaireModeleStoreContainer">
  38. <EntitySet Name="Personnes" EntityType="Self.Personnes" Schema="dbo" store:Type="Tables" />
  39. <EntitySet Name="Titres" EntityType="Self.Titres" Schema="dbo" store:Type="Tables" />
  40. <AssociationSet Name="Personnes_Titres" Association="Self.Personnes_Titres">
  41. <End Role="Titres" EntitySet="Titres" />
  42. <End Role="Personnes" EntitySet="Personnes" />
  43. </AssociationSet>
  44. </EntityContainer>
  45. </Schema></edmx:StorageModels>
  46. <!-- CSDL content -->
  47. <edmx:ConceptualModels>
  48. <Schema Namespace="AnnuaireModele" 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">
  49. <EntityType Name="Titre">
  50. <Key>
  51. <PropertyRef Name="Id" />
  52. </Key>
  53. <Property Name="Id" Type="Int16" Nullable="false" />
  54. <Property Name="Civilite" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  55. <NavigationProperty Name="Personnes" Relationship="AnnuaireModele.Personnes_Titres" FromRole="Titre" ToRole="Personne" />
  56. </EntityType>
  57. <EntityContainer Name="AnnuaireEntities" annotation:LazyLoadingEnabled="true">
  58. <EntitySet Name="Titres" EntityType="Self.Titre" />
  59. <EntitySet Name="Personnes" EntityType="AnnuaireModele.Personne" />
  60. <AssociationSet Name="Personnes_Titres" Association="AnnuaireModele.Personnes_Titres">
  61. <End Role="Titre" EntitySet="Titres" />
  62. <End Role="Personne" EntitySet="Personnes" />
  63. </AssociationSet>
  64. </EntityContainer>
  65. <EntityType Name="Personne">
  66. <Key>
  67. <PropertyRef Name="Id" />
  68. </Key>
  69. <Property Name="Id" Type="Guid" Nullable="false" />
  70. <Property Name="TitreId" Type="Int16" Nullable="false" />
  71. <Property Name="Nom" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  72. <Property Name="Prenom" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  73. <Property Name="Telephone" Type="String" Nullable="false" MaxLength="10" FixedLength="true" Unicode="true" />
  74. <NavigationProperty Name="Titre" Relationship="AnnuaireModele.Personnes_Titres" FromRole="Personne" ToRole="Titre" />
  75. </EntityType>
  76. <Association Name="Personnes_Titres">
  77. <End Type="AnnuaireModele.Titre" Role="Titre" Multiplicity="1" />
  78. <End Type="AnnuaireModele.Personne" Role="Personne" Multiplicity="*" />
  79. <ReferentialConstraint>
  80. <Principal Role="Titre">
  81. <PropertyRef Name="Id" />
  82. </Principal>
  83. <Dependent Role="Personne">
  84. <PropertyRef Name="TitreId" />
  85. </Dependent>
  86. </ReferentialConstraint>
  87. </Association>
  88. </Schema>
  89. </edmx:ConceptualModels>
  90. <!-- C-S mapping content -->
  91. <edmx:Mappings>
  92. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  93. <EntityContainerMapping StorageEntityContainer="AnnuaireModeleStoreContainer" CdmEntityContainer="AnnuaireEntities">
  94. <EntitySetMapping Name="Titres">
  95. <EntityTypeMapping TypeName="AnnuaireModele.Titre">
  96. <MappingFragment StoreEntitySet="Titres">
  97. <ScalarProperty Name="Id" ColumnName="NumTitre" />
  98. <ScalarProperty Name="Civilite" ColumnName="Titre" />
  99. </MappingFragment>
  100. </EntityTypeMapping>
  101. </EntitySetMapping>
  102. <EntitySetMapping Name="Personnes">
  103. <EntityTypeMapping TypeName="AnnuaireModele.Personne">
  104. <MappingFragment StoreEntitySet="Personnes">
  105. <ScalarProperty Name="Telephone" ColumnName="Telephone" />
  106. <ScalarProperty Name="Prenom" ColumnName="Prenom" />
  107. <ScalarProperty Name="Nom" ColumnName="Nom" />
  108. <ScalarProperty Name="TitreId" ColumnName="NumTitre" />
  109. <ScalarProperty Name="Id" ColumnName="Id" />
  110. </MappingFragment>
  111. </EntityTypeMapping>
  112. </EntitySetMapping>
  113. </EntityContainerMapping>
  114. </Mapping>
  115. </edmx:Mappings>
  116. </edmx:Runtime>
  117. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  118. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  119. <Connection>
  120. <DesignerInfoPropertySet>
  121. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  122. </DesignerInfoPropertySet>
  123. </Connection>
  124. <Options>
  125. <DesignerInfoPropertySet>
  126. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  127. <DesignerProperty Name="EnablePluralization" Value="true" />
  128. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  129. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  130. <DesignerProperty Name="CodeGenerationStrategy" Value="Aucun" />
  131. </DesignerInfoPropertySet>
  132. </Options>
  133. <!-- Diagram content (shape and connector positions) -->
  134. <Diagrams></Diagrams>
  135. </Designer>
  136. </edmx:Edmx>