123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563 |
- <?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="Хранилище CafeModel" 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="Dishes">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="Price" Type="money" Nullable="false" />
- <Property Name="Picture" Type="image" />
- </EntityType>
- <EntityType Name="EmployeesExchanges">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="IDEmployee" Type="int" Nullable="false" />
- <Property Name="IDExchange" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Exchange">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Date" Type="date" Nullable="false" />
- <Property Name="TimeOfBegin" Type="time" Precision="7" Nullable="false" />
- <Property Name="TimeOfEnd" Type="time" Precision="7" Nullable="false" />
- </EntityType>
- <EntityType Name="OrderDishes">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="IDOrder" Type="int" Nullable="false" />
- <Property Name="IDDish" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Orders">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="IDEmployeeExchange" Type="int" Nullable="false" />
- <Property Name="IDTable" Type="int" Nullable="false" />
- <Property Name="Time" Type="datetime" Nullable="false" />
- <Property Name="SumOfOrder" Type="money" Nullable="false" />
- <Property Name="IsPaid" Type="bit" Nullable="false" />
- <Property Name="IsReady" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="Roles">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RoleName" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <EntityType Name="Tables">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Login" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Password" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="SecondName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
- <Property Name="Email" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="IsFired" Type="bit" Nullable="false" />
- <Property Name="IDRole" Type="int" Nullable="false" />
- </EntityType>
- <Association Name="FK_EmployeesExchanges_Exchange">
- <End Role="Exchange" Type="Self.Exchange" Multiplicity="1" />
- <End Role="EmployeesExchanges" Type="Self.EmployeesExchanges" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Exchange">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="EmployeesExchanges">
- <PropertyRef Name="IDExchange" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_EmployeesExchanges_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="EmployeesExchanges" Type="Self.EmployeesExchanges" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="EmployeesExchanges">
- <PropertyRef Name="IDEmployee" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_OrderDishes_Dishes">
- <End Role="Dishes" Type="Self.Dishes" Multiplicity="1" />
- <End Role="OrderDishes" Type="Self.OrderDishes" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Dishes">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="OrderDishes">
- <PropertyRef Name="IDDish" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_OrderDishes_Orders">
- <End Role="Orders" Type="Self.Orders" Multiplicity="1" />
- <End Role="OrderDishes" Type="Self.OrderDishes" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Orders">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="OrderDishes">
- <PropertyRef Name="IDOrder" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Orders_EmployeesExchanges">
- <End Role="EmployeesExchanges" Type="Self.EmployeesExchanges" Multiplicity="1" />
- <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="EmployeesExchanges">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Orders">
- <PropertyRef Name="IDEmployeeExchange" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Orders_Tables">
- <End Role="Tables" Type="Self.Tables" Multiplicity="1" />
- <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tables">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Orders">
- <PropertyRef Name="IDTable" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Roles">
- <End Role="Roles" Type="Self.Roles" Multiplicity="1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Roles">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="IDRole" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище CafeModelContainer">
- <EntitySet Name="Dishes" EntityType="Self.Dishes" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="EmployeesExchanges" EntityType="Self.EmployeesExchanges" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Exchange" EntityType="Self.Exchange" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="OrderDishes" EntityType="Self.OrderDishes" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Orders" EntityType="Self.Orders" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Roles" EntityType="Self.Roles" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Tables" EntityType="Self.Tables" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_EmployeesExchanges_Exchange" Association="Self.FK_EmployeesExchanges_Exchange">
- <End Role="Exchange" EntitySet="Exchange" />
- <End Role="EmployeesExchanges" EntitySet="EmployeesExchanges" />
- </AssociationSet>
- <AssociationSet Name="FK_EmployeesExchanges_Users" Association="Self.FK_EmployeesExchanges_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="EmployeesExchanges" EntitySet="EmployeesExchanges" />
- </AssociationSet>
- <AssociationSet Name="FK_OrderDishes_Dishes" Association="Self.FK_OrderDishes_Dishes">
- <End Role="Dishes" EntitySet="Dishes" />
- <End Role="OrderDishes" EntitySet="OrderDishes" />
- </AssociationSet>
- <AssociationSet Name="FK_OrderDishes_Orders" Association="Self.FK_OrderDishes_Orders">
- <End Role="Orders" EntitySet="Orders" />
- <End Role="OrderDishes" EntitySet="OrderDishes" />
- </AssociationSet>
- <AssociationSet Name="FK_Orders_EmployeesExchanges" Association="Self.FK_Orders_EmployeesExchanges">
- <End Role="EmployeesExchanges" EntitySet="EmployeesExchanges" />
- <End Role="Orders" EntitySet="Orders" />
- </AssociationSet>
- <AssociationSet Name="FK_Orders_Tables" Association="Self.FK_Orders_Tables">
- <End Role="Tables" EntitySet="Tables" />
- <End Role="Orders" EntitySet="Orders" />
- </AssociationSet>
- <AssociationSet Name="FK_Users_Roles" Association="Self.FK_Users_Roles">
- <End Role="Roles" EntitySet="Roles" />
- <End Role="Users" EntitySet="Users" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="CafeModel" 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="Dishes">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Price" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="Picture" Type="Binary" MaxLength="Max" FixedLength="false" />
- <NavigationProperty Name="OrderDishes" Relationship="Self.FK_OrderDishes_Dishes" FromRole="Dishes" ToRole="OrderDishes" />
- </EntityType>
- <EntityType Name="EmployeesExchanges">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="IDEmployee" Type="Int32" Nullable="false" />
- <Property Name="IDExchange" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Exchange" Relationship="Self.FK_EmployeesExchanges_Exchange" FromRole="EmployeesExchanges" ToRole="Exchange" />
- <NavigationProperty Name="Users" Relationship="Self.FK_EmployeesExchanges_Users" FromRole="EmployeesExchanges" ToRole="Users" />
- <NavigationProperty Name="Orders" Relationship="Self.FK_Orders_EmployeesExchanges" FromRole="EmployeesExchanges" ToRole="Orders" />
- </EntityType>
- <EntityType Name="Exchange">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Date" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="TimeOfBegin" Type="Time" Nullable="false" Precision="7" />
- <Property Name="TimeOfEnd" Type="Time" Nullable="false" Precision="7" />
- <NavigationProperty Name="EmployeesExchanges" Relationship="Self.FK_EmployeesExchanges_Exchange" FromRole="Exchange" ToRole="EmployeesExchanges" />
- </EntityType>
- <EntityType Name="OrderDishes">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="IDOrder" Type="Int32" Nullable="false" />
- <Property Name="IDDish" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Dishes" Relationship="Self.FK_OrderDishes_Dishes" FromRole="OrderDishes" ToRole="Dishes" />
- <NavigationProperty Name="Orders" Relationship="Self.FK_OrderDishes_Orders" FromRole="OrderDishes" ToRole="Orders" />
- </EntityType>
- <EntityType Name="Orders">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="IDEmployeeExchange" Type="Int32" Nullable="false" />
- <Property Name="IDTable" Type="Int32" Nullable="false" />
- <Property Name="Time" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="SumOfOrder" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="IsPaid" Type="Boolean" Nullable="false" />
- <Property Name="IsReady" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="EmployeesExchanges" Relationship="Self.FK_Orders_EmployeesExchanges" FromRole="Orders" ToRole="EmployeesExchanges" />
- <NavigationProperty Name="OrderDishes" Relationship="Self.FK_OrderDishes_Orders" FromRole="Orders" ToRole="OrderDishes" />
- <NavigationProperty Name="Tables" Relationship="Self.FK_Orders_Tables" FromRole="Orders" ToRole="Tables" />
- </EntityType>
- <EntityType Name="Roles">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RoleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Users" Relationship="Self.FK_Users_Roles" FromRole="Roles" ToRole="Users" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <EntityType Name="Tables">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Orders" Relationship="Self.FK_Orders_Tables" FromRole="Tables" ToRole="Orders" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="SecondName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="IsFired" Type="Boolean" Nullable="false" />
- <Property Name="IDRole" Type="Int32" Nullable="false" />
- <NavigationProperty Name="EmployeesExchanges" Relationship="Self.FK_EmployeesExchanges_Users" FromRole="Users" ToRole="EmployeesExchanges" />
- <NavigationProperty Name="Roles" Relationship="Self.FK_Users_Roles" FromRole="Users" ToRole="Roles" />
- </EntityType>
- <Association Name="FK_OrderDishes_Dishes">
- <End Role="Dishes" Type="Self.Dishes" Multiplicity="1" />
- <End Role="OrderDishes" Type="Self.OrderDishes" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Dishes">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="OrderDishes">
- <PropertyRef Name="IDDish" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_EmployeesExchanges_Exchange">
- <End Role="Exchange" Type="Self.Exchange" Multiplicity="1" />
- <End Role="EmployeesExchanges" Type="Self.EmployeesExchanges" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Exchange">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="EmployeesExchanges">
- <PropertyRef Name="IDExchange" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_EmployeesExchanges_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="EmployeesExchanges" Type="Self.EmployeesExchanges" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="EmployeesExchanges">
- <PropertyRef Name="IDEmployee" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Orders_EmployeesExchanges">
- <End Role="EmployeesExchanges" Type="Self.EmployeesExchanges" Multiplicity="1" />
- <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="EmployeesExchanges">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Orders">
- <PropertyRef Name="IDEmployeeExchange" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_OrderDishes_Orders">
- <End Role="Orders" Type="Self.Orders" Multiplicity="1" />
- <End Role="OrderDishes" Type="Self.OrderDishes" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Orders">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="OrderDishes">
- <PropertyRef Name="IDOrder" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Orders_Tables">
- <End Role="Tables" Type="Self.Tables" Multiplicity="1" />
- <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tables">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Orders">
- <PropertyRef Name="IDTable" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Users_Roles">
- <End Role="Roles" Type="Self.Roles" Multiplicity="1" />
- <End Role="Users" Type="Self.Users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Roles">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Users">
- <PropertyRef Name="IDRole" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="CafeEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Dishes" EntityType="Self.Dishes" />
- <EntitySet Name="EmployeesExchanges" EntityType="Self.EmployeesExchanges" />
- <EntitySet Name="Exchange" EntityType="Self.Exchange" />
- <EntitySet Name="OrderDishes" EntityType="Self.OrderDishes" />
- <EntitySet Name="Orders" EntityType="Self.Orders" />
- <EntitySet Name="Roles" EntityType="Self.Roles" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="Tables" EntityType="Self.Tables" />
- <EntitySet Name="Users" EntityType="Self.Users" />
- <AssociationSet Name="FK_OrderDishes_Dishes" Association="Self.FK_OrderDishes_Dishes">
- <End Role="Dishes" EntitySet="Dishes" />
- <End Role="OrderDishes" EntitySet="OrderDishes" />
- </AssociationSet>
- <AssociationSet Name="FK_EmployeesExchanges_Exchange" Association="Self.FK_EmployeesExchanges_Exchange">
- <End Role="Exchange" EntitySet="Exchange" />
- <End Role="EmployeesExchanges" EntitySet="EmployeesExchanges" />
- </AssociationSet>
- <AssociationSet Name="FK_EmployeesExchanges_Users" Association="Self.FK_EmployeesExchanges_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="EmployeesExchanges" EntitySet="EmployeesExchanges" />
- </AssociationSet>
- <AssociationSet Name="FK_Orders_EmployeesExchanges" Association="Self.FK_Orders_EmployeesExchanges">
- <End Role="EmployeesExchanges" EntitySet="EmployeesExchanges" />
- <End Role="Orders" EntitySet="Orders" />
- </AssociationSet>
- <AssociationSet Name="FK_OrderDishes_Orders" Association="Self.FK_OrderDishes_Orders">
- <End Role="Orders" EntitySet="Orders" />
- <End Role="OrderDishes" EntitySet="OrderDishes" />
- </AssociationSet>
- <AssociationSet Name="FK_Orders_Tables" Association="Self.FK_Orders_Tables">
- <End Role="Tables" EntitySet="Tables" />
- <End Role="Orders" EntitySet="Orders" />
- </AssociationSet>
- <AssociationSet Name="FK_Users_Roles" Association="Self.FK_Users_Roles">
- <End Role="Roles" EntitySet="Roles" />
- <End Role="Users" EntitySet="Users" />
- </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="Хранилище CafeModelContainer" CdmEntityContainer="CafeEntities">
- <EntitySetMapping Name="Dishes">
- <EntityTypeMapping TypeName="CafeModel.Dishes">
- <MappingFragment StoreEntitySet="Dishes">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Price" ColumnName="Price" />
- <ScalarProperty Name="Picture" ColumnName="Picture" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="EmployeesExchanges">
- <EntityTypeMapping TypeName="CafeModel.EmployeesExchanges">
- <MappingFragment StoreEntitySet="EmployeesExchanges">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="IDEmployee" ColumnName="IDEmployee" />
- <ScalarProperty Name="IDExchange" ColumnName="IDExchange" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Exchange">
- <EntityTypeMapping TypeName="CafeModel.Exchange">
- <MappingFragment StoreEntitySet="Exchange">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Date" ColumnName="Date" />
- <ScalarProperty Name="TimeOfBegin" ColumnName="TimeOfBegin" />
- <ScalarProperty Name="TimeOfEnd" ColumnName="TimeOfEnd" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="OrderDishes">
- <EntityTypeMapping TypeName="CafeModel.OrderDishes">
- <MappingFragment StoreEntitySet="OrderDishes">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="IDOrder" ColumnName="IDOrder" />
- <ScalarProperty Name="IDDish" ColumnName="IDDish" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Orders">
- <EntityTypeMapping TypeName="CafeModel.Orders">
- <MappingFragment StoreEntitySet="Orders">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="IDEmployeeExchange" ColumnName="IDEmployeeExchange" />
- <ScalarProperty Name="IDTable" ColumnName="IDTable" />
- <ScalarProperty Name="Time" ColumnName="Time" />
- <ScalarProperty Name="SumOfOrder" ColumnName="SumOfOrder" />
- <ScalarProperty Name="IsPaid" ColumnName="IsPaid" />
- <ScalarProperty Name="IsReady" ColumnName="IsReady" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Roles">
- <EntityTypeMapping TypeName="CafeModel.Roles">
- <MappingFragment StoreEntitySet="Roles">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="RoleName" ColumnName="RoleName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="CafeModel.sysdiagrams">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="name" ColumnName="name" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Tables">
- <EntityTypeMapping TypeName="CafeModel.Tables">
- <MappingFragment StoreEntitySet="Tables">
- <ScalarProperty Name="ID" ColumnName="ID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Users">
- <EntityTypeMapping TypeName="CafeModel.Users">
- <MappingFragment StoreEntitySet="Users">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="SecondName" ColumnName="SecondName" />
- <ScalarProperty Name="FirstName" ColumnName="FirstName" />
- <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="IsFired" ColumnName="IsFired" />
- <ScalarProperty Name="IDRole" ColumnName="IDRole" />
- </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>
|