ModeleAnnuaire.edmx 7.1 KB

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