EntityModel.edmx 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2012" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityContainer Name="ModeleMVCStoreContainer">
  9. <EntitySet Name="TypesViking" EntityType="ModeleMVC.Store.TypesViking" store:Type="Tables" Schema="dbo" />
  10. <EntitySet Name="Vikings" EntityType="ModeleMVC.Store.Vikings" store:Type="Tables" Schema="dbo" />
  11. <AssociationSet Name="TypeVikingViking" Association="ModeleMVC.Store.TypeVikingViking">
  12. <End Role="TypeViking" EntitySet="TypesViking" />
  13. <End Role="Viking" EntitySet="Vikings" />
  14. </AssociationSet>
  15. </EntityContainer>
  16. <EntityType Name="TypesViking">
  17. <Key>
  18. <PropertyRef Name="Id" />
  19. </Key>
  20. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  21. <Property Name="Libelle" Type="nvarchar" Nullable="false" MaxLength="100" />
  22. </EntityType>
  23. <EntityType Name="Vikings">
  24. <Key>
  25. <PropertyRef Name="Id" />
  26. </Key>
  27. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  28. <Property Name="Nom" Type="nvarchar" Nullable="false" MaxLength="100" />
  29. <Property Name="CasqueCornu" Type="bit" Nullable="false" />
  30. <Property Name="NombreVictoires" Type="int" Nullable="true" />
  31. <Property Name="Description" Type="nvarchar(max)" Nullable="true" />
  32. <Property Name="DateCreation" Type="datetime" Nullable="false" />
  33. <Property Name="DateEdition" Type="datetime" Nullable="false" />
  34. <Property Name="TypeVikingId" Type="int" Nullable="false" />
  35. </EntityType>
  36. <Association Name="TypeVikingViking">
  37. <End Role="TypeViking" Type="ModeleMVC.Store.TypesViking" Multiplicity="1" />
  38. <End Role="Viking" Type="ModeleMVC.Store.Vikings" Multiplicity="*" />
  39. <ReferentialConstraint>
  40. <Principal Role="TypeViking">
  41. <PropertyRef Name="Id" />
  42. </Principal>
  43. <Dependent Role="Viking">
  44. <PropertyRef Name="TypeVikingId" />
  45. </Dependent>
  46. </ReferentialConstraint>
  47. </Association>
  48. </Schema></edmx:StorageModels>
  49. <!-- CSDL content -->
  50. <edmx:ConceptualModels>
  51. <Schema Namespace="ModeleMVC" 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">
  52. <EntityType Name="TypeViking">
  53. <Key>
  54. <PropertyRef Name="Id" />
  55. </Key>
  56. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  57. <Property Name="Libelle" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  58. <NavigationProperty Name="Viking" Relationship="ModeleMVC.TypeVikingViking" FromRole="TypeViking" ToRole="Viking" />
  59. </EntityType>
  60. <EntityType Name="Viking">
  61. <Key>
  62. <PropertyRef Name="Id" />
  63. </Key>
  64. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  65. <Property Name="Nom" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  66. <Property Name="CasqueCornu" Type="Boolean" Nullable="false" />
  67. <Property Name="NombreVictoires" Type="Int32" DefaultValue="0" />
  68. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  69. <Property Name="DateCreation" Type="DateTime" Nullable="false" Precision="7" />
  70. <Property Name="DateEdition" Type="DateTime" Nullable="false" Precision="7" />
  71. <NavigationProperty Name="TypeViking" Relationship="ModeleMVC.TypeVikingViking" FromRole="Viking" ToRole="TypeViking" />
  72. <Property Name="TypeVikingId" Type="Int32" Nullable="false" />
  73. </EntityType>
  74. <EntityContainer Name="ModeleMVCEntities" annotation:LazyLoadingEnabled="true">
  75. <EntitySet Name="TypesViking" EntityType="ModeleMVC.TypeViking" />
  76. <EntitySet Name="Vikings" EntityType="ModeleMVC.Viking" />
  77. <AssociationSet Name="TypeVikingViking" Association="ModeleMVC.TypeVikingViking">
  78. <End Role="TypeViking" EntitySet="TypesViking" />
  79. <End Role="Viking" EntitySet="Vikings" />
  80. </AssociationSet>
  81. </EntityContainer>
  82. <Association Name="TypeVikingViking">
  83. <End Type="ModeleMVC.TypeViking" Role="TypeViking" Multiplicity="1" />
  84. <End Type="ModeleMVC.Viking" Role="Viking" Multiplicity="*" />
  85. <ReferentialConstraint>
  86. <Principal Role="TypeViking">
  87. <PropertyRef Name="Id" />
  88. </Principal>
  89. <Dependent Role="Viking">
  90. <PropertyRef Name="TypeVikingId" />
  91. </Dependent>
  92. </ReferentialConstraint>
  93. </Association>
  94. </Schema>
  95. </edmx:ConceptualModels>
  96. <!-- C-S mapping content -->
  97. <edmx:Mappings>
  98. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  99. <EntityContainerMapping StorageEntityContainer="ModeleMVCStoreContainer" CdmEntityContainer="ModeleMVCEntities">
  100. <EntitySetMapping Name="TypesViking">
  101. <EntityTypeMapping TypeName="IsTypeOf(ModeleMVC.TypeViking)">
  102. <MappingFragment StoreEntitySet="TypesViking">
  103. <ScalarProperty Name="Id" ColumnName="Id" />
  104. <ScalarProperty Name="Libelle" ColumnName="Libelle" />
  105. </MappingFragment>
  106. </EntityTypeMapping>
  107. </EntitySetMapping>
  108. <EntitySetMapping Name="Vikings">
  109. <EntityTypeMapping TypeName="IsTypeOf(ModeleMVC.Viking)">
  110. <MappingFragment StoreEntitySet="Vikings">
  111. <ScalarProperty Name="Id" ColumnName="Id" />
  112. <ScalarProperty Name="Nom" ColumnName="Nom" />
  113. <ScalarProperty Name="CasqueCornu" ColumnName="CasqueCornu" />
  114. <ScalarProperty Name="NombreVictoires" ColumnName="NombreVictoires" />
  115. <ScalarProperty Name="Description" ColumnName="Description" />
  116. <ScalarProperty Name="DateCreation" ColumnName="DateCreation" />
  117. <ScalarProperty Name="DateEdition" ColumnName="DateEdition" />
  118. <ScalarProperty Name="TypeVikingId" ColumnName="TypeVikingId" />
  119. </MappingFragment>
  120. </EntityTypeMapping>
  121. </EntitySetMapping>
  122. </EntityContainerMapping>
  123. </Mapping></edmx:Mappings>
  124. </edmx:Runtime>
  125. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  126. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  127. <Connection>
  128. <DesignerInfoPropertySet>
  129. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  130. </DesignerInfoPropertySet>
  131. </Connection>
  132. <Options>
  133. <DesignerInfoPropertySet>
  134. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  135. <DesignerProperty Name="EnablePluralization" Value="false" />
  136. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  137. <DesignerProperty Name="UseLegacyProvider" Value="False" />
  138. <DesignerProperty Name="CodeGenerationStrategy" Value="Aucun" />
  139. </DesignerInfoPropertySet>
  140. </Options>
  141. <!-- Diagram content (shape and connector positions) -->
  142. <Diagrams></Diagrams>
  143. </Designer>
  144. </edmx:Edmx>