|
@@ -0,0 +1,551 @@
|
|
|
+<?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="Хранилище KinomaksModel" 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="Films">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="150" Nullable="false" />
|
|
|
+ <Property Name="Descripton" Type="nvarchar(max)" />
|
|
|
+ <Property Name="Logo" Type="image" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="FilmTimetable">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="IDFilm" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDTimeTable" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Hall">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Number" Type="int" Nullable="false" />
|
|
|
+ <Property Name="CountOfSeats" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="HallTimetable">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="IDHall" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDTimetable" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDPlace" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDUser" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Places">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Number" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDHall" Type="int" 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="Timetable">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Time" Type="datetime" 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="IDRole" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_FilmTimetable_Films">
|
|
|
+ <End Role="Films" Type="Self.Films" Multiplicity="1" />
|
|
|
+ <End Role="FilmTimetable" Type="Self.FilmTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Films">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="FilmTimetable">
|
|
|
+ <PropertyRef Name="IDFilm" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_FilmTimetable_Timetable">
|
|
|
+ <End Role="Timetable" Type="Self.Timetable" Multiplicity="1" />
|
|
|
+ <End Role="FilmTimetable" Type="Self.FilmTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Timetable">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="FilmTimetable">
|
|
|
+ <PropertyRef Name="IDTimeTable" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HallTimetable_Hall">
|
|
|
+ <End Role="Hall" Type="Self.Hall" Multiplicity="1" />
|
|
|
+ <End Role="HallTimetable" Type="Self.HallTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Hall">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HallTimetable">
|
|
|
+ <PropertyRef Name="IDHall" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HallTimetable_Timetable">
|
|
|
+ <End Role="Timetable" Type="Self.Timetable" Multiplicity="1" />
|
|
|
+ <End Role="HallTimetable" Type="Self.HallTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Timetable">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HallTimetable">
|
|
|
+ <PropertyRef Name="IDTimetable" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HallTimetable_Users">
|
|
|
+ <End Role="Users" Type="Self.Users" Multiplicity="1" />
|
|
|
+ <End Role="HallTimetable" Type="Self.HallTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Users">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HallTimetable">
|
|
|
+ <PropertyRef Name="IDUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Places_Hall">
|
|
|
+ <End Role="Hall" Type="Self.Hall" Multiplicity="1" />
|
|
|
+ <End Role="Places" Type="Self.Places" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Hall">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Places">
|
|
|
+ <PropertyRef Name="IDHall" />
|
|
|
+ </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="Хранилище KinomaksModelContainer">
|
|
|
+ <EntitySet Name="Films" EntityType="Self.Films" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="FilmTimetable" EntityType="Self.FilmTimetable" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Hall" EntityType="Self.Hall" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="HallTimetable" EntityType="Self.HallTimetable" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Places" EntityType="Self.Places" 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="Timetable" EntityType="Self.Timetable" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK_FilmTimetable_Films" Association="Self.FK_FilmTimetable_Films">
|
|
|
+ <End Role="Films" EntitySet="Films" />
|
|
|
+ <End Role="FilmTimetable" EntitySet="FilmTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_FilmTimetable_Timetable" Association="Self.FK_FilmTimetable_Timetable">
|
|
|
+ <End Role="Timetable" EntitySet="Timetable" />
|
|
|
+ <End Role="FilmTimetable" EntitySet="FilmTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HallTimetable_Hall" Association="Self.FK_HallTimetable_Hall">
|
|
|
+ <End Role="Hall" EntitySet="Hall" />
|
|
|
+ <End Role="HallTimetable" EntitySet="HallTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HallTimetable_Timetable" Association="Self.FK_HallTimetable_Timetable">
|
|
|
+ <End Role="Timetable" EntitySet="Timetable" />
|
|
|
+ <End Role="HallTimetable" EntitySet="HallTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HallTimetable_Users" Association="Self.FK_HallTimetable_Users">
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ <End Role="HallTimetable" EntitySet="HallTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Places_Hall" Association="Self.FK_Places_Hall">
|
|
|
+ <End Role="Hall" EntitySet="Hall" />
|
|
|
+ <End Role="Places" EntitySet="Places" />
|
|
|
+ </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="KinomaksModel" 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="Films">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Title" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Descripton" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Logo" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
|
+ <NavigationProperty Name="FilmTimetable" Relationship="Self.FK_FilmTimetable_Films" FromRole="Films" ToRole="FilmTimetable" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="FilmTimetable">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="IDFilm" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDTimeTable" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Films" Relationship="Self.FK_FilmTimetable_Films" FromRole="FilmTimetable" ToRole="Films" />
|
|
|
+ <NavigationProperty Name="Timetable" Relationship="Self.FK_FilmTimetable_Timetable" FromRole="FilmTimetable" ToRole="Timetable" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Hall">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Number" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="CountOfSeats" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="HallTimetable" Relationship="Self.FK_HallTimetable_Hall" FromRole="Hall" ToRole="HallTimetable" />
|
|
|
+ <NavigationProperty Name="Places" Relationship="Self.FK_Places_Hall" FromRole="Hall" ToRole="Places" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="HallTimetable">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="IDHall" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDTimetable" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDPlace" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDUser" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Hall" Relationship="Self.FK_HallTimetable_Hall" FromRole="HallTimetable" ToRole="Hall" />
|
|
|
+ <NavigationProperty Name="Timetable" Relationship="Self.FK_HallTimetable_Timetable" FromRole="HallTimetable" ToRole="Timetable" />
|
|
|
+ <NavigationProperty Name="Users" Relationship="Self.FK_HallTimetable_Users" FromRole="HallTimetable" ToRole="Users" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Places">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Number" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDHall" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Hall" Relationship="Self.FK_Places_Hall" FromRole="Places" ToRole="Hall" />
|
|
|
+ </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="Timetable">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Time" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <NavigationProperty Name="FilmTimetable" Relationship="Self.FK_FilmTimetable_Timetable" FromRole="Timetable" ToRole="FilmTimetable" />
|
|
|
+ <NavigationProperty Name="HallTimetable" Relationship="Self.FK_HallTimetable_Timetable" FromRole="Timetable" ToRole="HallTimetable" />
|
|
|
+ </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="IDRole" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="HallTimetable" Relationship="Self.FK_HallTimetable_Users" FromRole="Users" ToRole="HallTimetable" />
|
|
|
+ <NavigationProperty Name="Roles" Relationship="Self.FK_Users_Roles" FromRole="Users" ToRole="Roles" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_FilmTimetable_Films">
|
|
|
+ <End Role="Films" Type="Self.Films" Multiplicity="1" />
|
|
|
+ <End Role="FilmTimetable" Type="Self.FilmTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Films">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="FilmTimetable">
|
|
|
+ <PropertyRef Name="IDFilm" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_FilmTimetable_Timetable">
|
|
|
+ <End Role="Timetable" Type="Self.Timetable" Multiplicity="1" />
|
|
|
+ <End Role="FilmTimetable" Type="Self.FilmTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Timetable">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="FilmTimetable">
|
|
|
+ <PropertyRef Name="IDTimeTable" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HallTimetable_Hall">
|
|
|
+ <End Role="Hall" Type="Self.Hall" Multiplicity="1" />
|
|
|
+ <End Role="HallTimetable" Type="Self.HallTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Hall">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HallTimetable">
|
|
|
+ <PropertyRef Name="IDHall" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Places_Hall">
|
|
|
+ <End Role="Hall" Type="Self.Hall" Multiplicity="1" />
|
|
|
+ <End Role="Places" Type="Self.Places" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Hall">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Places">
|
|
|
+ <PropertyRef Name="IDHall" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HallTimetable_Timetable">
|
|
|
+ <End Role="Timetable" Type="Self.Timetable" Multiplicity="1" />
|
|
|
+ <End Role="HallTimetable" Type="Self.HallTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Timetable">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HallTimetable">
|
|
|
+ <PropertyRef Name="IDTimetable" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HallTimetable_Users">
|
|
|
+ <End Role="Users" Type="Self.Users" Multiplicity="1" />
|
|
|
+ <End Role="HallTimetable" Type="Self.HallTimetable" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Users">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HallTimetable">
|
|
|
+ <PropertyRef Name="IDUser" />
|
|
|
+ </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="KinomaksEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Films" EntityType="Self.Films" />
|
|
|
+ <EntitySet Name="FilmTimetable" EntityType="Self.FilmTimetable" />
|
|
|
+ <EntitySet Name="Hall" EntityType="Self.Hall" />
|
|
|
+ <EntitySet Name="HallTimetable" EntityType="Self.HallTimetable" />
|
|
|
+ <EntitySet Name="Places" EntityType="Self.Places" />
|
|
|
+ <EntitySet Name="Roles" EntityType="Self.Roles" />
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
|
|
+ <EntitySet Name="Timetable" EntityType="Self.Timetable" />
|
|
|
+ <EntitySet Name="Users" EntityType="Self.Users" />
|
|
|
+ <AssociationSet Name="FK_FilmTimetable_Films" Association="Self.FK_FilmTimetable_Films">
|
|
|
+ <End Role="Films" EntitySet="Films" />
|
|
|
+ <End Role="FilmTimetable" EntitySet="FilmTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_FilmTimetable_Timetable" Association="Self.FK_FilmTimetable_Timetable">
|
|
|
+ <End Role="Timetable" EntitySet="Timetable" />
|
|
|
+ <End Role="FilmTimetable" EntitySet="FilmTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HallTimetable_Hall" Association="Self.FK_HallTimetable_Hall">
|
|
|
+ <End Role="Hall" EntitySet="Hall" />
|
|
|
+ <End Role="HallTimetable" EntitySet="HallTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Places_Hall" Association="Self.FK_Places_Hall">
|
|
|
+ <End Role="Hall" EntitySet="Hall" />
|
|
|
+ <End Role="Places" EntitySet="Places" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HallTimetable_Timetable" Association="Self.FK_HallTimetable_Timetable">
|
|
|
+ <End Role="Timetable" EntitySet="Timetable" />
|
|
|
+ <End Role="HallTimetable" EntitySet="HallTimetable" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HallTimetable_Users" Association="Self.FK_HallTimetable_Users">
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ <End Role="HallTimetable" EntitySet="HallTimetable" />
|
|
|
+ </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="Хранилище KinomaksModelContainer" CdmEntityContainer="KinomaksEntities">
|
|
|
+ <EntitySetMapping Name="Films">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.Films">
|
|
|
+ <MappingFragment StoreEntitySet="Films">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="Descripton" ColumnName="Descripton" />
|
|
|
+ <ScalarProperty Name="Logo" ColumnName="Logo" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="FilmTimetable">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.FilmTimetable">
|
|
|
+ <MappingFragment StoreEntitySet="FilmTimetable">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="IDFilm" ColumnName="IDFilm" />
|
|
|
+ <ScalarProperty Name="IDTimeTable" ColumnName="IDTimeTable" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Hall">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.Hall">
|
|
|
+ <MappingFragment StoreEntitySet="Hall">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Number" ColumnName="Number" />
|
|
|
+ <ScalarProperty Name="CountOfSeats" ColumnName="CountOfSeats" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="HallTimetable">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.HallTimetable">
|
|
|
+ <MappingFragment StoreEntitySet="HallTimetable">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="IDHall" ColumnName="IDHall" />
|
|
|
+ <ScalarProperty Name="IDTimetable" ColumnName="IDTimetable" />
|
|
|
+ <ScalarProperty Name="IDPlace" ColumnName="IDPlace" />
|
|
|
+ <ScalarProperty Name="IDUser" ColumnName="IDUser" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Places">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.Places">
|
|
|
+ <MappingFragment StoreEntitySet="Places">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Number" ColumnName="Number" />
|
|
|
+ <ScalarProperty Name="IDHall" ColumnName="IDHall" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Roles">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.Roles">
|
|
|
+ <MappingFragment StoreEntitySet="Roles">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="RoleName" ColumnName="RoleName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="sysdiagrams">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.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="Timetable">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.Timetable">
|
|
|
+ <MappingFragment StoreEntitySet="Timetable">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ <ScalarProperty Name="Time" ColumnName="Time" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Users">
|
|
|
+ <EntityTypeMapping TypeName="KinomaksModel.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="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>
|