123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- <?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="Хранилище Model" 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="Medicine">
- <Key>
- <PropertyRef Name="ID_Medicine" />
- </Key>
- <Property Name="ID_Medicine" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name_Medicine" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Vid" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Price" Type="int" />
- </EntityType>
- <EntityType Name="Pol">
- <Key>
- <PropertyRef Name="ID_Gender" />
- </Key>
- <Property Name="ID_Gender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Gender" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Role">
- <Key>
- <PropertyRef Name="ID_Role" />
- </Key>
- <Property Name="ID_Role" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Role" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Used_medicined">
- <Key>
- <PropertyRef Name="ID_Used_Medicine" />
- </Key>
- <Property Name="ID_Used_Medicine" Type="int" Nullable="false" />
- <Property Name="ID_Medicine" Type="int" Nullable="false" />
- <Property Name="ID_User" Type="int" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="ID_User" />
- </Key>
- <Property Name="ID_User" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Surname" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Birthday" Type="date" Nullable="false" />
- <Property Name="ID_Gender" Type="int" />
- <Property Name="Login" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Password" Type="int" Nullable="false" />
- <Property Name="ID_Role" Type="int" />
- </EntityType>
- <Association Name="FK_Used_medicined_Medicine">
- <End Role="Medicine" Type="Self.Medicine" Multiplicity="1" />
- <End Role="Used_medicined" Type="Self.Used_medicined" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Medicine">
- <PropertyRef Name="ID_Medicine" />
- </Principal>
- <Dependent Role="Used_medicined">
- <PropertyRef Name="ID_Medicine" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Used_medicined_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
- <End Role="Used_medicined" Type="Self.Used_medicined" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_User" />
- </Principal>
- <Dependent Role="Used_medicined">
- <PropertyRef Name="ID_User" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Pol">
- <End Role="Pol" Type="Self.Pol" Multiplicity="0..1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Pol">
- <PropertyRef Name="ID_Gender" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="ID_Gender" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Role">
- <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Role">
- <PropertyRef Name="ID_Role" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="ID_Role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище ModelContainer">
- <EntitySet Name="Medicine" EntityType="Self.Medicine" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Pol" EntityType="Self.Pol" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Used_medicined" EntityType="Self.Used_medicined" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Used_medicined_Medicine" Association="Self.FK_Used_medicined_Medicine">
- <End Role="Medicine" EntitySet="Medicine" />
- <End Role="Used_medicined" EntitySet="Used_medicined" />
- </AssociationSet>
- <AssociationSet Name="FK_Used_medicined_Users" Association="Self.FK_Used_medicined_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Used_medicined" EntitySet="Used_medicined" />
- </AssociationSet>
- <AssociationSet Name="FK_Users_Pol" Association="Self.FK_Users_Pol">
- <End Role="Pol" EntitySet="Pol" />
- <End Role="Users" EntitySet="Users" />
- </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="Model" 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="Medicine">
- <Key>
- <PropertyRef Name="ID_Medicine" />
- </Key>
- <Property Name="ID_Medicine" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name_Medicine" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Vid" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Price" Type="Int32" />
- <NavigationProperty Name="Used_medicined" Relationship="Self.FK_Used_medicined_Medicine" FromRole="Medicine" ToRole="Used_medicined" />
- </EntityType>
- <EntityType Name="Pol">
- <Key>
- <PropertyRef Name="ID_Gender" />
- </Key>
- <Property Name="ID_Gender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Gender" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Users" Relationship="Self.FK_Users_Pol" FromRole="Pol" ToRole="Users" />
- </EntityType>
- <EntityType Name="Role">
- <Key>
- <PropertyRef Name="ID_Role" />
- </Key>
- <Property Name="ID_Role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Role1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Users" Relationship="Self.FK_Users_Role" FromRole="Role" ToRole="Users" />
- </EntityType>
- <EntityType Name="Used_medicined">
- <Key>
- <PropertyRef Name="ID_Used_Medicine" />
- </Key>
- <Property Name="ID_Used_Medicine" Type="Int32" Nullable="false" />
- <Property Name="ID_Medicine" Type="Int32" Nullable="false" />
- <Property Name="ID_User" Type="Int32" />
- <NavigationProperty Name="Medicine" Relationship="Self.FK_Used_medicined_Medicine" FromRole="Used_medicined" ToRole="Medicine" />
- <NavigationProperty Name="Users" Relationship="Self.FK_Used_medicined_Users" FromRole="Used_medicined" ToRole="Users" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="ID_User" />
- </Key>
- <Property Name="ID_User" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Birthday" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="ID_Gender" Type="Int32" />
- <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Password" Type="Int32" Nullable="false" />
- <Property Name="ID_Role" Type="Int32" />
- <NavigationProperty Name="Pol" Relationship="Self.FK_Users_Pol" FromRole="Users" ToRole="Pol" />
- <NavigationProperty Name="Role" Relationship="Self.FK_Users_Role" FromRole="Users" ToRole="Role" />
- <NavigationProperty Name="Used_medicined" Relationship="Self.FK_Used_medicined_Users" FromRole="Users" ToRole="Used_medicined" />
- </EntityType>
- <Association Name="FK_Used_medicined_Medicine">
- <End Role="Medicine" Type="Self.Medicine" Multiplicity="1" />
- <End Role="Used_medicined" Type="Self.Used_medicined" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Medicine">
- <PropertyRef Name="ID_Medicine" />
- </Principal>
- <Dependent Role="Used_medicined">
- <PropertyRef Name="ID_Medicine" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Pol">
- <End Role="Pol" Type="Self.Pol" Multiplicity="0..1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Pol">
- <PropertyRef Name="ID_Gender" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="ID_Gender" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Role">
- <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Role">
- <PropertyRef Name="ID_Role" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="ID_Role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Used_medicined_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
- <End Role="Used_medicined" Type="Self.Used_medicined" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID_User" />
- </Principal>
- <Dependent Role="Used_medicined">
- <PropertyRef Name="ID_User" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Entities3" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Medicine" EntityType="Self.Medicine" />
- <EntitySet Name="Pol" EntityType="Self.Pol" />
- <EntitySet Name="Role" EntityType="Self.Role" />
- <EntitySet Name="Used_medicined" EntityType="Self.Used_medicined" />
- <EntitySet Name="Users" EntityType="Self.Users" />
- <AssociationSet Name="FK_Used_medicined_Medicine" Association="Self.FK_Used_medicined_Medicine">
- <End Role="Medicine" EntitySet="Medicine" />
- <End Role="Used_medicined" EntitySet="Used_medicined" />
- </AssociationSet>
- <AssociationSet Name="FK_Users_Pol" Association="Self.FK_Users_Pol">
- <End Role="Pol" EntitySet="Pol" />
- <End Role="Users" EntitySet="Users" />
- </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_Used_medicined_Users" Association="Self.FK_Used_medicined_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Used_medicined" EntitySet="Used_medicined" />
- </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="Хранилище ModelContainer" CdmEntityContainer="Entities3">
- <EntitySetMapping Name="Medicine">
- <EntityTypeMapping TypeName="Model.Medicine">
- <MappingFragment StoreEntitySet="Medicine">
- <ScalarProperty Name="ID_Medicine" ColumnName="ID_Medicine" />
- <ScalarProperty Name="Name_Medicine" ColumnName="Name_Medicine" />
- <ScalarProperty Name="Vid" ColumnName="Vid" />
- <ScalarProperty Name="Price" ColumnName="Price" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Pol">
- <EntityTypeMapping TypeName="Model.Pol">
- <MappingFragment StoreEntitySet="Pol">
- <ScalarProperty Name="ID_Gender" ColumnName="ID_Gender" />
- <ScalarProperty Name="Gender" ColumnName="Gender" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Role">
- <EntityTypeMapping TypeName="Model.Role">
- <MappingFragment StoreEntitySet="Role">
- <ScalarProperty Name="ID_Role" ColumnName="ID_Role" />
- <ScalarProperty Name="Role1" ColumnName="Role" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Used_medicined">
- <EntityTypeMapping TypeName="Model.Used_medicined">
- <MappingFragment StoreEntitySet="Used_medicined">
- <ScalarProperty Name="ID_Used_Medicine" ColumnName="ID_Used_Medicine" />
- <ScalarProperty Name="ID_Medicine" ColumnName="ID_Medicine" />
- <ScalarProperty Name="ID_User" ColumnName="ID_User" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Users">
- <EntityTypeMapping TypeName="Model.Users">
- <MappingFragment StoreEntitySet="Users">
- <ScalarProperty Name="ID_User" ColumnName="ID_User" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Surname" ColumnName="Surname" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="ID_Gender" ColumnName="ID_Gender" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="ID_Role" ColumnName="ID_Role" />
- </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>
|