|
@@ -0,0 +1,521 @@
|
|
|
+<?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="Хранилище MFSystemModel" 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="Buying_Goods">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Buying_Goods" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Buying_Goods" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="ID_Goods" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ID_User" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Data_Buying_Goods" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="Quantity" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Employees">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_User" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ID_Position" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Goods">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Goods" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Title_Goods" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="ID_Type_Goods" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Price_Goods" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Picture" Type="varchar(max)" />
|
|
|
+ <Property Name="Description" Type="varchar(max)" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Position">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Position" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Position" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Title_Position" 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="Title_Role" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Type_Goods">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Type_Goods" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Type_Goods" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Title_Type_Goods" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="User">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_User" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Surname_User" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Name_User" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Login_User" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Password_User" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Phone_User" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="ID_Role" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Address" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Videos">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Video" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Video" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Video" Type="varchar(max)" Nullable="false" />
|
|
|
+ <Property Name="ID_User" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ID_Goods" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Buying_Goods_Goods1">
|
|
|
+ <End Role="Goods" Type="Self.Goods" Multiplicity="1" />
|
|
|
+ <End Role="Buying_Goods" Type="Self.Buying_Goods" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Goods">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Buying_Goods">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Buying_Goods_User1">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
+ <End Role="Buying_Goods" Type="Self.Buying_Goods" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Buying_Goods">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Employees_Position1">
|
|
|
+ <End Role="Position" Type="Self.Position" Multiplicity="1" />
|
|
|
+ <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Position">
|
|
|
+ <PropertyRef Name="ID_Position" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Employees">
|
|
|
+ <PropertyRef Name="ID_Position" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Employees_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
+ <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Employees">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Goods_Type_Goods1">
|
|
|
+ <End Role="Type_Goods" Type="Self.Type_Goods" Multiplicity="1" />
|
|
|
+ <End Role="Goods" Type="Self.Goods" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Type_Goods">
|
|
|
+ <PropertyRef Name="ID_Type_Goods" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Goods">
|
|
|
+ <PropertyRef Name="ID_Type_Goods" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_User_Role1">
|
|
|
+ <End Role="Role" Type="Self.Role" Multiplicity="1" />
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Role">
|
|
|
+ <PropertyRef Name="ID_Role" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="ID_Role" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Videos_Goods">
|
|
|
+ <End Role="Goods" Type="Self.Goods" Multiplicity="1" />
|
|
|
+ <End Role="Videos" Type="Self.Videos" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Goods">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Videos">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Videos_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
+ <End Role="Videos" Type="Self.Videos" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Videos">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="Хранилище MFSystemModelContainer">
|
|
|
+ <EntitySet Name="Buying_Goods" EntityType="Self.Buying_Goods" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Goods" EntityType="Self.Goods" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Position" EntityType="Self.Position" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Type_Goods" EntityType="Self.Type_Goods" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Videos" EntityType="Self.Videos" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK_Buying_Goods_Goods1" Association="Self.FK_Buying_Goods_Goods1">
|
|
|
+ <End Role="Goods" EntitySet="Goods" />
|
|
|
+ <End Role="Buying_Goods" EntitySet="Buying_Goods" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Buying_Goods_User1" Association="Self.FK_Buying_Goods_User1">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Buying_Goods" EntitySet="Buying_Goods" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Employees_Position1" Association="Self.FK_Employees_Position1">
|
|
|
+ <End Role="Position" EntitySet="Position" />
|
|
|
+ <End Role="Employees" EntitySet="Employees" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Employees_User" Association="Self.FK_Employees_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Employees" EntitySet="Employees" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Goods_Type_Goods1" Association="Self.FK_Goods_Type_Goods1">
|
|
|
+ <End Role="Type_Goods" EntitySet="Type_Goods" />
|
|
|
+ <End Role="Goods" EntitySet="Goods" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_User_Role1" Association="Self.FK_User_Role1">
|
|
|
+ <End Role="Role" EntitySet="Role" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Videos_Goods" Association="Self.FK_Videos_Goods">
|
|
|
+ <End Role="Goods" EntitySet="Goods" />
|
|
|
+ <End Role="Videos" EntitySet="Videos" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Videos_User" Association="Self.FK_Videos_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Videos" EntitySet="Videos" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema>
|
|
|
+ </edmx:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="MFSystemModel" 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="Buying_Goods">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Buying_Goods" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Buying_Goods" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="ID_Goods" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ID_User" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Data_Buying_Goods" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="Quantity" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Goods" Relationship="Self.FK_Buying_Goods_Goods1" FromRole="Buying_Goods" ToRole="Goods" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_Buying_Goods_User1" FromRole="Buying_Goods" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Goods">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Goods" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Title_Goods" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="ID_Type_Goods" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Price_Goods" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Picture" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
|
|
+ <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
|
|
+ <NavigationProperty Name="Buying_Goods" Relationship="Self.FK_Buying_Goods_Goods1" FromRole="Goods" ToRole="Buying_Goods" />
|
|
|
+ <NavigationProperty Name="Type_Goods" Relationship="Self.FK_Goods_Type_Goods1" FromRole="Goods" ToRole="Type_Goods" />
|
|
|
+ <NavigationProperty Name="Videos" Relationship="Self.FK_Videos_Goods" FromRole="Goods" ToRole="Videos" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Position">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Position" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Position" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Title_Position" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.Employees" FromRole="Position" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Role">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Role" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Title_Role" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_User_Role1" FromRole="Role" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Type_Goods">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Type_Goods" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Type_Goods" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Title_Type_Goods" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Goods" Relationship="Self.FK_Goods_Type_Goods1" FromRole="Type_Goods" ToRole="Goods" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="User">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_User" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Surname_User" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Name_User" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Login_User" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Password_User" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="Phone_User" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="ID_Role" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Address" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Buying_Goods" Relationship="Self.FK_Buying_Goods_User1" FromRole="User" ToRole="Buying_Goods" />
|
|
|
+ <NavigationProperty Name="Role" Relationship="Self.FK_User_Role1" FromRole="User" ToRole="Role" />
|
|
|
+ <NavigationProperty Name="Videos" Relationship="Self.FK_Videos_User" FromRole="User" ToRole="Videos" />
|
|
|
+ <NavigationProperty Name="Position" Relationship="Self.Employees" FromRole="User" ToRole="Position" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Videos">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID_Video" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID_Video" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Video" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
|
|
|
+ <Property Name="ID_User" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ID_Goods" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Goods" Relationship="Self.FK_Videos_Goods" FromRole="Videos" ToRole="Goods" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_Videos_User" FromRole="Videos" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Buying_Goods_Goods1">
|
|
|
+ <End Role="Goods" Type="Self.Goods" Multiplicity="1" />
|
|
|
+ <End Role="Buying_Goods" Type="Self.Buying_Goods" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Goods">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Buying_Goods">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Buying_Goods_User1">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
+ <End Role="Buying_Goods" Type="Self.Buying_Goods" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Buying_Goods">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Goods_Type_Goods1">
|
|
|
+ <End Role="Type_Goods" Type="Self.Type_Goods" Multiplicity="1" />
|
|
|
+ <End Role="Goods" Type="Self.Goods" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Type_Goods">
|
|
|
+ <PropertyRef Name="ID_Type_Goods" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Goods">
|
|
|
+ <PropertyRef Name="ID_Type_Goods" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Videos_Goods">
|
|
|
+ <End Role="Goods" Type="Self.Goods" Multiplicity="1" />
|
|
|
+ <End Role="Videos" Type="Self.Videos" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Goods">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Videos">
|
|
|
+ <PropertyRef Name="ID_Goods" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_User_Role1">
|
|
|
+ <End Role="Role" Type="Self.Role" Multiplicity="1" />
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Role">
|
|
|
+ <PropertyRef Name="ID_Role" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="ID_Role" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Videos_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
+ <End Role="Videos" Type="Self.Videos" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Videos">
|
|
|
+ <PropertyRef Name="ID_User" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="Employees">
|
|
|
+ <End Role="Position" Type="Self.Position" Multiplicity="0..1" />
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="MFSystemEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Buying_Goods" EntityType="Self.Buying_Goods" />
|
|
|
+ <EntitySet Name="Goods" EntityType="Self.Goods" />
|
|
|
+ <EntitySet Name="Position" EntityType="Self.Position" />
|
|
|
+ <EntitySet Name="Role" EntityType="Self.Role" />
|
|
|
+ <EntitySet Name="Type_Goods" EntityType="Self.Type_Goods" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" />
|
|
|
+ <EntitySet Name="Videos" EntityType="Self.Videos" />
|
|
|
+ <AssociationSet Name="FK_Buying_Goods_Goods1" Association="Self.FK_Buying_Goods_Goods1">
|
|
|
+ <End Role="Goods" EntitySet="Goods" />
|
|
|
+ <End Role="Buying_Goods" EntitySet="Buying_Goods" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Buying_Goods_User1" Association="Self.FK_Buying_Goods_User1">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Buying_Goods" EntitySet="Buying_Goods" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Goods_Type_Goods1" Association="Self.FK_Goods_Type_Goods1">
|
|
|
+ <End Role="Type_Goods" EntitySet="Type_Goods" />
|
|
|
+ <End Role="Goods" EntitySet="Goods" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Videos_Goods" Association="Self.FK_Videos_Goods">
|
|
|
+ <End Role="Goods" EntitySet="Goods" />
|
|
|
+ <End Role="Videos" EntitySet="Videos" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_User_Role1" Association="Self.FK_User_Role1">
|
|
|
+ <End Role="Role" EntitySet="Role" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Videos_User" Association="Self.FK_Videos_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Videos" EntitySet="Videos" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="Employees" Association="Self.Employees">
|
|
|
+ <End Role="Position" EntitySet="Position" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </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="Хранилище MFSystemModelContainer" CdmEntityContainer="MFSystemEntities">
|
|
|
+ <EntitySetMapping Name="Buying_Goods">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.Buying_Goods">
|
|
|
+ <MappingFragment StoreEntitySet="Buying_Goods">
|
|
|
+ <ScalarProperty Name="ID_Buying_Goods" ColumnName="ID_Buying_Goods" />
|
|
|
+ <ScalarProperty Name="ID_Goods" ColumnName="ID_Goods" />
|
|
|
+ <ScalarProperty Name="ID_User" ColumnName="ID_User" />
|
|
|
+ <ScalarProperty Name="Data_Buying_Goods" ColumnName="Data_Buying_Goods" />
|
|
|
+ <ScalarProperty Name="Quantity" ColumnName="Quantity" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Goods">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.Goods">
|
|
|
+ <MappingFragment StoreEntitySet="Goods">
|
|
|
+ <ScalarProperty Name="ID_Goods" ColumnName="ID_Goods" />
|
|
|
+ <ScalarProperty Name="Title_Goods" ColumnName="Title_Goods" />
|
|
|
+ <ScalarProperty Name="ID_Type_Goods" ColumnName="ID_Type_Goods" />
|
|
|
+ <ScalarProperty Name="Price_Goods" ColumnName="Price_Goods" />
|
|
|
+ <ScalarProperty Name="Picture" ColumnName="Picture" />
|
|
|
+ <ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Position">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.Position">
|
|
|
+ <MappingFragment StoreEntitySet="Position">
|
|
|
+ <ScalarProperty Name="ID_Position" ColumnName="ID_Position" />
|
|
|
+ <ScalarProperty Name="Title_Position" ColumnName="Title_Position" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Role">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.Role">
|
|
|
+ <MappingFragment StoreEntitySet="Role">
|
|
|
+ <ScalarProperty Name="ID_Role" ColumnName="ID_Role" />
|
|
|
+ <ScalarProperty Name="Title_Role" ColumnName="Title_Role" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Type_Goods">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.Type_Goods">
|
|
|
+ <MappingFragment StoreEntitySet="Type_Goods">
|
|
|
+ <ScalarProperty Name="ID_Type_Goods" ColumnName="ID_Type_Goods" />
|
|
|
+ <ScalarProperty Name="Title_Type_Goods" ColumnName="Title_Type_Goods" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="User">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.User">
|
|
|
+ <MappingFragment StoreEntitySet="User">
|
|
|
+ <ScalarProperty Name="ID_User" ColumnName="ID_User" />
|
|
|
+ <ScalarProperty Name="Surname_User" ColumnName="Surname_User" />
|
|
|
+ <ScalarProperty Name="Name_User" ColumnName="Name_User" />
|
|
|
+ <ScalarProperty Name="Login_User" ColumnName="Login_User" />
|
|
|
+ <ScalarProperty Name="Password_User" ColumnName="Password_User" />
|
|
|
+ <ScalarProperty Name="Phone_User" ColumnName="Phone_User" />
|
|
|
+ <ScalarProperty Name="ID_Role" ColumnName="ID_Role" />
|
|
|
+ <ScalarProperty Name="Address" ColumnName="Address" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Videos">
|
|
|
+ <EntityTypeMapping TypeName="MFSystemModel.Videos">
|
|
|
+ <MappingFragment StoreEntitySet="Videos">
|
|
|
+ <ScalarProperty Name="ID_Video" ColumnName="ID_Video" />
|
|
|
+ <ScalarProperty Name="Video" ColumnName="Video" />
|
|
|
+ <ScalarProperty Name="ID_User" ColumnName="ID_User" />
|
|
|
+ <ScalarProperty Name="ID_Goods" ColumnName="ID_Goods" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <AssociationSetMapping Name="Employees" TypeName="MFSystemModel.Employees" StoreEntitySet="Employees">
|
|
|
+ <EndProperty Name="Position">
|
|
|
+ <ScalarProperty Name="ID_Position" ColumnName="ID_Position" />
|
|
|
+ </EndProperty>
|
|
|
+ <EndProperty Name="User">
|
|
|
+ <ScalarProperty Name="ID_User" ColumnName="ID_User" />
|
|
|
+ </EndProperty>
|
|
|
+ </AssociationSetMapping>
|
|
|
+ </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>
|