123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718 |
- <?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="Хранилище PP_MininModel" 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="Application_type">
- <Key>
- <PropertyRef Name="Id_app_type" />
- </Key>
- <Property Name="Id_app_type" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title_app_type" Type="varchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="Applications">
- <Key>
- <PropertyRef Name="Id_application" />
- </Key>
- <Property Name="Id_application" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Description" Type="varchar(max)" Nullable="false" />
- <Property Name="Id_user" Type="int" Nullable="false" />
- <Property Name="Id_app_type" Type="int" Nullable="false" />
- <Property Name="Place_app" Type="varchar(max)" Nullable="false" />
- <Property Name="Date_app" Type="datetime" Nullable="false" />
- <Property Name="Id_status_app" Type="int" Nullable="false" />
- <Property Name="Id_employee" Type="int" />
- </EntityType>
- <EntityType Name="Event">
- <Key>
- <PropertyRef Name="Id_event" />
- </Key>
- <Property Name="Id_event" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Description_event" Type="varchar(max)" Nullable="false" />
- <Property Name="Id_user" Type="int" Nullable="false" />
- <Property Name="Id_events_type" Type="int" Nullable="false" />
- <Property Name="Title_event" Type="varchar(max)" Nullable="false" />
- <Property Name="Date_event" Type="datetime" Nullable="false" />
- <Property Name="Id_status_event" Type="int" Nullable="false" />
- <Property Name="media" Type="varchar(max)" />
- <Property Name="Id_people" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Events_type">
- <Key>
- <PropertyRef Name="Id_events_type" />
- </Key>
- <Property Name="Id_events_type" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title_events_type" Type="varchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="People">
- <Key>
- <PropertyRef Name="Id_people" />
- </Key>
- <Property Name="Id_people" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Ttitle" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="Place">
- <Key>
- <PropertyRef Name="id_place" />
- </Key>
- <Property Name="id_place" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="title_place" Type="varchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="Place_event">
- <Key>
- <PropertyRef Name="id_place_event" />
- </Key>
- <Property Name="id_place_event" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="id_event" Type="int" Nullable="false" />
- <Property Name="id_place" Type="int" 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="Status_application">
- <Key>
- <PropertyRef Name="Id_status_app" />
- </Key>
- <Property Name="Id_status_app" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title_status_app" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Status_event">
- <Key>
- <PropertyRef Name="Id_status_event" />
- </Key>
- <Property Name="Id_status_event" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title_status_event" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="User">
- <Key>
- <PropertyRef Name="Id_user" />
- </Key>
- <Property Name="Id_user" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Surname" Type="varchar(max)" Nullable="false" />
- <Property Name="Name" Type="varchar(max)" Nullable="false" />
- <Property Name="Patronymic" Type="varchar(max)" Nullable="false" />
- <Property Name="Post" Type="varchar(max)" Nullable="false" />
- <Property Name="Phone_number" Type="varchar(max)" Nullable="false" />
- <Property Name="Login" Type="varchar(max)" Nullable="false" />
- <Property Name="Password" Type="varchar(max)" Nullable="false" />
- <Property Name="Id_role" Type="int" Nullable="false" />
- <Property Name="Count_complete_app" Type="int" />
- <Property Name="Count_complete_event" Type="int" />
- </EntityType>
- <Association Name="FK_Application_Application_type">
- <End Role="Application_type" Type="Self.Application_type" Multiplicity="1" />
- <End Role="Applications" Type="Self.Applications" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Application_type">
- <PropertyRef Name="Id_app_type" />
- </Principal>
- <Dependent Role="Applications">
- <PropertyRef Name="Id_app_type" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Application_Status_application">
- <End Role="Status_application" Type="Self.Status_application" Multiplicity="1" />
- <End Role="Applications" Type="Self.Applications" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status_application">
- <PropertyRef Name="Id_status_app" />
- </Principal>
- <Dependent Role="Applications">
- <PropertyRef Name="Id_status_app" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Application_User1">
- <End Role="User" Type="Self.User" Multiplicity="1" />
- <End Role="Applications" Type="Self.Applications" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="Id_user" />
- </Principal>
- <Dependent Role="Applications">
- <PropertyRef Name="Id_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_Events_type">
- <End Role="Events_type" Type="Self.Events_type" Multiplicity="1" />
- <End Role="Event" Type="Self.Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Events_type">
- <PropertyRef Name="Id_events_type" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_events_type" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_People">
- <End Role="People" Type="Self.People" Multiplicity="1" />
- <End Role="Event" Type="Self.Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="People">
- <PropertyRef Name="Id_people" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_people" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_Status_event">
- <End Role="Status_event" Type="Self.Status_event" Multiplicity="1" />
- <End Role="Event" Type="Self.Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status_event">
- <PropertyRef Name="Id_status_event" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_status_event" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_User1">
- <End Role="User" Type="Self.User" Multiplicity="1" />
- <End Role="Event" Type="Self.Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="Id_user" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Place_event_Event">
- <End Role="Event" Type="Self.Event" Multiplicity="1" />
- <End Role="Place_event" Type="Self.Place_event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Event">
- <PropertyRef Name="Id_event" />
- </Principal>
- <Dependent Role="Place_event">
- <PropertyRef Name="id_event" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Place_event_Place">
- <End Role="Place" Type="Self.Place" Multiplicity="1" />
- <End Role="Place_event" Type="Self.Place_event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Place">
- <PropertyRef Name="id_place" />
- </Principal>
- <Dependent Role="Place_event">
- <PropertyRef Name="id_place" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_User_Role">
- <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>
- <EntityContainer Name="Хранилище PP_MininModelContainer">
- <EntitySet Name="Application_type" EntityType="Self.Application_type" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Applications" EntityType="Self.Applications" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Event" EntityType="Self.Event" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Events_type" EntityType="Self.Events_type" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="People" EntityType="Self.People" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Place" EntityType="Self.Place" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Place_event" EntityType="Self.Place_event" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Status_application" EntityType="Self.Status_application" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Status_event" EntityType="Self.Status_event" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Application_Application_type" Association="Self.FK_Application_Application_type">
- <End Role="Application_type" EntitySet="Application_type" />
- <End Role="Applications" EntitySet="Applications" />
- </AssociationSet>
- <AssociationSet Name="FK_Application_Status_application" Association="Self.FK_Application_Status_application">
- <End Role="Status_application" EntitySet="Status_application" />
- <End Role="Applications" EntitySet="Applications" />
- </AssociationSet>
- <AssociationSet Name="FK_Application_User1" Association="Self.FK_Application_User1">
- <End Role="User" EntitySet="User" />
- <End Role="Applications" EntitySet="Applications" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_Events_type" Association="Self.FK_Event_Events_type">
- <End Role="Events_type" EntitySet="Events_type" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_People" Association="Self.FK_Event_People">
- <End Role="People" EntitySet="People" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_Status_event" Association="Self.FK_Event_Status_event">
- <End Role="Status_event" EntitySet="Status_event" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_User1" Association="Self.FK_Event_User1">
- <End Role="User" EntitySet="User" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Place_event_Event" Association="Self.FK_Place_event_Event">
- <End Role="Event" EntitySet="Event" />
- <End Role="Place_event" EntitySet="Place_event" />
- </AssociationSet>
- <AssociationSet Name="FK_Place_event_Place" Association="Self.FK_Place_event_Place">
- <End Role="Place" EntitySet="Place" />
- <End Role="Place_event" EntitySet="Place_event" />
- </AssociationSet>
- <AssociationSet Name="FK_User_Role" Association="Self.FK_User_Role">
- <End Role="Role" EntitySet="Role" />
- <End Role="User" EntitySet="User" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="PP_MininModel" 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="Application_type">
- <Key>
- <PropertyRef Name="Id_app_type" />
- </Key>
- <Property Name="Id_app_type" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title_app_type" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Applications" Relationship="Self.FK_Application_Application_type" FromRole="Application_type" ToRole="Applications" />
- </EntityType>
- <EntityType Name="Applications">
- <Key>
- <PropertyRef Name="Id_application" />
- </Key>
- <Property Name="Id_application" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Id_user" Type="Int32" Nullable="false" />
- <Property Name="Id_app_type" Type="Int32" Nullable="false" />
- <Property Name="Place_app" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Date_app" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Id_status_app" Type="Int32" Nullable="false" />
- <Property Name="Id_employee" Type="Int32" />
- <NavigationProperty Name="Application_type" Relationship="Self.FK_Application_Application_type" FromRole="Applications" ToRole="Application_type" />
- <NavigationProperty Name="Status_application" Relationship="Self.FK_Application_Status_application" FromRole="Applications" ToRole="Status_application" />
- <NavigationProperty Name="User" Relationship="Self.FK_Application_User1" FromRole="Applications" ToRole="User" />
- </EntityType>
- <EntityType Name="Event">
- <Key>
- <PropertyRef Name="Id_event" />
- </Key>
- <Property Name="Id_event" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Description_event" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Id_user" Type="Int32" Nullable="false" />
- <Property Name="Id_events_type" Type="Int32" Nullable="false" />
- <Property Name="Title_event" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Date_event" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Id_status_event" Type="Int32" Nullable="false" />
- <Property Name="media" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="Place_event" Relationship="Self.FK_Place_event_Event" FromRole="Event" ToRole="Place_event" />
- <Property Name="Id_people" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Events_type" Relationship="PP_MininModel.FK_Event_Events_type" FromRole="Event" ToRole="Events_type" />
- <NavigationProperty Name="People1" Relationship="PP_MininModel.FK_Event_People" FromRole="Event" ToRole="People" />
- <NavigationProperty Name="Status_event" Relationship="PP_MininModel.FK_Event_Status_event" FromRole="Event" ToRole="Status_event" />
- <NavigationProperty Name="User" Relationship="PP_MininModel.FK_Event_User1" FromRole="Event" ToRole="User" />
- </EntityType>
- <EntityType Name="Events_type">
- <Key>
- <PropertyRef Name="Id_events_type" />
- </Key>
- <Property Name="Id_events_type" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title_events_type" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Event" Relationship="PP_MininModel.FK_Event_Events_type" FromRole="Events_type" ToRole="Event" />
- </EntityType>
- <EntityType Name="People">
- <Key>
- <PropertyRef Name="Id_people" />
- </Key>
- <Property Name="Id_people" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Ttitle" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Event" Relationship="PP_MininModel.FK_Event_People" FromRole="People" ToRole="Event" />
- </EntityType>
- <EntityType Name="Place">
- <Key>
- <PropertyRef Name="id_place" />
- </Key>
- <Property Name="id_place" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="title_place" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Place_event" Relationship="Self.FK_Place_event_Place" FromRole="Place" ToRole="Place_event" />
- </EntityType>
- <EntityType Name="Place_event">
- <Key>
- <PropertyRef Name="id_place_event" />
- </Key>
- <Property Name="id_place_event" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="id_event" Type="Int32" Nullable="false" />
- <Property Name="id_place" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Event" Relationship="Self.FK_Place_event_Event" FromRole="Place_event" ToRole="Event" />
- <NavigationProperty Name="Place" Relationship="Self.FK_Place_event_Place" FromRole="Place_event" ToRole="Place" />
- </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_Role" FromRole="Role" ToRole="User" />
- </EntityType>
- <EntityType Name="Status_application">
- <Key>
- <PropertyRef Name="Id_status_app" />
- </Key>
- <Property Name="Id_status_app" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title_status_app" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Applications" Relationship="Self.FK_Application_Status_application" FromRole="Status_application" ToRole="Applications" />
- </EntityType>
- <EntityType Name="Status_event">
- <Key>
- <PropertyRef Name="Id_status_event" />
- </Key>
- <Property Name="Id_status_event" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title_status_event" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Event" Relationship="PP_MininModel.FK_Event_Status_event" FromRole="Status_event" ToRole="Event" />
- </EntityType>
- <EntityType Name="User">
- <Key>
- <PropertyRef Name="Id_user" />
- </Key>
- <Property Name="Id_user" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Surname" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Patronymic" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Post" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Phone_number" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Login" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Password" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="Id_role" Type="Int32" Nullable="false" />
- <Property Name="Count_complete_app" Type="Int32" />
- <Property Name="Count_complete_event" Type="Int32" />
- <NavigationProperty Name="Applications" Relationship="Self.FK_Application_User1" FromRole="User" ToRole="Applications" />
- <NavigationProperty Name="Role" Relationship="Self.FK_User_Role" FromRole="User" ToRole="Role" />
- <NavigationProperty Name="Event" Relationship="PP_MininModel.FK_Event_User1" FromRole="User" ToRole="Event" />
- </EntityType>
- <Association Name="FK_Application_Application_type">
- <End Role="Application_type" Type="Self.Application_type" Multiplicity="1" />
- <End Role="Applications" Type="Self.Applications" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Application_type">
- <PropertyRef Name="Id_app_type" />
- </Principal>
- <Dependent Role="Applications">
- <PropertyRef Name="Id_app_type" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Application_Status_application">
- <End Role="Status_application" Type="Self.Status_application" Multiplicity="1" />
- <End Role="Applications" Type="Self.Applications" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status_application">
- <PropertyRef Name="Id_status_app" />
- </Principal>
- <Dependent Role="Applications">
- <PropertyRef Name="Id_status_app" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Application_User1">
- <End Role="User" Type="Self.User" Multiplicity="1" />
- <End Role="Applications" Type="Self.Applications" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="Id_user" />
- </Principal>
- <Dependent Role="Applications">
- <PropertyRef Name="Id_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Place_event_Event">
- <End Role="Event" Type="Self.Event" Multiplicity="1" />
- <End Role="Place_event" Type="Self.Place_event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Event">
- <PropertyRef Name="Id_event" />
- </Principal>
- <Dependent Role="Place_event">
- <PropertyRef Name="id_event" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Place_event_Place">
- <End Role="Place" Type="Self.Place" Multiplicity="1" />
- <End Role="Place_event" Type="Self.Place_event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Place">
- <PropertyRef Name="id_place" />
- </Principal>
- <Dependent Role="Place_event">
- <PropertyRef Name="id_place" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_User_Role">
- <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>
- <EntityContainer Name="PP_MininEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Application_type" EntityType="Self.Application_type" />
- <EntitySet Name="Applications" EntityType="Self.Applications" />
- <EntitySet Name="Event" EntityType="Self.Event" />
- <EntitySet Name="Events_type" EntityType="Self.Events_type" />
- <EntitySet Name="People" EntityType="Self.People" />
- <EntitySet Name="Place" EntityType="Self.Place" />
- <EntitySet Name="Place_event" EntityType="Self.Place_event" />
- <EntitySet Name="Role" EntityType="Self.Role" />
- <EntitySet Name="Status_application" EntityType="Self.Status_application" />
- <EntitySet Name="Status_event" EntityType="Self.Status_event" />
- <EntitySet Name="User" EntityType="Self.User" />
- <AssociationSet Name="FK_Application_Application_type" Association="Self.FK_Application_Application_type">
- <End Role="Application_type" EntitySet="Application_type" />
- <End Role="Applications" EntitySet="Applications" />
- </AssociationSet>
- <AssociationSet Name="FK_Application_Status_application" Association="Self.FK_Application_Status_application">
- <End Role="Status_application" EntitySet="Status_application" />
- <End Role="Applications" EntitySet="Applications" />
- </AssociationSet>
- <AssociationSet Name="FK_Application_User1" Association="Self.FK_Application_User1">
- <End Role="User" EntitySet="User" />
- <End Role="Applications" EntitySet="Applications" />
- </AssociationSet>
- <AssociationSet Name="FK_Place_event_Event" Association="Self.FK_Place_event_Event">
- <End Role="Event" EntitySet="Event" />
- <End Role="Place_event" EntitySet="Place_event" />
- </AssociationSet>
- <AssociationSet Name="FK_Place_event_Place" Association="Self.FK_Place_event_Place">
- <End Role="Place" EntitySet="Place" />
- <End Role="Place_event" EntitySet="Place_event" />
- </AssociationSet>
- <AssociationSet Name="FK_User_Role" Association="Self.FK_User_Role">
- <End Role="Role" EntitySet="Role" />
- <End Role="User" EntitySet="User" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_Events_type" Association="PP_MininModel.FK_Event_Events_type">
- <End Role="Events_type" EntitySet="Events_type" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_People" Association="PP_MininModel.FK_Event_People">
- <End Role="People" EntitySet="People" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_Status_event" Association="PP_MininModel.FK_Event_Status_event">
- <End Role="Status_event" EntitySet="Status_event" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- <AssociationSet Name="FK_Event_User1" Association="PP_MininModel.FK_Event_User1">
- <End Role="User" EntitySet="User" />
- <End Role="Event" EntitySet="Event" />
- </AssociationSet>
- </EntityContainer>
- <Association Name="FK_Event_Events_type">
- <End Type="PP_MininModel.Events_type" Role="Events_type" Multiplicity="1" />
- <End Type="PP_MininModel.Event" Role="Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Events_type">
- <PropertyRef Name="Id_events_type" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_events_type" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_People">
- <End Type="PP_MininModel.People" Role="People" Multiplicity="1" />
- <End Type="PP_MininModel.Event" Role="Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="People">
- <PropertyRef Name="Id_people" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_people" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_Status_event">
- <End Type="PP_MininModel.Status_event" Role="Status_event" Multiplicity="1" />
- <End Type="PP_MininModel.Event" Role="Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Status_event">
- <PropertyRef Name="Id_status_event" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_status_event" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Event_User1">
- <End Type="PP_MininModel.User" Role="User" Multiplicity="1" />
- <End Type="PP_MininModel.Event" Role="Event" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="Id_user" />
- </Principal>
- <Dependent Role="Event">
- <PropertyRef Name="Id_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </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="Хранилище PP_MininModelContainer" CdmEntityContainer="PP_MininEntities">
- <EntitySetMapping Name="Application_type">
- <EntityTypeMapping TypeName="PP_MininModel.Application_type">
- <MappingFragment StoreEntitySet="Application_type">
- <ScalarProperty Name="Id_app_type" ColumnName="Id_app_type" />
- <ScalarProperty Name="Title_app_type" ColumnName="Title_app_type" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Applications">
- <EntityTypeMapping TypeName="PP_MininModel.Applications">
- <MappingFragment StoreEntitySet="Applications">
- <ScalarProperty Name="Id_application" ColumnName="Id_application" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Id_user" ColumnName="Id_user" />
- <ScalarProperty Name="Id_app_type" ColumnName="Id_app_type" />
- <ScalarProperty Name="Place_app" ColumnName="Place_app" />
- <ScalarProperty Name="Date_app" ColumnName="Date_app" />
- <ScalarProperty Name="Id_status_app" ColumnName="Id_status_app" />
- <ScalarProperty Name="Id_employee" ColumnName="Id_employee" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Event">
- <EntityTypeMapping TypeName="PP_MininModel.Event">
- <MappingFragment StoreEntitySet="Event">
- <ScalarProperty Name="Id_people" ColumnName="Id_people" />
- <ScalarProperty Name="Id_event" ColumnName="Id_event" />
- <ScalarProperty Name="Description_event" ColumnName="Description_event" />
- <ScalarProperty Name="Id_user" ColumnName="Id_user" />
- <ScalarProperty Name="Id_events_type" ColumnName="Id_events_type" />
- <ScalarProperty Name="Title_event" ColumnName="Title_event" />
- <ScalarProperty Name="Date_event" ColumnName="Date_event" />
- <ScalarProperty Name="Id_status_event" ColumnName="Id_status_event" />
- <ScalarProperty Name="media" ColumnName="media" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Events_type">
- <EntityTypeMapping TypeName="PP_MininModel.Events_type">
- <MappingFragment StoreEntitySet="Events_type">
- <ScalarProperty Name="Id_events_type" ColumnName="Id_events_type" />
- <ScalarProperty Name="Title_events_type" ColumnName="Title_events_type" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="People">
- <EntityTypeMapping TypeName="PP_MininModel.People">
- <MappingFragment StoreEntitySet="People">
- <ScalarProperty Name="Id_people" ColumnName="Id_people" />
- <ScalarProperty Name="Ttitle" ColumnName="Ttitle" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Place">
- <EntityTypeMapping TypeName="PP_MininModel.Place">
- <MappingFragment StoreEntitySet="Place">
- <ScalarProperty Name="id_place" ColumnName="id_place" />
- <ScalarProperty Name="title_place" ColumnName="title_place" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Place_event">
- <EntityTypeMapping TypeName="PP_MininModel.Place_event">
- <MappingFragment StoreEntitySet="Place_event">
- <ScalarProperty Name="id_place_event" ColumnName="id_place_event" />
- <ScalarProperty Name="id_event" ColumnName="id_event" />
- <ScalarProperty Name="id_place" ColumnName="id_place" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Role">
- <EntityTypeMapping TypeName="PP_MininModel.Role">
- <MappingFragment StoreEntitySet="Role">
- <ScalarProperty Name="Id_role" ColumnName="Id_role" />
- <ScalarProperty Name="Title_role" ColumnName="Title_role" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Status_application">
- <EntityTypeMapping TypeName="PP_MininModel.Status_application">
- <MappingFragment StoreEntitySet="Status_application">
- <ScalarProperty Name="Id_status_app" ColumnName="Id_status_app" />
- <ScalarProperty Name="Title_status_app" ColumnName="Title_status_app" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Status_event">
- <EntityTypeMapping TypeName="PP_MininModel.Status_event">
- <MappingFragment StoreEntitySet="Status_event">
- <ScalarProperty Name="Id_status_event" ColumnName="Id_status_event" />
- <ScalarProperty Name="Title_status_event" ColumnName="Title_status_event" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="User">
- <EntityTypeMapping TypeName="PP_MininModel.User">
- <MappingFragment StoreEntitySet="User">
- <ScalarProperty Name="Id_user" ColumnName="Id_user" />
- <ScalarProperty Name="Surname" ColumnName="Surname" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- <ScalarProperty Name="Post" ColumnName="Post" />
- <ScalarProperty Name="Phone_number" ColumnName="Phone_number" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="Id_role" ColumnName="Id_role" />
- <ScalarProperty Name="Count_complete_app" ColumnName="Count_complete_app" />
- <ScalarProperty Name="Count_complete_event" ColumnName="Count_complete_event" />
- </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>
|