482 lines
24 KiB
XML
482 lines
24 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="StatusSet" EntityType="EHEC_DB_Model.Store.StatusSet" 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="SicknessSet" EntityType="EHEC_DB_Model.Store.SicknessSet" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="PersonSet_Patient" EntityType="EHEC_DB_Model.Store.PersonSet_Patient" store:Type="Tables" Schema="dbo" />
|
|
<EntitySet Name="PersonSet_Doctor" EntityType="EHEC_DB_Model.Store.PersonSet_Doctor" store:Type="Tables" Schema="dbo" />
|
|
<AssociationSet Name="PatientStatus" Association="EHEC_DB_Model.Store.PatientStatus">
|
|
<End Role="Patient" EntitySet="PersonSet_Patient" />
|
|
<End Role="Status" EntitySet="StatusSet" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="SicknessOrigin" Association="EHEC_DB_Model.Store.SicknessOrigin">
|
|
<End Role="Sickness" EntitySet="SicknessSet" />
|
|
<End Role="Origin" EntitySet="OriginSet" />
|
|
</AssociationSet>
|
|
<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="StatusSickness" Association="EHEC_DB_Model.Store.StatusSickness">
|
|
<End Role="Status" EntitySet="StatusSet" />
|
|
<End Role="Sickness" EntitySet="SicknessSet" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="PatientExam" Association="EHEC_DB_Model.Store.PatientExam">
|
|
<End Role="Patient" EntitySet="PersonSet_Patient" />
|
|
<End Role="Exam" EntitySet="ExamSet" />
|
|
</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>
|
|
<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>
|
|
</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="nvarchar(max)" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="StatusSet">
|
|
<Key>
|
|
<PropertyRef Name="StatusId" />
|
|
</Key>
|
|
<Property Name="StatusId" Type="int" StoreGeneratedPattern="Identity" 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="City" Type="nvarchar(max)" Nullable="false" />
|
|
<Property Name="Street" 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="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="Description" Type="nvarchar(max)" Nullable="false" />
|
|
<Property Name="Name" Type="nvarchar(max)" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="SicknessSet">
|
|
<Key>
|
|
<PropertyRef Name="SicknessId" />
|
|
</Key>
|
|
<Property Name="SicknessId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="Designation" Type="nvarchar(max)" Nullable="false" />
|
|
<Property Name="Status_StatusId" 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="Status_StatusId" Type="int" Nullable="false" />
|
|
<Property Name="Exam_ExamId" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="PersonSet_Doctor">
|
|
<Key>
|
|
<PropertyRef Name="PersonId" />
|
|
</Key>
|
|
<Property Name="DoctorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="PersonId" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
<Association Name="PatientStatus">
|
|
<End Role="Patient" Type="EHEC_DB_Model.Store.PersonSet_Patient" Multiplicity="*" />
|
|
<End Role="Status" Type="EHEC_DB_Model.Store.StatusSet" Multiplicity="1" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Status">
|
|
<PropertyRef Name="StatusId" />
|
|
</Principal>
|
|
<Dependent Role="Patient">
|
|
<PropertyRef Name="Status_StatusId" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Association Name="SicknessOrigin">
|
|
<End Role="Sickness" Type="EHEC_DB_Model.Store.SicknessSet" Multiplicity="1" />
|
|
<End Role="Origin" Type="EHEC_DB_Model.Store.OriginSet" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Sickness">
|
|
<PropertyRef Name="SicknessId" />
|
|
</Principal>
|
|
<Dependent Role="Origin">
|
|
<PropertyRef Name="SicknessId" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<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="StatusSickness">
|
|
<End Role="Status" Type="EHEC_DB_Model.Store.StatusSet" Multiplicity="1" />
|
|
<End Role="Sickness" Type="EHEC_DB_Model.Store.SicknessSet" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Status">
|
|
<PropertyRef Name="StatusId" />
|
|
</Principal>
|
|
<Dependent Role="Sickness">
|
|
<PropertyRef Name="Status_StatusId" />
|
|
</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="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>
|
|
<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>
|
|
</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="StatusSet" EntityType="EHEC_DB_Model.Status" />
|
|
<EntitySet Name="OriginSet" EntityType="EHEC_DB_Model.Origin" />
|
|
<EntitySet Name="ExamSet" EntityType="EHEC_DB_Model.Exam" />
|
|
<EntitySet Name="ResultSet" EntityType="EHEC_DB_Model.Result" />
|
|
<EntitySet Name="SicknessSet" EntityType="EHEC_DB_Model.Sickness" />
|
|
<AssociationSet Name="PatientStatus" Association="EHEC_DB_Model.PatientStatus">
|
|
<End Role="Patient" EntitySet="PersonSet" />
|
|
<End Role="Status" EntitySet="StatusSet" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="SicknessOrigin" Association="EHEC_DB_Model.SicknessOrigin">
|
|
<End Role="Sickness" EntitySet="SicknessSet" />
|
|
<End Role="Origin" EntitySet="OriginSet" />
|
|
</AssociationSet>
|
|
<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="StatusSickness" Association="EHEC_DB_Model.StatusSickness">
|
|
<End Role="Status" EntitySet="StatusSet" />
|
|
<End Role="Sickness" EntitySet="SicknessSet" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="PatientExam" Association="EHEC_DB_Model.PatientExam">
|
|
<End Role="Patient" EntitySet="PersonSet" />
|
|
<End Role="Exam" EntitySet="ExamSet" />
|
|
</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" />
|
|
</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="String" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="Status">
|
|
<Key>
|
|
<PropertyRef Name="StatusId" />
|
|
</Key>
|
|
<Property Name="StatusId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="Patient" Relationship="EHEC_DB_Model.PatientStatus" FromRole="Status" ToRole="Patient" />
|
|
<NavigationProperty Name="Sickness" Relationship="EHEC_DB_Model.StatusSickness" FromRole="Status" ToRole="Sickness" />
|
|
</EntityType>
|
|
<EntityType Name="Origin">
|
|
<Key>
|
|
<PropertyRef Name="OriginId" />
|
|
</Key>
|
|
<Property Name="OriginId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="Sickness" Relationship="EHEC_DB_Model.SicknessOrigin" FromRole="Origin" ToRole="Sickness" />
|
|
<Property Name="SicknessId" Type="Int32" Nullable="false" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="City" Type="String" Nullable="false" />
|
|
<Property Name="Street" Type="String" Nullable="false" />
|
|
</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" />
|
|
</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="Description" Type="String" Nullable="false" />
|
|
<Property Name="Name" 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="Status" Relationship="EHEC_DB_Model.PatientStatus" FromRole="Patient" ToRole="Status" />
|
|
<NavigationProperty Name="Exam" Relationship="EHEC_DB_Model.PatientExam" FromRole="Patient" ToRole="Exam" />
|
|
</EntityType>
|
|
<EntityType Name="Sickness">
|
|
<Key>
|
|
<PropertyRef Name="SicknessId" />
|
|
</Key>
|
|
<Property Name="SicknessId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="Origin" Relationship="EHEC_DB_Model.SicknessOrigin" FromRole="Sickness" ToRole="Origin" />
|
|
<NavigationProperty Name="Status" Relationship="EHEC_DB_Model.StatusSickness" FromRole="Sickness" ToRole="Status" />
|
|
<Property Name="Designation" Type="String" Nullable="false" />
|
|
</EntityType>
|
|
<Association Name="PatientStatus">
|
|
<End Type="EHEC_DB_Model.Patient" Role="Patient" Multiplicity="*" />
|
|
<End Type="EHEC_DB_Model.Status" Role="Status" Multiplicity="1" />
|
|
</Association>
|
|
<Association Name="SicknessOrigin">
|
|
<End Type="EHEC_DB_Model.Sickness" Role="Sickness" Multiplicity="1" />
|
|
<End Type="EHEC_DB_Model.Origin" Role="Origin" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Sickness">
|
|
<PropertyRef Name="SicknessId" />
|
|
</Principal>
|
|
<Dependent Role="Origin">
|
|
<PropertyRef Name="SicknessId" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<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="StatusSickness">
|
|
<End Type="EHEC_DB_Model.Status" Role="Status" Multiplicity="1" />
|
|
<End Type="EHEC_DB_Model.Sickness" Role="Sickness" Multiplicity="0..1" />
|
|
</Association>
|
|
<Association Name="PatientExam">
|
|
<End Type="EHEC_DB_Model.Patient" Role="Patient" Multiplicity="*" />
|
|
<End Type="EHEC_DB_Model.Exam" Role="Exam" Multiplicity="1" />
|
|
</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" />
|
|
</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>
|
|
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Doctor)">
|
|
<MappingFragment StoreEntitySet="PersonSet_Doctor">
|
|
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
|
|
<ScalarProperty Name="DoctorId" ColumnName="DoctorId" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="StatusSet">
|
|
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Status)">
|
|
<MappingFragment StoreEntitySet="StatusSet">
|
|
<ScalarProperty Name="StatusId" ColumnName="StatusId" />
|
|
</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="City" ColumnName="City" />
|
|
<ScalarProperty Name="Street" ColumnName="Street" />
|
|
</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" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="ResultSet">
|
|
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Result)">
|
|
<MappingFragment StoreEntitySet="ResultSet">
|
|
<ScalarProperty Name="ResultId" ColumnName="ResultId" />
|
|
<ScalarProperty Name="Description" ColumnName="Description" />
|
|
<ScalarProperty Name="Name" ColumnName="Name" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="SicknessSet">
|
|
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Sickness)">
|
|
<MappingFragment StoreEntitySet="SicknessSet">
|
|
<ScalarProperty Name="SicknessId" ColumnName="SicknessId" />
|
|
<ScalarProperty Name="Designation" ColumnName="Designation" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<AssociationSetMapping Name="PatientStatus" TypeName="EHEC_DB_Model.PatientStatus" StoreEntitySet="PersonSet_Patient">
|
|
<EndProperty Name="Status">
|
|
<ScalarProperty Name="StatusId" ColumnName="Status_StatusId" />
|
|
</EndProperty>
|
|
<EndProperty Name="Patient">
|
|
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
|
|
</EndProperty>
|
|
</AssociationSetMapping>
|
|
<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="StatusSickness" TypeName="EHEC_DB_Model.StatusSickness" StoreEntitySet="SicknessSet">
|
|
<EndProperty Name="Status">
|
|
<ScalarProperty Name="StatusId" ColumnName="Status_StatusId" />
|
|
</EndProperty>
|
|
<EndProperty Name="Sickness">
|
|
<ScalarProperty Name="SicknessId" ColumnName="SicknessId" />
|
|
</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>
|