oop_II-6/EHEC_Server/EHEC_Server/Model.edmx

419 lines
23 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_DBModel.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">
<EntityType Name="Doctor">
<Key>
<PropertyRef Name="DoctorId" />
</Key>
<Property Name="DoctorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="DoctorUid" Type="nvarchar(max)" />
<Property Name="FirstName" Type="nvarchar(max)" Nullable="false" />
<Property Name="LastName" Type="nvarchar(max)" Nullable="false" />
<Property Name="DoctorOrigin" Type="nvarchar(max)" Nullable="false" />
<Property Name="Region" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="Exam">
<Key>
<PropertyRef Name="ExamId" />
</Key>
<Property Name="ExamId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="ExamUid" Type="nvarchar(max)" />
<Property Name="DoctorId" Type="int" Nullable="false" />
<Property Name="PatientId" Type="int" Nullable="false" />
<Property Name="ResultId" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="Origin">
<Key>
<PropertyRef Name="OriginId" />
</Key>
<Property Name="OriginId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="OriginUid" Type="nvarchar(max)" />
<Property Name="Name" Type="nvarchar(max)" Nullable="false" />
<Property Name="Food" Type="nvarchar(max)" Nullable="false" />
<Property Name="Street" Type="nvarchar(max)" Nullable="false" />
<Property Name="City" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="Origin_Exam">
<Key>
<PropertyRef Name="Origin_ExamId" />
</Key>
<Property Name="Origin_ExamId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Origin_ExamUid" Type="nvarchar(max)" />
<Property Name="OriginId" Type="int" Nullable="false" />
<Property Name="ExamId" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="Patient">
<Key>
<PropertyRef Name="PatientId" />
</Key>
<Property Name="PatientId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="PatientUid" Type="nvarchar(max)" />
<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" />
<Property Name="Region" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<EntityType Name="Result">
<Key>
<PropertyRef Name="ResultId" />
</Key>
<Property Name="ResultId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="ResultUid" Type="nvarchar(max)" />
<Property Name="Name" Type="nvarchar(max)" Nullable="false" />
</EntityType>
<Association Name="FK_DoctorExam">
<End Role="Doctor" Type="Self.Doctor" Multiplicity="1" />
<End Role="Exam" Type="Self.Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Doctor">
<PropertyRef Name="DoctorId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="DoctorId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Exam">
<End Role="Exam" Type="Self.Exam" Multiplicity="1" />
<End Role="Origin_Exam" Type="Self.Origin_Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Exam">
<PropertyRef Name="ExamId" />
</Principal>
<Dependent Role="Origin_Exam">
<PropertyRef Name="ExamId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Origin">
<End Role="Origin" Type="Self.Origin" Multiplicity="1" />
<End Role="Origin_Exam" Type="Self.Origin_Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Origin">
<PropertyRef Name="OriginId" />
</Principal>
<Dependent Role="Origin_Exam">
<PropertyRef Name="OriginId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_PatientExam">
<End Role="Patient" Type="Self.Patient" Multiplicity="1" />
<End Role="Exam" Type="Self.Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Patient">
<PropertyRef Name="PatientId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="PatientId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_ResultExam">
<End Role="Result" Type="Self.Result" Multiplicity="1" />
<End Role="Exam" Type="Self.Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Result">
<PropertyRef Name="ResultId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="ResultId" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="EHEC_DBModelStoreContainer">
<EntitySet Name="Doctor" EntityType="Self.Doctor" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Exam" EntityType="Self.Exam" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Origin" EntityType="Self.Origin" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Origin_Exam" EntityType="Self.Origin_Exam" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Patient" EntityType="Self.Patient" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Result" EntityType="Self.Result" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK_DoctorExam" Association="Self.FK_DoctorExam">
<End Role="Doctor" EntitySet="Doctor" />
<End Role="Exam" EntitySet="Exam" />
</AssociationSet>
<AssociationSet Name="FK_Exam" Association="Self.FK_Exam">
<End Role="Exam" EntitySet="Exam" />
<End Role="Origin_Exam" EntitySet="Origin_Exam" />
</AssociationSet>
<AssociationSet Name="FK_Origin" Association="Self.FK_Origin">
<End Role="Origin" EntitySet="Origin" />
<End Role="Origin_Exam" EntitySet="Origin_Exam" />
</AssociationSet>
<AssociationSet Name="FK_PatientExam" Association="Self.FK_PatientExam">
<End Role="Patient" EntitySet="Patient" />
<End Role="Exam" EntitySet="Exam" />
</AssociationSet>
<AssociationSet Name="FK_ResultExam" Association="Self.FK_ResultExam">
<End Role="Result" EntitySet="Result" />
<End Role="Exam" EntitySet="Exam" />
</AssociationSet>
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="EHEC_DBModel" 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">
<EntityContainer Name="EHEC_DBEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Doctors" EntityType="EHEC_DBModel.Doctor" />
<EntitySet Name="Exams" EntityType="EHEC_DBModel.Exam" />
<EntitySet Name="Origins" EntityType="EHEC_DBModel.Origin" />
<EntitySet Name="Origin_Exam" EntityType="EHEC_DBModel.Origin_Exam" />
<EntitySet Name="Patients" EntityType="EHEC_DBModel.Patient" />
<EntitySet Name="Results" EntityType="EHEC_DBModel.Result" />
<AssociationSet Name="FK_DoctorExam" Association="EHEC_DBModel.FK_DoctorExam">
<End Role="Doctor" EntitySet="Doctors" />
<End Role="Exam" EntitySet="Exams" />
</AssociationSet>
<AssociationSet Name="FK_Exam" Association="EHEC_DBModel.FK_Exam">
<End Role="Exam" EntitySet="Exams" />
<End Role="Origin_Exam" EntitySet="Origin_Exam" />
</AssociationSet>
<AssociationSet Name="FK_PatientExam" Association="EHEC_DBModel.FK_PatientExam">
<End Role="Patient" EntitySet="Patients" />
<End Role="Exam" EntitySet="Exams" />
</AssociationSet>
<AssociationSet Name="FK_ResultExam" Association="EHEC_DBModel.FK_ResultExam">
<End Role="Result" EntitySet="Results" />
<End Role="Exam" EntitySet="Exams" />
</AssociationSet>
<AssociationSet Name="FK_Origin" Association="EHEC_DBModel.FK_Origin">
<End Role="Origin" EntitySet="Origins" />
<End Role="Origin_Exam" EntitySet="Origin_Exam" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Doctor">
<Key>
<PropertyRef Name="DoctorId" />
</Key>
<Property Name="DoctorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="DoctorUid" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="FirstName" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="LastName" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="DoctorOrigin" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Region" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Exams" Relationship="EHEC_DBModel.FK_DoctorExam" FromRole="Doctor" ToRole="Exam" />
</EntityType>
<EntityType Name="Exam">
<Key>
<PropertyRef Name="ExamId" />
</Key>
<Property Name="ExamId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="ExamUid" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="DoctorId" Type="Int32" Nullable="false" />
<Property Name="PatientId" Type="Int32" Nullable="false" />
<Property Name="ResultId" Type="Int32" Nullable="false" />
<NavigationProperty Name="Doctor" Relationship="EHEC_DBModel.FK_DoctorExam" FromRole="Exam" ToRole="Doctor" />
<NavigationProperty Name="Origin_Exam" Relationship="EHEC_DBModel.FK_Exam" FromRole="Exam" ToRole="Origin_Exam" />
<NavigationProperty Name="Patient" Relationship="EHEC_DBModel.FK_PatientExam" FromRole="Exam" ToRole="Patient" />
<NavigationProperty Name="Result" Relationship="EHEC_DBModel.FK_ResultExam" FromRole="Exam" ToRole="Result" />
</EntityType>
<EntityType Name="Origin">
<Key>
<PropertyRef Name="OriginId" />
</Key>
<Property Name="OriginId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="OriginUid" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Name" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Food" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Street" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="City" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Origin_Exam" Relationship="EHEC_DBModel.FK_Origin" FromRole="Origin" ToRole="Origin_Exam" />
</EntityType>
<EntityType Name="Origin_Exam">
<Key>
<PropertyRef Name="Origin_ExamId" />
</Key>
<Property Name="Origin_ExamId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Origin_ExamUid" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="OriginId" Type="Int32" Nullable="false" />
<Property Name="ExamId" Type="Int32" Nullable="false" />
<NavigationProperty Name="Exam" Relationship="EHEC_DBModel.FK_Exam" FromRole="Origin_Exam" ToRole="Exam" />
<NavigationProperty Name="Origin" Relationship="EHEC_DBModel.FK_Origin" FromRole="Origin_Exam" ToRole="Origin" />
</EntityType>
<EntityType Name="Patient">
<Key>
<PropertyRef Name="PatientId" />
</Key>
<Property Name="PatientId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="PatientUid" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="FirstName" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="LastName" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="BirthDate" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="Street" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="City" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Region" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Exams" Relationship="EHEC_DBModel.FK_PatientExam" FromRole="Patient" ToRole="Exam" />
</EntityType>
<EntityType Name="Result">
<Key>
<PropertyRef Name="ResultId" />
</Key>
<Property Name="ResultId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="ResultUid" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Name" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Exams" Relationship="EHEC_DBModel.FK_ResultExam" FromRole="Result" ToRole="Exam" />
</EntityType>
<Association Name="FK_DoctorExam">
<End Type="EHEC_DBModel.Doctor" Role="Doctor" Multiplicity="1" />
<End Type="EHEC_DBModel.Exam" Role="Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Doctor">
<PropertyRef Name="DoctorId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="DoctorId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Exam">
<End Type="EHEC_DBModel.Exam" Role="Exam" Multiplicity="1" />
<End Type="EHEC_DBModel.Origin_Exam" Role="Origin_Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Exam">
<PropertyRef Name="ExamId" />
</Principal>
<Dependent Role="Origin_Exam">
<PropertyRef Name="ExamId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_PatientExam">
<End Type="EHEC_DBModel.Patient" Role="Patient" Multiplicity="1" />
<End Type="EHEC_DBModel.Exam" Role="Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Patient">
<PropertyRef Name="PatientId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="PatientId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_ResultExam">
<End Type="EHEC_DBModel.Result" Role="Result" Multiplicity="1" />
<End Type="EHEC_DBModel.Exam" Role="Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Result">
<PropertyRef Name="ResultId" />
</Principal>
<Dependent Role="Exam">
<PropertyRef Name="ResultId" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Origin">
<End Type="EHEC_DBModel.Origin" Role="Origin" Multiplicity="1" />
<End Type="EHEC_DBModel.Origin_Exam" Role="Origin_Exam" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Origin">
<PropertyRef Name="OriginId" />
</Principal>
<Dependent Role="Origin_Exam">
<PropertyRef Name="OriginId" />
</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_DBModelStoreContainer" CdmEntityContainer="EHEC_DBEntities">
<EntitySetMapping Name="Doctors">
<EntityTypeMapping TypeName="EHEC_DBModel.Doctor">
<MappingFragment StoreEntitySet="Doctor">
<ScalarProperty Name="Region" ColumnName="Region" />
<ScalarProperty Name="DoctorOrigin" ColumnName="DoctorOrigin" />
<ScalarProperty Name="LastName" ColumnName="LastName" />
<ScalarProperty Name="FirstName" ColumnName="FirstName" />
<ScalarProperty Name="DoctorUid" ColumnName="DoctorUid" />
<ScalarProperty Name="DoctorId" ColumnName="DoctorId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Exams">
<EntityTypeMapping TypeName="EHEC_DBModel.Exam">
<MappingFragment StoreEntitySet="Exam">
<ScalarProperty Name="ResultId" ColumnName="ResultId" />
<ScalarProperty Name="PatientId" ColumnName="PatientId" />
<ScalarProperty Name="DoctorId" ColumnName="DoctorId" />
<ScalarProperty Name="ExamUid" ColumnName="ExamUid" />
<ScalarProperty Name="ExamId" ColumnName="ExamId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Origins">
<EntityTypeMapping TypeName="EHEC_DBModel.Origin">
<MappingFragment StoreEntitySet="Origin">
<ScalarProperty Name="City" ColumnName="City" />
<ScalarProperty Name="Street" ColumnName="Street" />
<ScalarProperty Name="Food" ColumnName="Food" />
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="OriginUid" ColumnName="OriginUid" />
<ScalarProperty Name="OriginId" ColumnName="OriginId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Origin_Exam">
<EntityTypeMapping TypeName="EHEC_DBModel.Origin_Exam">
<MappingFragment StoreEntitySet="Origin_Exam">
<ScalarProperty Name="ExamId" ColumnName="ExamId" />
<ScalarProperty Name="OriginId" ColumnName="OriginId" />
<ScalarProperty Name="Origin_ExamUid" ColumnName="Origin_ExamUid" />
<ScalarProperty Name="Origin_ExamId" ColumnName="Origin_ExamId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Patients">
<EntityTypeMapping TypeName="EHEC_DBModel.Patient">
<MappingFragment StoreEntitySet="Patient">
<ScalarProperty Name="Region" ColumnName="Region" />
<ScalarProperty Name="City" ColumnName="City" />
<ScalarProperty Name="Street" ColumnName="Street" />
<ScalarProperty Name="BirthDate" ColumnName="BirthDate" />
<ScalarProperty Name="LastName" ColumnName="LastName" />
<ScalarProperty Name="FirstName" ColumnName="FirstName" />
<ScalarProperty Name="PatientUid" ColumnName="PatientUid" />
<ScalarProperty Name="PatientId" ColumnName="PatientId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Results">
<EntityTypeMapping TypeName="EHEC_DBModel.Result">
<MappingFragment StoreEntitySet="Result">
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="ResultUid" ColumnName="ResultUid" />
<ScalarProperty Name="ResultId" ColumnName="ResultId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="True" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="false" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>