Db - Changes in the Entites of the DB Model
This commit is contained in:
parent
b0436381a7
commit
e37c860403
|
@ -26,10 +26,8 @@ namespace Web_Server_EHEC.Model
|
|||
}
|
||||
|
||||
public virtual DbSet<Person> PersonSet { get; set; }
|
||||
public virtual DbSet<Status> StatusSet { get; set; }
|
||||
public virtual DbSet<Origin> OriginSet { get; set; }
|
||||
public virtual DbSet<Exam> ExamSet { get; set; }
|
||||
public virtual DbSet<Result> ResultSet { get; set; }
|
||||
public virtual DbSet<Sickness> SicknessSet { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// T4 code generation is enabled for model 'C:\Users\ism_c\source\repos\Web_Server_EHEC\Web_Server_EHEC\Model\EHEC_DB_Model.edmx'.
|
||||
// T4 code generation is enabled for model 'C:\Users\ism_c\source\repos\oop_II-6\Web_Server_EHEC\Web_Server_EHEC\Model\EHEC_DB_Model.edmx'.
|
||||
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
|
||||
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
|
||||
// is open in the designer.
|
||||
|
|
|
@ -7,21 +7,11 @@
|
|||
<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>
|
||||
<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" />
|
||||
|
@ -30,22 +20,18 @@
|
|||
<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>
|
||||
<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>
|
||||
|
@ -55,12 +41,8 @@
|
|||
<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" />
|
||||
<Property Name="Street" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="Place" Type="nvarchar(max)" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="OriginSet">
|
||||
<Key>
|
||||
|
@ -78,6 +60,8 @@
|
|||
</Key>
|
||||
<Property Name="ExamId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="DoctorId" Type="int" Nullable="false" />
|
||||
<Property Name="SicknessStatus" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="SicknessDesignation" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="Result_ResultId" Type="int" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="ResultSet">
|
||||
|
@ -88,23 +72,6 @@
|
|||
<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" />
|
||||
|
@ -112,30 +79,14 @@
|
|||
<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>
|
||||
<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="*" />
|
||||
|
@ -160,18 +111,6 @@
|
|||
</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" />
|
||||
|
@ -184,20 +123,6 @@
|
|||
</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" />
|
||||
|
@ -212,25 +137,29 @@
|
|||
</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="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" />
|
||||
|
@ -239,14 +168,14 @@
|
|||
<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>
|
||||
<AssociationSet Name="OriginExam" Association="EHEC_DB_Model.OriginExam">
|
||||
<End Role="Origin" EntitySet="OriginSet" />
|
||||
<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" />
|
||||
|
@ -259,26 +188,20 @@
|
|||
<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" />
|
||||
<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" />
|
||||
<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" />
|
||||
<Property Name="City" Type="String" Nullable="false" />
|
||||
<NavigationProperty Name="Exam" Relationship="EHEC_DB_Model.OriginExam" FromRole="Origin" ToRole="Exam" />
|
||||
</EntityType>
|
||||
<EntityType Name="Exam">
|
||||
<Key>
|
||||
|
@ -289,6 +212,10 @@
|
|||
<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>
|
||||
|
@ -296,39 +223,13 @@
|
|||
</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" />
|
||||
<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="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="*" />
|
||||
|
@ -345,14 +246,22 @@
|
|||
</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>
|
||||
<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>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
|
@ -366,12 +275,8 @@
|
|||
<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" />
|
||||
<ScalarProperty Name="Street" ColumnName="Street" />
|
||||
<ScalarProperty Name="City" ColumnName="Place" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Doctor)">
|
||||
|
@ -380,11 +285,10 @@
|
|||
<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" />
|
||||
<EntityTypeMapping TypeName="IsTypeOf(EHEC_DB_Model.Patient)">
|
||||
<MappingFragment StoreEntitySet="PersonSet_Patient">
|
||||
<ScalarProperty Name="PersonId" ColumnName="PersonId" />
|
||||
<ScalarProperty Name="PatientId" ColumnName="PatientId" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
|
@ -404,6 +308,8 @@
|
|||
<MappingFragment StoreEntitySet="ExamSet">
|
||||
<ScalarProperty Name="ExamId" ColumnName="ExamId" />
|
||||
<ScalarProperty Name="DoctorId" ColumnName="DoctorId" />
|
||||
<ScalarProperty Name="SicknessStatus" ColumnName="SicknessStatus" />
|
||||
<ScalarProperty Name="SicknessDesignation" ColumnName="SicknessDesignation" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
|
@ -416,22 +322,6 @@
|
|||
</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" />
|
||||
|
@ -440,14 +330,6 @@
|
|||
<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" />
|
||||
|
|
|
@ -5,22 +5,18 @@
|
|||
<!-- Diagram content (shape and connector positions) -->
|
||||
<edmx:Diagrams>
|
||||
<Diagram DiagramId="72878f5930384ee2952c65b3586f5d91" Name="Diagram1" >
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Doctor" Width="1.5" PointX="4.625" PointY="2.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Doctor" Width="1.5" PointX="4.625" PointY="4.375" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Person" Width="1.5" PointX="1.375" PointY="0.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Status" Width="1.5" PointX="7.125" PointY="0.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Origin" Width="1.5" PointX="9.625" PointY="2.875" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Exam" Width="1.5" PointX="5.75" PointY="4.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Result" Width="1.5" PointX="3.5" PointY="4.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Origin" Width="1.5" PointX="10.625" PointY="2.875" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Exam" Width="1.5" PointX="8.125" PointY="0.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Result" Width="1.5" PointX="8.125" PointY="4.375" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Patient" Width="1.5" PointX="4.625" PointY="0.5" />
|
||||
<EntityTypeShape EntityType="EHEC_DB_Model.Sickness" Width="1.5" PointX="9.625" PointY="0.5" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.PatientStatus" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.SicknessOrigin" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.ResultExam" />
|
||||
<InheritanceConnector EntityType="EHEC_DB_Model.Patient" />
|
||||
<InheritanceConnector EntityType="EHEC_DB_Model.Doctor" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.DoctorExam" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.StatusSickness" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.PatientExam" />
|
||||
<AssociationConnector Association="EHEC_DB_Model.OriginExam" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
-- --------------------------------------------------
|
||||
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
|
||||
-- --------------------------------------------------
|
||||
-- Date Created: 06/06/2018 19:01:05
|
||||
-- Generated from EDMX file: C:\Users\ism_c\source\repos\Web_Server_EHEC\Web_Server_EHEC\Model\EHEC_DB_Model.edmx
|
||||
-- Date Created: 06/08/2018 14:41:29
|
||||
-- Generated from EDMX file: C:\Users\ism_c\source\repos\oop_II-6\Web_Server_EHEC\Web_Server_EHEC\Model\EHEC_DB_Model.edmx
|
||||
-- --------------------------------------------------
|
||||
|
||||
SET QUOTED_IDENTIFIER OFF;
|
||||
|
@ -17,11 +17,44 @@ GO
|
|||
-- Dropping existing FOREIGN KEY constraints
|
||||
-- --------------------------------------------------
|
||||
|
||||
IF OBJECT_ID(N'[dbo].[FK_ResultExam]', 'F') IS NOT NULL
|
||||
ALTER TABLE [dbo].[ExamSet] DROP CONSTRAINT [FK_ResultExam];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[FK_DoctorExam]', 'F') IS NOT NULL
|
||||
ALTER TABLE [dbo].[ExamSet] DROP CONSTRAINT [FK_DoctorExam];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[FK_PatientExam]', 'F') IS NOT NULL
|
||||
ALTER TABLE [dbo].[PersonSet_Patient] DROP CONSTRAINT [FK_PatientExam];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[FK_Patient_inherits_Person]', 'F') IS NOT NULL
|
||||
ALTER TABLE [dbo].[PersonSet_Patient] DROP CONSTRAINT [FK_Patient_inherits_Person];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[FK_Doctor_inherits_Person]', 'F') IS NOT NULL
|
||||
ALTER TABLE [dbo].[PersonSet_Doctor] DROP CONSTRAINT [FK_Doctor_inherits_Person];
|
||||
GO
|
||||
|
||||
-- --------------------------------------------------
|
||||
-- Dropping existing tables
|
||||
-- --------------------------------------------------
|
||||
|
||||
IF OBJECT_ID(N'[dbo].[PersonSet]', 'U') IS NOT NULL
|
||||
DROP TABLE [dbo].[PersonSet];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[OriginSet]', 'U') IS NOT NULL
|
||||
DROP TABLE [dbo].[OriginSet];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[ExamSet]', 'U') IS NOT NULL
|
||||
DROP TABLE [dbo].[ExamSet];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[ResultSet]', 'U') IS NOT NULL
|
||||
DROP TABLE [dbo].[ResultSet];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[PersonSet_Patient]', 'U') IS NOT NULL
|
||||
DROP TABLE [dbo].[PersonSet_Patient];
|
||||
GO
|
||||
IF OBJECT_ID(N'[dbo].[PersonSet_Doctor]', 'U') IS NOT NULL
|
||||
DROP TABLE [dbo].[PersonSet_Doctor];
|
||||
GO
|
||||
|
||||
-- --------------------------------------------------
|
||||
-- Creating all tables
|
||||
|
@ -32,13 +65,9 @@ CREATE TABLE [dbo].[PersonSet] (
|
|||
[PersonId] int IDENTITY(1,1) NOT NULL,
|
||||
[Firstname] nvarchar(max) NOT NULL,
|
||||
[Lastname] nvarchar(max) NOT NULL,
|
||||
[Birthdate] nvarchar(max) NOT NULL
|
||||
);
|
||||
GO
|
||||
|
||||
-- Creating table 'StatusSet'
|
||||
CREATE TABLE [dbo].[StatusSet] (
|
||||
[StatusId] int IDENTITY(1,1) NOT NULL
|
||||
[Birthdate] nvarchar(max) NOT NULL,
|
||||
[Street] nvarchar(max) NOT NULL,
|
||||
[Place] nvarchar(max) NOT NULL
|
||||
);
|
||||
GO
|
||||
|
||||
|
@ -56,6 +85,8 @@ GO
|
|||
CREATE TABLE [dbo].[ExamSet] (
|
||||
[ExamId] int IDENTITY(1,1) NOT NULL,
|
||||
[DoctorId] int NOT NULL,
|
||||
[SicknessStatus] nvarchar(max) NOT NULL,
|
||||
[SicknessDesignation] nvarchar(max) NOT NULL,
|
||||
[Result_ResultId] int NOT NULL
|
||||
);
|
||||
GO
|
||||
|
@ -68,11 +99,10 @@ CREATE TABLE [dbo].[ResultSet] (
|
|||
);
|
||||
GO
|
||||
|
||||
-- Creating table 'SicknessSet'
|
||||
CREATE TABLE [dbo].[SicknessSet] (
|
||||
[SicknessId] int IDENTITY(1,1) NOT NULL,
|
||||
[Designation] nvarchar(max) NOT NULL,
|
||||
[Status_StatusId] int NOT NULL
|
||||
-- Creating table 'PersonSet_Doctor'
|
||||
CREATE TABLE [dbo].[PersonSet_Doctor] (
|
||||
[DoctorId] int IDENTITY(1,1) NOT NULL,
|
||||
[PersonId] int NOT NULL
|
||||
);
|
||||
GO
|
||||
|
||||
|
@ -80,18 +110,10 @@ GO
|
|||
CREATE TABLE [dbo].[PersonSet_Patient] (
|
||||
[PatientId] int IDENTITY(1,1) NOT NULL,
|
||||
[PersonId] int NOT NULL,
|
||||
[Status_StatusId] int NOT NULL,
|
||||
[Exam_ExamId] int NOT NULL
|
||||
);
|
||||
GO
|
||||
|
||||
-- Creating table 'PersonSet_Doctor'
|
||||
CREATE TABLE [dbo].[PersonSet_Doctor] (
|
||||
[DoctorId] int IDENTITY(1,1) NOT NULL,
|
||||
[PersonId] int NOT NULL
|
||||
);
|
||||
GO
|
||||
|
||||
-- --------------------------------------------------
|
||||
-- Creating all PRIMARY KEY constraints
|
||||
-- --------------------------------------------------
|
||||
|
@ -102,12 +124,6 @@ ADD CONSTRAINT [PK_PersonSet]
|
|||
PRIMARY KEY CLUSTERED ([PersonId] ASC);
|
||||
GO
|
||||
|
||||
-- Creating primary key on [StatusId] in table 'StatusSet'
|
||||
ALTER TABLE [dbo].[StatusSet]
|
||||
ADD CONSTRAINT [PK_StatusSet]
|
||||
PRIMARY KEY CLUSTERED ([StatusId] ASC);
|
||||
GO
|
||||
|
||||
-- Creating primary key on [OriginId] in table 'OriginSet'
|
||||
ALTER TABLE [dbo].[OriginSet]
|
||||
ADD CONSTRAINT [PK_OriginSet]
|
||||
|
@ -126,10 +142,10 @@ ADD CONSTRAINT [PK_ResultSet]
|
|||
PRIMARY KEY CLUSTERED ([ResultId] ASC);
|
||||
GO
|
||||
|
||||
-- Creating primary key on [SicknessId] in table 'SicknessSet'
|
||||
ALTER TABLE [dbo].[SicknessSet]
|
||||
ADD CONSTRAINT [PK_SicknessSet]
|
||||
PRIMARY KEY CLUSTERED ([SicknessId] ASC);
|
||||
-- Creating primary key on [PersonId] in table 'PersonSet_Doctor'
|
||||
ALTER TABLE [dbo].[PersonSet_Doctor]
|
||||
ADD CONSTRAINT [PK_PersonSet_Doctor]
|
||||
PRIMARY KEY CLUSTERED ([PersonId] ASC);
|
||||
GO
|
||||
|
||||
-- Creating primary key on [PersonId] in table 'PersonSet_Patient'
|
||||
|
@ -138,46 +154,10 @@ ADD CONSTRAINT [PK_PersonSet_Patient]
|
|||
PRIMARY KEY CLUSTERED ([PersonId] ASC);
|
||||
GO
|
||||
|
||||
-- Creating primary key on [PersonId] in table 'PersonSet_Doctor'
|
||||
ALTER TABLE [dbo].[PersonSet_Doctor]
|
||||
ADD CONSTRAINT [PK_PersonSet_Doctor]
|
||||
PRIMARY KEY CLUSTERED ([PersonId] ASC);
|
||||
GO
|
||||
|
||||
-- --------------------------------------------------
|
||||
-- Creating all FOREIGN KEY constraints
|
||||
-- --------------------------------------------------
|
||||
|
||||
-- Creating foreign key on [Status_StatusId] in table 'PersonSet_Patient'
|
||||
ALTER TABLE [dbo].[PersonSet_Patient]
|
||||
ADD CONSTRAINT [FK_PatientStatus]
|
||||
FOREIGN KEY ([Status_StatusId])
|
||||
REFERENCES [dbo].[StatusSet]
|
||||
([StatusId])
|
||||
ON DELETE NO ACTION ON UPDATE NO ACTION;
|
||||
GO
|
||||
|
||||
-- Creating non-clustered index for FOREIGN KEY 'FK_PatientStatus'
|
||||
CREATE INDEX [IX_FK_PatientStatus]
|
||||
ON [dbo].[PersonSet_Patient]
|
||||
([Status_StatusId]);
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [SicknessId] in table 'OriginSet'
|
||||
ALTER TABLE [dbo].[OriginSet]
|
||||
ADD CONSTRAINT [FK_SicknessOrigin]
|
||||
FOREIGN KEY ([SicknessId])
|
||||
REFERENCES [dbo].[SicknessSet]
|
||||
([SicknessId])
|
||||
ON DELETE NO ACTION ON UPDATE NO ACTION;
|
||||
GO
|
||||
|
||||
-- Creating non-clustered index for FOREIGN KEY 'FK_SicknessOrigin'
|
||||
CREATE INDEX [IX_FK_SicknessOrigin]
|
||||
ON [dbo].[OriginSet]
|
||||
([SicknessId]);
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [Result_ResultId] in table 'ExamSet'
|
||||
ALTER TABLE [dbo].[ExamSet]
|
||||
ADD CONSTRAINT [FK_ResultExam]
|
||||
|
@ -208,21 +188,6 @@ ON [dbo].[ExamSet]
|
|||
([DoctorId]);
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [Status_StatusId] in table 'SicknessSet'
|
||||
ALTER TABLE [dbo].[SicknessSet]
|
||||
ADD CONSTRAINT [FK_StatusSickness]
|
||||
FOREIGN KEY ([Status_StatusId])
|
||||
REFERENCES [dbo].[StatusSet]
|
||||
([StatusId])
|
||||
ON DELETE NO ACTION ON UPDATE NO ACTION;
|
||||
GO
|
||||
|
||||
-- Creating non-clustered index for FOREIGN KEY 'FK_StatusSickness'
|
||||
CREATE INDEX [IX_FK_StatusSickness]
|
||||
ON [dbo].[SicknessSet]
|
||||
([Status_StatusId]);
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [Exam_ExamId] in table 'PersonSet_Patient'
|
||||
ALTER TABLE [dbo].[PersonSet_Patient]
|
||||
ADD CONSTRAINT [FK_PatientExam]
|
||||
|
@ -238,15 +203,6 @@ ON [dbo].[PersonSet_Patient]
|
|||
([Exam_ExamId]);
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [PersonId] in table 'PersonSet_Patient'
|
||||
ALTER TABLE [dbo].[PersonSet_Patient]
|
||||
ADD CONSTRAINT [FK_Patient_inherits_Person]
|
||||
FOREIGN KEY ([PersonId])
|
||||
REFERENCES [dbo].[PersonSet]
|
||||
([PersonId])
|
||||
ON DELETE CASCADE ON UPDATE NO ACTION;
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [PersonId] in table 'PersonSet_Doctor'
|
||||
ALTER TABLE [dbo].[PersonSet_Doctor]
|
||||
ADD CONSTRAINT [FK_Doctor_inherits_Person]
|
||||
|
@ -256,6 +212,15 @@ ADD CONSTRAINT [FK_Doctor_inherits_Person]
|
|||
ON DELETE CASCADE ON UPDATE NO ACTION;
|
||||
GO
|
||||
|
||||
-- Creating foreign key on [PersonId] in table 'PersonSet_Patient'
|
||||
ALTER TABLE [dbo].[PersonSet_Patient]
|
||||
ADD CONSTRAINT [FK_Patient_inherits_Person]
|
||||
FOREIGN KEY ([PersonId])
|
||||
REFERENCES [dbo].[PersonSet]
|
||||
([PersonId])
|
||||
ON DELETE CASCADE ON UPDATE NO ACTION;
|
||||
GO
|
||||
|
||||
-- --------------------------------------------------
|
||||
-- Script has ended
|
||||
-- --------------------------------------------------
|
|
@ -22,10 +22,14 @@ namespace Web_Server_EHEC.Model
|
|||
|
||||
public int ExamId { get; set; }
|
||||
public int DoctorId { get; set; }
|
||||
public bool SicknessStatus { get; set; }
|
||||
public string SicknessDesignation { get; set; }
|
||||
public int OriginOriginId { get; set; }
|
||||
|
||||
public virtual Result Result { get; set; }
|
||||
public virtual Doctor Doctor { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Patient> Patient { get; set; }
|
||||
public virtual Origin Origin { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,12 +14,19 @@ namespace Web_Server_EHEC.Model
|
|||
|
||||
public partial class Origin
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Origin()
|
||||
{
|
||||
this.Exam = new HashSet<Exam>();
|
||||
}
|
||||
|
||||
public int OriginId { get; set; }
|
||||
public int SicknessId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string City { get; set; }
|
||||
public string Street { get; set; }
|
||||
public string City { get; set; }
|
||||
|
||||
public virtual Sickness Sickness { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Exam> Exam { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ namespace Web_Server_EHEC.Model
|
|||
{
|
||||
public int PatientId { get; set; }
|
||||
|
||||
public virtual Status Status { get; set; }
|
||||
public virtual Exam Exam { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,8 @@ namespace Web_Server_EHEC.Model
|
|||
public int PersonId { get; set; }
|
||||
public string Firstname { get; set; }
|
||||
public string Lastname { get; set; }
|
||||
public string Birthdate { get; set; }
|
||||
public System.DateTime Birthdate { get; set; }
|
||||
public string Street { get; set; }
|
||||
public string City { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,8 +21,8 @@ namespace Web_Server_EHEC.Model
|
|||
}
|
||||
|
||||
public int ResultId { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Exam> Exam { get; set; }
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Web_Server_EHEC.Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Sickness
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Sickness()
|
||||
{
|
||||
this.Origin = new HashSet<Origin>();
|
||||
}
|
||||
|
||||
public int SicknessId { get; set; }
|
||||
public string Designation { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Origin> Origin { get; set; }
|
||||
public virtual Status Status { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Web_Server_EHEC.Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Status
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Status()
|
||||
{
|
||||
this.Patient = new HashSet<Patient>();
|
||||
}
|
||||
|
||||
public int StatusId { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Patient> Patient { get; set; }
|
||||
public virtual Sickness Sickness { get; set; }
|
||||
}
|
||||
}
|
|
@ -142,12 +142,6 @@
|
|||
<Compile Include="Model\Result.cs">
|
||||
<DependentUpon>EHEC_DB_Model.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Model\Sickness.cs">
|
||||
<DependentUpon>EHEC_DB_Model.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Model\Status.cs">
|
||||
<DependentUpon>EHEC_DB_Model.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Service.svc.cs">
|
||||
<DependentUpon>Service.svc</DependentUpon>
|
||||
|
|
Loading…
Reference in New Issue