|
@@ -0,0 +1,911 @@
|
|
|
+<?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="Хранилище user1Model" 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="analyzer">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="blood">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Patient" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Barcode" Type="int" Nullable="false" />
|
|
|
+ <Property Name="date" Type="nchar" MaxLength="15" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="bloodServices">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Service" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Result" Type="nvarchar" MaxLength="10" Nullable="false" />
|
|
|
+ <Property Name="Finished" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="Accepted" Type="nchar" MaxLength="5" Nullable="false" />
|
|
|
+ <Property Name="Status" Type="nvarchar" MaxLength="20" Nullable="false" />
|
|
|
+ <Property Name="Analyzer" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="IdUser" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="history">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="idUser" Type="int" Nullable="false" />
|
|
|
+ <Property Name="EnterTime" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="IsGood" Type="nchar" MaxLength="5" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="listOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdOrder" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdService" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="orders">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Date" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="IdListOrder" Type="int" Nullable="false" />
|
|
|
+ <Property Name="StatusOrder" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="StatusService" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="DateEx" Type="date" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="patients">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="FullName" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="login" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Guid" Type="uniqueidentifier" Nullable="false" />
|
|
|
+ <Property Name="Email" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="SocialSecNumber" Type="nchar" MaxLength="10" Nullable="false" />
|
|
|
+ <Property Name="Ein" Type="nchar" MaxLength="10" Nullable="false" />
|
|
|
+ <Property Name="SocialType" Type="nchar" MaxLength="3" Nullable="false" />
|
|
|
+ <Property Name="Phone" Type="nvarchar" MaxLength="15" Nullable="false" />
|
|
|
+ <Property Name="PassportS" Type="nchar" MaxLength="4" Nullable="false" />
|
|
|
+ <Property Name="PassportN" Type="nchar" MaxLength="6" Nullable="false" />
|
|
|
+ <Property Name="BirthDateTimestamp" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="IdCompany" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="role">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="SCompany">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Country" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Adress" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="Inn" Type="nchar" MaxLength="7" Nullable="false" />
|
|
|
+ <Property Name="RSchet" Type="nchar" MaxLength="9" Nullable="false" />
|
|
|
+ <Property Name="Bik" Type="nchar" MaxLength="9" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="services">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="NameService" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Price" Type="nchar" MaxLength="10" Nullable="false" />
|
|
|
+ <Property Name="TypeResult" Type="nvarchar" MaxLength="20" Nullable="false" />
|
|
|
+ <Property Name="Analyzer" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="servicesRendered">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdService" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Date" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="IdUser" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdPatient" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdAnalyzer" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="users">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Ip" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="LastEnter" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="Services" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Type" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_blood_patients">
|
|
|
+ <End Role="patients" Type="Self.patients" Multiplicity="1" />
|
|
|
+ <End Role="blood" Type="Self.blood" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="patients">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="blood">
|
|
|
+ <PropertyRef Name="Patient" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_bloodServices_services">
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="1" />
|
|
|
+ <End Role="bloodServices" Type="Self.bloodServices" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="services">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="bloodServices">
|
|
|
+ <PropertyRef Name="Service" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_bloodServices_users">
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="1" />
|
|
|
+ <End Role="bloodServices" Type="Self.bloodServices" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="users">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="bloodServices">
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_history_users">
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="1" />
|
|
|
+ <End Role="history" Type="Self.history" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="users">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="history">
|
|
|
+ <PropertyRef Name="idUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_listOrder_orders">
|
|
|
+ <End Role="orders" Type="Self.orders" Multiplicity="1" />
|
|
|
+ <End Role="listOrder" Type="Self.listOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="orders">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="listOrder">
|
|
|
+ <PropertyRef Name="IdOrder" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_listOrder_services">
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="1" />
|
|
|
+ <End Role="listOrder" Type="Self.listOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="services">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="listOrder">
|
|
|
+ <PropertyRef Name="IdService" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_patients_SCompany">
|
|
|
+ <End Role="SCompany" Type="Self.SCompany" Multiplicity="1" />
|
|
|
+ <End Role="patients" Type="Self.patients" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="SCompany">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="patients">
|
|
|
+ <PropertyRef Name="IdCompany" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_services_analyzer">
|
|
|
+ <End Role="analyzer" Type="Self.analyzer" Multiplicity="1" />
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="analyzer">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="services">
|
|
|
+ <PropertyRef Name="Analyzer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_analyzer">
|
|
|
+ <End Role="analyzer" Type="Self.analyzer" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="analyzer">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdAnalyzer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_patients">
|
|
|
+ <End Role="patients" Type="Self.patients" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="patients">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdPatient" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_services">
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="services">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdService" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_users">
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="users">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_users_role">
|
|
|
+ <End Role="role" Type="Self.role" Multiplicity="1" />
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="role">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="users">
|
|
|
+ <PropertyRef Name="Type" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="Хранилище user1ModelContainer">
|
|
|
+ <EntitySet Name="analyzer" EntityType="Self.analyzer" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="blood" EntityType="Self.blood" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="bloodServices" EntityType="Self.bloodServices" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="history" EntityType="Self.history" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="listOrder" EntityType="Self.listOrder" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="orders" EntityType="Self.orders" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="patients" EntityType="Self.patients" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="role" EntityType="Self.role" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="SCompany" EntityType="Self.SCompany" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="services" EntityType="Self.services" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="servicesRendered" EntityType="Self.servicesRendered" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="users" EntityType="Self.users" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK_blood_patients" Association="Self.FK_blood_patients">
|
|
|
+ <End Role="patients" EntitySet="patients" />
|
|
|
+ <End Role="blood" EntitySet="blood" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_bloodServices_services" Association="Self.FK_bloodServices_services">
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ <End Role="bloodServices" EntitySet="bloodServices" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_bloodServices_users" Association="Self.FK_bloodServices_users">
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ <End Role="bloodServices" EntitySet="bloodServices" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_history_users" Association="Self.FK_history_users">
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ <End Role="history" EntitySet="history" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_listOrder_orders" Association="Self.FK_listOrder_orders">
|
|
|
+ <End Role="orders" EntitySet="orders" />
|
|
|
+ <End Role="listOrder" EntitySet="listOrder" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_listOrder_services" Association="Self.FK_listOrder_services">
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ <End Role="listOrder" EntitySet="listOrder" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_patients_SCompany" Association="Self.FK_patients_SCompany">
|
|
|
+ <End Role="SCompany" EntitySet="SCompany" />
|
|
|
+ <End Role="patients" EntitySet="patients" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_services_analyzer" Association="Self.FK_services_analyzer">
|
|
|
+ <End Role="analyzer" EntitySet="analyzer" />
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_analyzer" Association="Self.FK_servicesRendered_analyzer">
|
|
|
+ <End Role="analyzer" EntitySet="analyzer" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_patients" Association="Self.FK_servicesRendered_patients">
|
|
|
+ <End Role="patients" EntitySet="patients" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_services" Association="Self.FK_servicesRendered_services">
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_users" Association="Self.FK_servicesRendered_users">
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_users_role" Association="Self.FK_users_role">
|
|
|
+ <End Role="role" EntitySet="role" />
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema>
|
|
|
+ </edmx:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="user1Model" 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">
|
|
|
+ <EntityType Name="analyzer">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="services" Relationship="Self.FK_services_analyzer" FromRole="analyzer" ToRole="services" />
|
|
|
+ <NavigationProperty Name="servicesRendered" Relationship="Self.FK_servicesRendered_analyzer" FromRole="analyzer" ToRole="servicesRendered" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="blood">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Patient" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Barcode" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="date" Type="String" MaxLength="15" FixedLength="true" Unicode="true" />
|
|
|
+ <NavigationProperty Name="patients" Relationship="Self.FK_blood_patients" FromRole="blood" ToRole="patients" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="bloodServices">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Service" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Result" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Finished" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Accepted" Type="String" MaxLength="5" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Status" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Analyzer" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="IdUser" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="services" Relationship="Self.FK_bloodServices_services" FromRole="bloodServices" ToRole="services" />
|
|
|
+ <NavigationProperty Name="users" Relationship="Self.FK_bloodServices_users" FromRole="bloodServices" ToRole="users" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="history">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="idUser" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="EnterTime" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="IsGood" Type="String" MaxLength="5" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="users" Relationship="Self.FK_history_users" FromRole="history" ToRole="users" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="listOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdOrder" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdService" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="orders" Relationship="Self.FK_listOrder_orders" FromRole="listOrder" ToRole="orders" />
|
|
|
+ <NavigationProperty Name="services" Relationship="Self.FK_listOrder_services" FromRole="listOrder" ToRole="services" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="orders">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Date" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="IdListOrder" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="StatusOrder" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="StatusService" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="DateEx" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
+ <NavigationProperty Name="listOrder" Relationship="Self.FK_listOrder_orders" FromRole="orders" ToRole="listOrder" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="patients">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="FullName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Guid" Type="Guid" Nullable="false" />
|
|
|
+ <Property Name="Email" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="SocialSecNumber" Type="String" MaxLength="10" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Ein" Type="String" MaxLength="10" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="SocialType" Type="String" MaxLength="3" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Phone" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="PassportS" Type="String" MaxLength="4" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="PassportN" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="BirthDateTimestamp" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="IdCompany" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="blood" Relationship="Self.FK_blood_patients" FromRole="patients" ToRole="blood" />
|
|
|
+ <NavigationProperty Name="SCompany" Relationship="Self.FK_patients_SCompany" FromRole="patients" ToRole="SCompany" />
|
|
|
+ <NavigationProperty Name="servicesRendered" Relationship="Self.FK_servicesRendered_patients" FromRole="patients" ToRole="servicesRendered" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="role">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="users" Relationship="Self.FK_users_role" FromRole="role" ToRole="users" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="SCompany">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Country" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Adress" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Inn" Type="String" MaxLength="7" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="RSchet" Type="String" MaxLength="9" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Bik" Type="String" MaxLength="9" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="patients" Relationship="Self.FK_patients_SCompany" FromRole="SCompany" ToRole="patients" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="services">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="NameService" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Price" Type="String" MaxLength="10" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="TypeResult" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Analyzer" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="analyzer1" Relationship="Self.FK_services_analyzer" FromRole="services" ToRole="analyzer" />
|
|
|
+ <NavigationProperty Name="bloodServices" Relationship="Self.FK_bloodServices_services" FromRole="services" ToRole="bloodServices" />
|
|
|
+ <NavigationProperty Name="listOrder" Relationship="Self.FK_listOrder_services" FromRole="services" ToRole="listOrder" />
|
|
|
+ <NavigationProperty Name="servicesRendered" Relationship="Self.FK_servicesRendered_services" FromRole="services" ToRole="servicesRendered" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="servicesRendered">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdService" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Date" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="IdUser" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdPatient" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdAnalyzer" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="analyzer" Relationship="Self.FK_servicesRendered_analyzer" FromRole="servicesRendered" ToRole="analyzer" />
|
|
|
+ <NavigationProperty Name="patients" Relationship="Self.FK_servicesRendered_patients" FromRole="servicesRendered" ToRole="patients" />
|
|
|
+ <NavigationProperty Name="services" Relationship="Self.FK_servicesRendered_services" FromRole="servicesRendered" ToRole="services" />
|
|
|
+ <NavigationProperty Name="users" Relationship="Self.FK_servicesRendered_users" FromRole="servicesRendered" ToRole="users" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="users">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Ip" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="LastEnter" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="Services" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Type" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="bloodServices" Relationship="Self.FK_bloodServices_users" FromRole="users" ToRole="bloodServices" />
|
|
|
+ <NavigationProperty Name="history" Relationship="Self.FK_history_users" FromRole="users" ToRole="history" />
|
|
|
+ <NavigationProperty Name="role" Relationship="Self.FK_users_role" FromRole="users" ToRole="role" />
|
|
|
+ <NavigationProperty Name="servicesRendered" Relationship="Self.FK_servicesRendered_users" FromRole="users" ToRole="servicesRendered" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_services_analyzer">
|
|
|
+ <End Role="analyzer" Type="Self.analyzer" Multiplicity="1" />
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="analyzer">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="services">
|
|
|
+ <PropertyRef Name="Analyzer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_analyzer">
|
|
|
+ <End Role="analyzer" Type="Self.analyzer" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="analyzer">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdAnalyzer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_blood_patients">
|
|
|
+ <End Role="patients" Type="Self.patients" Multiplicity="1" />
|
|
|
+ <End Role="blood" Type="Self.blood" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="patients">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="blood">
|
|
|
+ <PropertyRef Name="Patient" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_bloodServices_services">
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="1" />
|
|
|
+ <End Role="bloodServices" Type="Self.bloodServices" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="services">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="bloodServices">
|
|
|
+ <PropertyRef Name="Service" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_bloodServices_users">
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="1" />
|
|
|
+ <End Role="bloodServices" Type="Self.bloodServices" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="users">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="bloodServices">
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_history_users">
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="1" />
|
|
|
+ <End Role="history" Type="Self.history" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="users">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="history">
|
|
|
+ <PropertyRef Name="idUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_listOrder_orders">
|
|
|
+ <End Role="orders" Type="Self.orders" Multiplicity="1" />
|
|
|
+ <End Role="listOrder" Type="Self.listOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="orders">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="listOrder">
|
|
|
+ <PropertyRef Name="IdOrder" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_listOrder_services">
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="1" />
|
|
|
+ <End Role="listOrder" Type="Self.listOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="services">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="listOrder">
|
|
|
+ <PropertyRef Name="IdService" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_patients_SCompany">
|
|
|
+ <End Role="SCompany" Type="Self.SCompany" Multiplicity="1" />
|
|
|
+ <End Role="patients" Type="Self.patients" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="SCompany">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="patients">
|
|
|
+ <PropertyRef Name="IdCompany" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_patients">
|
|
|
+ <End Role="patients" Type="Self.patients" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="patients">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdPatient" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_users_role">
|
|
|
+ <End Role="role" Type="Self.role" Multiplicity="1" />
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="role">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="users">
|
|
|
+ <PropertyRef Name="Type" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_services">
|
|
|
+ <End Role="services" Type="Self.services" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="services">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdService" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_servicesRendered_users">
|
|
|
+ <End Role="users" Type="Self.users" Multiplicity="1" />
|
|
|
+ <End Role="servicesRendered" Type="Self.servicesRendered" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="users">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="servicesRendered">
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="user1Entities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="analyzer" EntityType="Self.analyzer" />
|
|
|
+ <EntitySet Name="blood" EntityType="Self.blood" />
|
|
|
+ <EntitySet Name="bloodServices" EntityType="Self.bloodServices" />
|
|
|
+ <EntitySet Name="history" EntityType="Self.history" />
|
|
|
+ <EntitySet Name="listOrder" EntityType="Self.listOrder" />
|
|
|
+ <EntitySet Name="orders" EntityType="Self.orders" />
|
|
|
+ <EntitySet Name="patients" EntityType="Self.patients" />
|
|
|
+ <EntitySet Name="role" EntityType="Self.role" />
|
|
|
+ <EntitySet Name="SCompany" EntityType="Self.SCompany" />
|
|
|
+ <EntitySet Name="services" EntityType="Self.services" />
|
|
|
+ <EntitySet Name="servicesRendered" EntityType="Self.servicesRendered" />
|
|
|
+ <EntitySet Name="users" EntityType="Self.users" />
|
|
|
+ <AssociationSet Name="FK_services_analyzer" Association="Self.FK_services_analyzer">
|
|
|
+ <End Role="analyzer" EntitySet="analyzer" />
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_analyzer" Association="Self.FK_servicesRendered_analyzer">
|
|
|
+ <End Role="analyzer" EntitySet="analyzer" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_blood_patients" Association="Self.FK_blood_patients">
|
|
|
+ <End Role="patients" EntitySet="patients" />
|
|
|
+ <End Role="blood" EntitySet="blood" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_bloodServices_services" Association="Self.FK_bloodServices_services">
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ <End Role="bloodServices" EntitySet="bloodServices" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_bloodServices_users" Association="Self.FK_bloodServices_users">
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ <End Role="bloodServices" EntitySet="bloodServices" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_history_users" Association="Self.FK_history_users">
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ <End Role="history" EntitySet="history" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_listOrder_orders" Association="Self.FK_listOrder_orders">
|
|
|
+ <End Role="orders" EntitySet="orders" />
|
|
|
+ <End Role="listOrder" EntitySet="listOrder" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_listOrder_services" Association="Self.FK_listOrder_services">
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ <End Role="listOrder" EntitySet="listOrder" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_patients_SCompany" Association="Self.FK_patients_SCompany">
|
|
|
+ <End Role="SCompany" EntitySet="SCompany" />
|
|
|
+ <End Role="patients" EntitySet="patients" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_patients" Association="Self.FK_servicesRendered_patients">
|
|
|
+ <End Role="patients" EntitySet="patients" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_users_role" Association="Self.FK_users_role">
|
|
|
+ <End Role="role" EntitySet="role" />
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_services" Association="Self.FK_servicesRendered_services">
|
|
|
+ <End Role="services" EntitySet="services" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_servicesRendered_users" Association="Self.FK_servicesRendered_users">
|
|
|
+ <End Role="users" EntitySet="users" />
|
|
|
+ <End Role="servicesRendered" EntitySet="servicesRendered" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </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="Хранилище user1ModelContainer" CdmEntityContainer="user1Entities">
|
|
|
+ <EntitySetMapping Name="analyzer">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.analyzer">
|
|
|
+ <MappingFragment StoreEntitySet="analyzer">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="blood">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.blood">
|
|
|
+ <MappingFragment StoreEntitySet="blood">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Patient" ColumnName="Patient" />
|
|
|
+ <ScalarProperty Name="Barcode" ColumnName="Barcode" />
|
|
|
+ <ScalarProperty Name="date" ColumnName="date" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="bloodServices">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.bloodServices">
|
|
|
+ <MappingFragment StoreEntitySet="bloodServices">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Service" ColumnName="Service" />
|
|
|
+ <ScalarProperty Name="Result" ColumnName="Result" />
|
|
|
+ <ScalarProperty Name="Finished" ColumnName="Finished" />
|
|
|
+ <ScalarProperty Name="Accepted" ColumnName="Accepted" />
|
|
|
+ <ScalarProperty Name="Status" ColumnName="Status" />
|
|
|
+ <ScalarProperty Name="Analyzer" ColumnName="Analyzer" />
|
|
|
+ <ScalarProperty Name="IdUser" ColumnName="IdUser" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="history">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.history">
|
|
|
+ <MappingFragment StoreEntitySet="history">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
+ <ScalarProperty Name="EnterTime" ColumnName="EnterTime" />
|
|
|
+ <ScalarProperty Name="IsGood" ColumnName="IsGood" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="listOrder">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.listOrder">
|
|
|
+ <MappingFragment StoreEntitySet="listOrder">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="IdOrder" ColumnName="IdOrder" />
|
|
|
+ <ScalarProperty Name="IdService" ColumnName="IdService" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="orders">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.orders">
|
|
|
+ <MappingFragment StoreEntitySet="orders">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Date" ColumnName="Date" />
|
|
|
+ <ScalarProperty Name="IdListOrder" ColumnName="IdListOrder" />
|
|
|
+ <ScalarProperty Name="StatusOrder" ColumnName="StatusOrder" />
|
|
|
+ <ScalarProperty Name="StatusService" ColumnName="StatusService" />
|
|
|
+ <ScalarProperty Name="DateEx" ColumnName="DateEx" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="patients">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.patients">
|
|
|
+ <MappingFragment StoreEntitySet="patients">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="FullName" ColumnName="FullName" />
|
|
|
+ <ScalarProperty Name="login" ColumnName="login" />
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ <ScalarProperty Name="Guid" ColumnName="Guid" />
|
|
|
+ <ScalarProperty Name="Email" ColumnName="Email" />
|
|
|
+ <ScalarProperty Name="SocialSecNumber" ColumnName="SocialSecNumber" />
|
|
|
+ <ScalarProperty Name="Ein" ColumnName="Ein" />
|
|
|
+ <ScalarProperty Name="SocialType" ColumnName="SocialType" />
|
|
|
+ <ScalarProperty Name="Phone" ColumnName="Phone" />
|
|
|
+ <ScalarProperty Name="PassportS" ColumnName="PassportS" />
|
|
|
+ <ScalarProperty Name="PassportN" ColumnName="PassportN" />
|
|
|
+ <ScalarProperty Name="BirthDateTimestamp" ColumnName="BirthDateTimestamp" />
|
|
|
+ <ScalarProperty Name="IdCompany" ColumnName="IdCompany" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="role">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.role">
|
|
|
+ <MappingFragment StoreEntitySet="role">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="SCompany">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.SCompany">
|
|
|
+ <MappingFragment StoreEntitySet="SCompany">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Country" ColumnName="Country" />
|
|
|
+ <ScalarProperty Name="Adress" ColumnName="Adress" />
|
|
|
+ <ScalarProperty Name="Inn" ColumnName="Inn" />
|
|
|
+ <ScalarProperty Name="RSchet" ColumnName="RSchet" />
|
|
|
+ <ScalarProperty Name="Bik" ColumnName="Bik" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="services">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.services">
|
|
|
+ <MappingFragment StoreEntitySet="services">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="NameService" ColumnName="NameService" />
|
|
|
+ <ScalarProperty Name="Price" ColumnName="Price" />
|
|
|
+ <ScalarProperty Name="TypeResult" ColumnName="TypeResult" />
|
|
|
+ <ScalarProperty Name="Analyzer" ColumnName="Analyzer" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="servicesRendered">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.servicesRendered">
|
|
|
+ <MappingFragment StoreEntitySet="servicesRendered">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="IdService" ColumnName="IdService" />
|
|
|
+ <ScalarProperty Name="Date" ColumnName="Date" />
|
|
|
+ <ScalarProperty Name="IdUser" ColumnName="IdUser" />
|
|
|
+ <ScalarProperty Name="IdPatient" ColumnName="IdPatient" />
|
|
|
+ <ScalarProperty Name="IdAnalyzer" ColumnName="IdAnalyzer" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="users">
|
|
|
+ <EntityTypeMapping TypeName="user1Model.users">
|
|
|
+ <MappingFragment StoreEntitySet="users">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ <ScalarProperty Name="Ip" ColumnName="Ip" />
|
|
|
+ <ScalarProperty Name="LastEnter" ColumnName="LastEnter" />
|
|
|
+ <ScalarProperty Name="Services" ColumnName="Services" />
|
|
|
+ <ScalarProperty Name="Type" ColumnName="Type" />
|
|
|
+ </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="false" />
|
|
|
+ <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
|
+ <DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
|
+ <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
|
|
|
+ </DesignerInfoPropertySet>
|
|
|
+ </Options>
|
|
|
+ <!-- Diagram content (shape and connector positions) -->
|
|
|
+ <Diagrams></Diagrams>
|
|
|
+ </Designer>
|
|
|
+</edmx:Edmx>
|