oop_II-6/Web_Server_EHEC_model first/Web_Server_EHEC/Model/EHEC_DB_Model.edmx

443 lines
22 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="EHEC_DB_Model.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">
<EntityContainer Name="EHEC_DB_ModelStoreContainer">
<EntitySet Name="PersonSet" EntityType="EHEC_DB_Model.Store.PersonSet" store:Type="Tables" Schema="dbo" />
<EntitySet Name="OriginSet" EntityType="EHEC_DB_Model.Store.OriginSet" store:Type="Tables" Schema="dbo" />
<EntitySet Name="ExamSet" EntityType="EHEC_DB_Model.Store.ExamSet" store:Type="Tables" Schema="dbo" />
<EntitySet Name="ResultSet" EntityType="EHEC_DB_Model.Store.ResultSet" store:Type="Tables" Schema="dbo" />
<EntitySet Name="DoctortypeSet" EntityType="EHEC_DB_Model.Store.DoctortypeSet" store:Type="Tables" Schema="dbo" />
<EntitySet Name="PersonSet_Doctor" EntityType="EHEC_DB_Model.Store.PersonSet_Doctor" store:Type="Tables" Schema="dbo" />
<EntitySet Name="PersonSet_Patient" EntityType="EHEC_DB_Model.Store.PersonSet_Patient" store:Type="Tables" Schema="dbo" />
<AssociationSet Name="ResultExam" Association="EHEC_DB_Model.Store.ResultExam">
<End Role="Result" EntitySet="ResultSet" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="DoctorExam" Association="EHEC_DB_Model.Store.DoctorExam">
<End Role="Doctor" EntitySet="PersonSet_Doctor" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="PatientExam" Association="EHEC_DB_Model.Store.PatientExam">
<End Role="Patient" EntitySet="PersonSet_Patient" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="OriginExam" Association="EHEC_DB_Model.Store.OriginExam">
<End Role="Origin" EntitySet="OriginSet" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="DoctortypeDoctor" Association="EHEC_DB_Model.Store.DoctortypeDoctor">
<End Role="Doctortype" EntitySet="DoctortypeSet" />
<End Role="Doctor" EntitySet="PersonSet_Doctor" />
</AssociationSet>
<AssociationSet Name="FK_Doctor_inherits_Person" Association="EHEC_DB_Model.Store.FK_Doctor_inherits_Person">
<End Role="Person" EntitySet="PersonSet" />
<End Role="Doctor" EntitySet="PersonSet_Doctor" />
</AssociationSet>
<AssociationSet Name="FK_Patient_inherits_Person" Association="EHEC_DB_Model.Store.FK_Patient_inherits_Person">
<End Role="Person" EntitySet="PersonSet" />
<End Role="Patient" EntitySet="PersonSet_Patient" />
</AssociationSet>
</EntityContainer>
<EntityType Name="PersonSet">
<Key>
<PropertyRef Name="PersonId" />
</Key>
<Property Name="PersonId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Firstname" Type="nvarchar(max)" Nullable="false" />
<Property Name="Lastname" Type="nvarchar(max)" Nullable="false" />
<Property Name="Birthdate" Type="datetime" Nullable="false" />
<Property Name="Street" Type="nvarchar(max)" Nullable="false" />
<Property Name="City" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="OriginSet">
<Key>
<PropertyRef Name="OriginId" />
</Key>
<Property Name="OriginId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="SicknessId" Type="int" Nullable="false" />
<Property Name="Name" Type="nvarchar(max)" Nullable="false" />
<Property Name="Street" Type="nvarchar(max)" Nullable="false" />
<Property Name="City" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="ExamSet">
<Key>
<PropertyRef Name="ExamId" />
</Key>
<Property Name="ExamId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="DoctorId" Type="int" Nullable="false" />
<Property Name="SicknessStatus" Type="bit" Nullable="false" />
<Property Name="SicknessDesignation" Type="nvarchar(max)" Nullable="false" />
<Property Name="OriginOriginId" Type="int" Nullable="false" />
<Property Name="Result_ResultId" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="ResultSet">
<Key>
<PropertyRef Name="ResultId" />
</Key>
<Property Name="ResultId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Name" Type="nvarchar(max)" Nullable="false" />
<Property Name="Description" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="DoctortypeSet">
<Key>
<PropertyRef Name="TypeId" />
</Key>
<Property Name="TypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Name" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="PersonSet_Doctor">
<Key>
<PropertyRef Name="PersonId" />
</Key>
<Property Name="DoctorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="DoctortypeId" Type="int" Nullable="false" />
<Property Name="PersonId" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="PersonSet_Patient">
<Key>
<PropertyRef Name="PersonId" />
</Key>
<Property Name="PatientId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="PersonId" Type="int" Nullable="false" />
<Property Name="Exam_ExamId" Type="int" Nullable="false" />
</EntityType>
<Association Name="ResultExam">
<End Role="Result" Type="EHEC_DB_Model.Store.ResultSet" Multiplicity="1" />
<End Role="Exam" Type="EHEC_DB_Model.Store.ExamSet" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Result">
<PropertyRef Name="ResultId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="Result_ResultId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="DoctorExam">
<End Role="Doctor" Type="EHEC_DB_Model.Store.PersonSet_Doctor" Multiplicity="1" />
<End Role="Exam" Type="EHEC_DB_Model.Store.ExamSet" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Doctor">
<PropertyRef Name="PersonId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="DoctorId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="PatientExam">
<End Role="Patient" Type="EHEC_DB_Model.Store.PersonSet_Patient" Multiplicity="*" />
<End Role="Exam" Type="EHEC_DB_Model.Store.ExamSet" Multiplicity="1" />
<ReferentialConstraint>
<Principal Role="Exam">
<PropertyRef Name="ExamId" />
</Principal>
<Dependent Role="Patient">
<PropertyRef Name="Exam_ExamId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="OriginExam">
<End Role="Origin" Type="EHEC_DB_Model.Store.OriginSet" Multiplicity="1" />
<End Role="Exam" Type="EHEC_DB_Model.Store.ExamSet" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Origin">
<PropertyRef Name="OriginId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="OriginOriginId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="DoctortypeDoctor">
<End Role="Doctortype" Type="EHEC_DB_Model.Store.DoctortypeSet" Multiplicity="1" />
<End Role="Doctor" Type="EHEC_DB_Model.Store.PersonSet_Doctor" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Doctortype">
<PropertyRef Name="TypeId" />
</Principal>
<Dependent Role="Doctor">
<PropertyRef Name="DoctortypeId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Doctor_inherits_Person">
<End Role="Person" Type="EHEC_DB_Model.Store.PersonSet" Multiplicity="1">
<OnDelete Action="Cascade" />
</End>
<End Role="Doctor" Type="EHEC_DB_Model.Store.PersonSet_Doctor" Multiplicity="0..1" />
<ReferentialConstraint>
<Principal Role="Person">
<PropertyRef Name="PersonId" />
</Principal>
<Dependent Role="Doctor">
<PropertyRef Name="PersonId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Patient_inherits_Person">
<End Role="Person" Type="EHEC_DB_Model.Store.PersonSet" Multiplicity="1">
<OnDelete Action="Cascade" />
</End>
<End Role="Patient" Type="EHEC_DB_Model.Store.PersonSet_Patient" Multiplicity="0..1" />
<ReferentialConstraint>
<Principal Role="Person">
<PropertyRef Name="PersonId" />
</Principal>
<Dependent Role="Patient">
<PropertyRef Name="PersonId" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="EHEC_DB_Model" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
<EntityContainer Name="EHEC_DB_ModelContainer" annotation:LazyLoadingEnabled="true">
<EntitySet Name="PersonSet" EntityType="EHEC_DB_Model.Person" />
<EntitySet Name="OriginSet" EntityType="EHEC_DB_Model.Origin" />
<EntitySet Name="ExamSet" EntityType="EHEC_DB_Model.Exam" />
<EntitySet Name="ResultSet" EntityType="EHEC_DB_Model.Result" />
<AssociationSet Name="ResultExam" Association="EHEC_DB_Model.ResultExam">
<End Role="Result" EntitySet="ResultSet" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="DoctorExam" Association="EHEC_DB_Model.DoctorExam">
<End Role="Doctor" EntitySet="PersonSet" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="PatientExam" Association="EHEC_DB_Model.PatientExam">
<End Role="Patient" EntitySet="PersonSet" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<AssociationSet Name="OriginExam" Association="EHEC_DB_Model.OriginExam">
<End Role="Origin" EntitySet="OriginSet" />
<End Role="Exam" EntitySet="ExamSet" />
</AssociationSet>
<EntitySet Name="DoctortypeSet" EntityType="EHEC_DB_Model.Doctortype" />
<AssociationSet Name="DoctortypeDoctor" Association="EHEC_DB_Model.DoctortypeDoctor">
<End Role="Doctortype" EntitySet="DoctortypeSet" />
<End Role="Doctor" EntitySet="PersonSet" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Doctor" BaseType="EHEC_DB_Model.Person">
<Property Name="DoctorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<NavigationProperty Name="Exam" Relationship="EHEC_DB_Model.DoctorExam" FromRole="Doctor" ToRole="Exam" />
<NavigationProperty Name="Doctortype" Relationship="EHEC_DB_Model.DoctortypeDoctor" FromRole="Doctor" ToRole="Doctortype" />
<Property Name="DoctortypeId" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="Person">
<Key>
<PropertyRef Name="PersonId" />
</Key>
<Property Name="PersonId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Firstname" Type="String" Nullable="false" />
<Property Name="Lastname" Type="String" Nullable="false" />
<Property Name="Birthdate" Type="DateTime" Nullable="false" />
<Property Name="Street" Type="String" Nullable="false" />
<Property Name="City" Type="String" Nullable="false" />
</EntityType>
<EntityType Name="Origin">
<Key>
<PropertyRef Name="OriginId" />
</Key>
<Property Name="OriginId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="SicknessId" Type="Int32" Nullable="false" />
<Property Name="Name" Type="String" Nullable="false" />
<Property Name="Street" Type="String" Nullable="false" />
<Property Name="City" Type="String" Nullable="false" />
<NavigationProperty Name="Exam" Relationship="EHEC_DB_Model.OriginExam" FromRole="Origin" ToRole="Exam" />
</EntityType>
<EntityType Name="Exam">
<Key>
<PropertyRef Name="ExamId" />
</Key>
<Property Name="ExamId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<NavigationProperty Name="Result" Relationship="EHEC_DB_Model.ResultExam" FromRole="Exam" ToRole="Result" />
<NavigationProperty Name="Doctor" Relationship="EHEC_DB_Model.DoctorExam" FromRole="Exam" ToRole="Doctor" />
<Property Name="DoctorId" Type="Int32" Nullable="false" />
<NavigationProperty Name="Patient" Relationship="EHEC_DB_Model.PatientExam" FromRole="Exam" ToRole="Patient" />
<Property Name="SicknessStatus" Type="Boolean" Nullable="false" />
<Property Name="SicknessDesignation" Type="String" Nullable="false" />
<NavigationProperty Name="Origin" Relationship="EHEC_DB_Model.OriginExam" FromRole="Exam" ToRole="Origin" />
<Property Name="OriginOriginId" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="Result">
<Key>
<PropertyRef Name="ResultId" />
</Key>
<Property Name="ResultId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<NavigationProperty Name="Exam" Relationship="EHEC_DB_Model.ResultExam" FromRole="Result" ToRole="Exam" />
<Property Name="Name" Type="String" Nullable="false" />
<Property Name="Description" Type="String" Nullable="false" />
</EntityType>
<EntityType Name="Patient" BaseType="EHEC_DB_Model.Person">
<Property Name="PatientId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<NavigationProperty Name="Exam" Relationship="EHEC_DB_Model.PatientExam" FromRole="Patient" ToRole="Exam" />
</EntityType>
<Association Name="ResultExam">
<End Type="EHEC_DB_Model.Result" Role="Result" Multiplicity="1" />
<End Type="EHEC_DB_Model.Exam" Role="Exam" Multiplicity="*" />
</Association>
<Association Name="DoctorExam">
<End Type="EHEC_DB_Model.Doctor" Role="Doctor" Multiplicity="1" />
<End Type="EHEC_DB_Model.Exam" Role="Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Doctor">
<PropertyRef Name="PersonId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="DoctorId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="PatientExam">
<End Type="EHEC_DB_Model.Patient" Role="Patient" Multiplicity="*" />
<End Type="EHEC_DB_Model.Exam" Role="Exam" Multiplicity="1" />
</Association>
<Association Name="OriginExam">
<End Type="EHEC_DB_Model.Origin" Role="Origin" Multiplicity="1" />
<End Type="EHEC_DB_Model.Exam" Role="Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Origin">
<PropertyRef Name="OriginId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="OriginOriginId" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityType Name="Doctortype">
<Key>
<PropertyRef Name="TypeId" />
</Key>
<Property Name="TypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<NavigationProperty Name="Doctor" Relationship="EHEC_DB_Model.DoctortypeDoctor" FromRole="Doctortype" ToRole="Doctor" />
<Property Name="Name" Type="String" Nullable="false" />
</EntityType>
<Association Name="DoctortypeDoctor">
<End Type="EHEC_DB_Model.Doctortype" Role="Doctortype" Multiplicity="1" />
<End Type="EHEC_DB_Model.Doctor" Role="Doctor" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Doctortype">
<PropertyRef Name="TypeId" />
</Principal>
<Dependent Role="Doctor">
<PropertyRef Name="DoctortypeId" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="EHEC_DB_ModelStoreContainer" CdmEntityContainer="EHEC_DB_ModelContainer">
<EntitySetMapping Name="PersonSet">
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Person)">
<MappingFragment StoreEntitySet="PersonSet">
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
<ScalarProperty Name="Firstname" ColumnName="Firstname" />
<ScalarProperty Name="Lastname" ColumnName="Lastname" />
<ScalarProperty Name="Birthdate" ColumnName="Birthdate" />
<ScalarProperty Name="Street" ColumnName="Street" />
<ScalarProperty Name="City" ColumnName="City" />
</MappingFragment>
</EntityTypeMapping>
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Doctor)">
<MappingFragment StoreEntitySet="PersonSet_Doctor">
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
<ScalarProperty Name="DoctorId" ColumnName="DoctorId" />
<ScalarProperty Name="DoctortypeId" ColumnName="DoctortypeId" />
</MappingFragment>
</EntityTypeMapping>
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Patient)">
<MappingFragment StoreEntitySet="PersonSet_Patient">
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
<ScalarProperty Name="PatientId" ColumnName="PatientId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="OriginSet">
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Origin)">
<MappingFragment StoreEntitySet="OriginSet">
<ScalarProperty Name="OriginId" ColumnName="OriginId" />
<ScalarProperty Name="SicknessId" ColumnName="SicknessId" />
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="Street" ColumnName="Street" />
<ScalarProperty Name="City" ColumnName="City" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="ExamSet">
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Exam)">
<MappingFragment StoreEntitySet="ExamSet">
<ScalarProperty Name="ExamId" ColumnName="ExamId" />
<ScalarProperty Name="DoctorId" ColumnName="DoctorId" />
<ScalarProperty Name="SicknessStatus" ColumnName="SicknessStatus" />
<ScalarProperty Name="SicknessDesignation" ColumnName="SicknessDesignation" />
<ScalarProperty Name="OriginOriginId" ColumnName="OriginOriginId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="ResultSet">
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Result)">
<MappingFragment StoreEntitySet="ResultSet">
<ScalarProperty Name="ResultId" ColumnName="ResultId" />
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="Description" ColumnName="Description" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="DoctortypeSet">
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Doctortype)">
<MappingFragment StoreEntitySet="DoctortypeSet">
<ScalarProperty Name="TypeId" ColumnName="TypeId" />
<ScalarProperty Name="Name" ColumnName="Name" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<AssociationSetMapping Name="ResultExam" TypeName="EHEC_DB_Model.ResultExam" StoreEntitySet="ExamSet">
<EndProperty Name="Result">
<ScalarProperty Name="ResultId" ColumnName="Result_ResultId" />
</EndProperty>
<EndProperty Name="Exam">
<ScalarProperty Name="ExamId" ColumnName="ExamId" />
</EndProperty>
</AssociationSetMapping>
<AssociationSetMapping Name="PatientExam" TypeName="EHEC_DB_Model.PatientExam" StoreEntitySet="PersonSet_Patient">
<EndProperty Name="Exam">
<ScalarProperty Name="ExamId" ColumnName="Exam_ExamId" />
</EndProperty>
<EndProperty Name="Patient">
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
</EndProperty>
</AssociationSetMapping>
</EntityContainerMapping>
</Mapping></edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<edmx:Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</edmx:Connection>
<edmx:Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="False" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
<DesignerProperty Name="UseLegacyProvider" Value="False" />
</DesignerInfoPropertySet>
</edmx:Options>
<!-- Diagram content (shape and connector positions) -->
<edmx:Diagrams>
</edmx:Diagrams>
</edmx:Designer>
</edmx:Edmx>