EntityModel.edmx 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <!-- Un seul provider doit être actif, il faut dé-commenter le bon -->
  8. <!-- Provider Oracle -->
  9. <Schema Namespace="Model.Store" Provider="Oracle.ManagedDataAccess.Client" ProviderManifestToken="11.2" 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">
  10. <EntityType Name="EXEMPLE_TYPE_VIKING">
  11. <Key>
  12. <PropertyRef Name="ID" />
  13. </Key>
  14. <Property Name="ID" Type="number" Precision="38" Scale="0" Nullable="false" StoreGeneratedPattern="Identity" />
  15. <Property Name="TYPE" Type="varchar2" MaxLength="255" />
  16. </EntityType>
  17. <EntityType Name="EXEMPLE_VIKINGS">
  18. <Key>
  19. <PropertyRef Name="ID" />
  20. </Key>
  21. <Property Name="ID" Type="number" Precision="38" Scale="0" Nullable="false" StoreGeneratedPattern="Identity" />
  22. <Property Name="NOM" Type="varchar2" MaxLength="255" Nullable="false" />
  23. <Property Name="ID_TYPE" Type="number" Precision="38" Scale="0" Nullable="false" />
  24. <Property Name="DESCRIPTION" Type="varchar2" MaxLength="255" />
  25. <Property Name="DATE_INUTILE" Type="date" />
  26. </EntityType>
  27. <Association Name="EXEMPLE_VIKINGS_FK">
  28. <End Role="EXEMPLE_TYPE_VIKING" Type="Self.EXEMPLE_TYPE_VIKING" Multiplicity="1" />
  29. <End Role="EXEMPLE_VIKINGS" Type="Self.EXEMPLE_VIKINGS" Multiplicity="*" />
  30. <ReferentialConstraint>
  31. <Principal Role="EXEMPLE_TYPE_VIKING">
  32. <PropertyRef Name="ID" />
  33. </Principal>
  34. <Dependent Role="EXEMPLE_VIKINGS">
  35. <PropertyRef Name="ID_TYPE" />
  36. </Dependent>
  37. </ReferentialConstraint>
  38. </Association>
  39. <EntityContainer Name="ModelStoreContainer">
  40. <EntitySet Name="EXEMPLE_TYPE_VIKING" EntityType="Self.EXEMPLE_TYPE_VIKING" Schema="FER" store:Type="Tables" />
  41. <EntitySet Name="EXEMPLE_VIKINGS" EntityType="Self.EXEMPLE_VIKINGS" Schema="FER" store:Type="Tables" />
  42. <AssociationSet Name="EXEMPLE_VIKINGS_FK" Association="Self.EXEMPLE_VIKINGS_FK">
  43. <End Role="EXEMPLE_TYPE_VIKING" EntitySet="EXEMPLE_TYPE_VIKING" />
  44. <End Role="EXEMPLE_VIKINGS" EntitySet="EXEMPLE_VIKINGS" />
  45. </AssociationSet>
  46. </EntityContainer>
  47. </Schema></edmx:StorageModels>
  48. <!-- CSDL content -->
  49. <edmx:ConceptualModels>
  50. <Schema Namespace="Model" 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">
  51. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  52. <EntitySet Name="EXEMPLE_TYPE_VIKING" EntityType="Model.EXEMPLE_TYPE_VIKING" />
  53. <EntitySet Name="EXEMPLE_VIKINGS" EntityType="Model.EXEMPLE_VIKINGS" />
  54. <AssociationSet Name="EXEMPLE_VIKINGS_FK" Association="Model.EXEMPLE_VIKINGS_FK">
  55. <End Role="EXEMPLE_TYPE_VIKING" EntitySet="EXEMPLE_TYPE_VIKING" />
  56. <End Role="EXEMPLE_VIKINGS" EntitySet="EXEMPLE_VIKINGS" />
  57. </AssociationSet>
  58. </EntityContainer>
  59. <EntityType Name="EXEMPLE_TYPE_VIKING">
  60. <Key>
  61. <PropertyRef Name="ID" />
  62. </Key>
  63. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  64. <Property Name="TYPE" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  65. <NavigationProperty Name="EXEMPLE_VIKINGS" Relationship="Model.EXEMPLE_VIKINGS_FK" FromRole="EXEMPLE_TYPE_VIKING" ToRole="EXEMPLE_VIKINGS" />
  66. </EntityType>
  67. <EntityType Name="EXEMPLE_VIKINGS">
  68. <Key>
  69. <PropertyRef Name="ID" />
  70. </Key>
  71. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  72. <Property Name="NOM" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
  73. <Property Name="ID_TYPE" Type="Int32" Nullable="false" />
  74. <Property Name="DESCRIPTION" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  75. <NavigationProperty Name="EXEMPLE_TYPE_VIKING" Relationship="Model.EXEMPLE_VIKINGS_FK" FromRole="EXEMPLE_VIKINGS" ToRole="EXEMPLE_TYPE_VIKING" />
  76. <Property Name="DATE_INUTILE" Type="DateTime" />
  77. </EntityType>
  78. <Association Name="EXEMPLE_VIKINGS_FK">
  79. <End Type="Model.EXEMPLE_TYPE_VIKING" Role="EXEMPLE_TYPE_VIKING" Multiplicity="1" />
  80. <End Type="Model.EXEMPLE_VIKINGS" Role="EXEMPLE_VIKINGS" Multiplicity="*" />
  81. <ReferentialConstraint>
  82. <Principal Role="EXEMPLE_TYPE_VIKING">
  83. <PropertyRef Name="ID" />
  84. </Principal>
  85. <Dependent Role="EXEMPLE_VIKINGS">
  86. <PropertyRef Name="ID_TYPE" />
  87. </Dependent>
  88. </ReferentialConstraint>
  89. </Association>
  90. </Schema>
  91. </edmx:ConceptualModels>
  92. <!-- C-S mapping content -->
  93. <edmx:Mappings>
  94. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  95. <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="Entities">
  96. <EntitySetMapping Name="EXEMPLE_TYPE_VIKING">
  97. <EntityTypeMapping TypeName="Model.EXEMPLE_TYPE_VIKING">
  98. <MappingFragment StoreEntitySet="EXEMPLE_TYPE_VIKING">
  99. <ScalarProperty Name="TYPE" ColumnName="TYPE" />
  100. <ScalarProperty Name="ID" ColumnName="ID" />
  101. </MappingFragment>
  102. </EntityTypeMapping>
  103. </EntitySetMapping>
  104. <EntitySetMapping Name="EXEMPLE_VIKINGS">
  105. <EntityTypeMapping TypeName="Model.EXEMPLE_VIKINGS">
  106. <MappingFragment StoreEntitySet="EXEMPLE_VIKINGS">
  107. <ScalarProperty Name="DATE_INUTILE" ColumnName="DATE_INUTILE" />
  108. <ScalarProperty Name="DESCRIPTION" ColumnName="DESCRIPTION" />
  109. <ScalarProperty Name="ID_TYPE" ColumnName="ID_TYPE" />
  110. <ScalarProperty Name="NOM" ColumnName="NOM" />
  111. <ScalarProperty Name="ID" ColumnName="ID" />
  112. </MappingFragment>
  113. </EntityTypeMapping>
  114. </EntitySetMapping>
  115. </EntityContainerMapping>
  116. </Mapping>
  117. </edmx:Mappings>
  118. </edmx:Runtime>
  119. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  120. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  121. <Connection>
  122. <DesignerInfoPropertySet>
  123. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  124. </DesignerInfoPropertySet>
  125. </Connection>
  126. <Options>
  127. <DesignerInfoPropertySet>
  128. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  129. <DesignerProperty Name="EnablePluralization" Value="false" />
  130. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  131. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  132. <DesignerProperty Name="CodeGenerationStrategy" Value="Aucun" />
  133. </DesignerInfoPropertySet>
  134. </Options>
  135. <!-- Diagram content (shape and connector positions) -->
  136. <Diagrams></Diagrams>
  137. </Designer>
  138. </edmx:Edmx>