1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225 |
- <?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="Хранилище BB_AzizovaModel" Provider="System.Data.SqlClient" ProviderManifestToken="2008" 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="Administrator">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="Login" Type="nvarchar" MaxLength="50" />
- <Property Name="Password" Type="nvarchar" MaxLength="50" />
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- </EntityType>
- <EntityType Name="AttachedProduct">
- <Key>
- <PropertyRef Name="MainProductID" />
- <PropertyRef Name="AttachedProductID" />
- </Key>
- <Property Name="MainProductID" Type="int" Nullable="false" />
- <Property Name="AttachedProductID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Client">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
- <Property Name="Birthday" Type="date" />
- <Property Name="RegistrationDate" Type="datetime" Nullable="false" />
- <Property Name="Email" Type="nvarchar" MaxLength="255" />
- <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="GenderCode" Type="nchar" MaxLength="1" Nullable="false" />
- <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
- </EntityType>
- <EntityType Name="Clients">
- <Key>
- <PropertyRef Name="ID_Client" />
- </Key>
- <Property Name="ID_Client" Type="bigint" Nullable="false" />
- <Property Name="Phomilia" Type="nvarchar" MaxLength="50" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="Otchestvo" Type="nvarchar" MaxLength="50" />
- <Property Name="Pol" Type="nvarchar" MaxLength="50" />
- <Property Name="Phone" Type="nvarchar" MaxLength="50" />
- <Property Name="Birthday" Type="date" />
- <Property Name="Email" Type="nvarchar" MaxLength="50" />
- <Property Name="Data_Registra" Type="date" />
- </EntityType>
- <EntityType Name="ClientService">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ClientID" Type="int" Nullable="false" />
- <Property Name="ServiceID" Type="int" Nullable="false" />
- <Property Name="StartTime" Type="datetime" Nullable="false" />
- <Property Name="Comment" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="DocumentByService">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ClientServiceID" Type="int" Nullable="false" />
- <Property Name="DocumentPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
- </EntityType>
- <EntityType Name="Gender">
- <Key>
- <PropertyRef Name="Code" />
- </Key>
- <Property Name="Code" Type="nchar" MaxLength="1" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="10" />
- </EntityType>
- <EntityType Name="Manufacturer">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="StartDate" Type="date" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Cost" Type="money" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
- <Property Name="IsActive" Type="bit" Nullable="false" />
- <Property Name="ManufacturerID" Type="int" />
- </EntityType>
- <EntityType Name="ProductPhoto">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ProductID" Type="int" Nullable="false" />
- <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductSale">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="SaleDate" Type="datetime" Nullable="false" />
- <Property Name="ProductID" Type="int" Nullable="false" />
- <Property Name="Quantity" Type="int" Nullable="false" />
- <Property Name="ClientServiceID" Type="int" />
- </EntityType>
- <EntityType Name="Service">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Cost" Type="money" Nullable="false" />
- <Property Name="DurationInSeconds" Type="int" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="Discount" Type="float" />
- <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
- </EntityType>
- <EntityType Name="ServicePhoto">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ServiceID" Type="int" Nullable="false" />
- <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
- </EntityType>
- <EntityType Name="Sotrudnik">
- <Key>
- <PropertyRef Name="ID_Sotrudnik" />
- </Key>
- <Property Name="ID_Sotrudnik" Type="bigint" Nullable="false" />
- <Property Name="Phomilia" Type="nvarchar" MaxLength="50" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="ID_Uslugi" Type="bigint" />
- </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="Tag">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="30" Nullable="false" />
- <Property Name="Color" Type="nchar" MaxLength="6" Nullable="false" />
- </EntityType>
- <EntityType Name="TagOfClient">
- <Key>
- <PropertyRef Name="ClientID" />
- <PropertyRef Name="TagID" />
- </Key>
- <Property Name="ClientID" Type="int" Nullable="false" />
- <Property Name="TagID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Uslugi">
- <Key>
- <PropertyRef Name="ID_Uslugi" />
- </Key>
- <Property Name="ID_Uslugi" Type="bigint" Nullable="false" />
- <Property Name="Наименование_услуги" Type="nvarchar" MaxLength="50" />
- <Property Name="Главное_изображение" Type="nvarchar" MaxLength="100" />
- <Property Name="Длительность" Type="nvarchar" MaxLength="50" />
- <Property Name="Стоимость" Type="nvarchar" MaxLength="50" />
- <Property Name="Действующая_скидка" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="Uslugi_i_Klient">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="bigint" Nullable="false" />
- <Property Name="Услуга" Type="nvarchar(max)" />
- <Property Name="Начало_оказания_услуги" Type="datetime2" Precision="7" />
- <Property Name="Клиент" Type="nvarchar" MaxLength="50" />
- <Property Name="ID_Client" Type="bigint" />
- <Property Name="ID_Uslugi" Type="bigint" />
- </EntityType>
- <Association Name="FK_AttachedProduct_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="AttachedProduct">
- <PropertyRef Name="MainProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_AttachedProduct_Product1">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="AttachedProduct">
- <PropertyRef Name="AttachedProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Client_Gender">
- <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Gender">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="GenderCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Client">
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Client">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ClientID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Service">
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Service">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_DocumentByService_ClientService">
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
- <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ClientService">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="DocumentByService">
- <PropertyRef Name="ClientServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_Manufacturer">
- <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Manufacturer">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="ManufacturerID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductPhoto_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductPhoto">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_ClientService">
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ClientService">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="ClientServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ServicePhoto_Service">
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
- <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Service">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ServicePhoto">
- <PropertyRef Name="ServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Sotrudnik_Uslsgi">
- <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
- <End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Uslugi">
- <PropertyRef Name="ID_Uslugi" />
- </Principal>
- <Dependent Role="Sotrudnik">
- <PropertyRef Name="ID_Uslugi" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TagOfClient_Client">
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
- <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Client">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="TagOfClient">
- <PropertyRef Name="ClientID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TagOfClient_Tag">
- <End Role="Tag" Type="Self.Tag" Multiplicity="1" />
- <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tag">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="TagOfClient">
- <PropertyRef Name="TagID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Uslugi_i_Klient_Clients">
- <End Role="Clients" Type="Self.Clients" Multiplicity="0..1" />
- <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Clients">
- <PropertyRef Name="ID_Client" />
- </Principal>
- <Dependent Role="Uslugi_i_Klient">
- <PropertyRef Name="ID_Client" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Uslugi_i_Klient_Uslsgi">
- <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
- <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Uslugi">
- <PropertyRef Name="ID_Uslugi" />
- </Principal>
- <Dependent Role="Uslugi_i_Klient">
- <PropertyRef Name="ID_Uslugi" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
- <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- <Parameter Name="version" Type="int" Mode="In" />
- <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
- </Function>
- <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- <Parameter Name="version" Type="int" Mode="In" />
- <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
- </Function>
- <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- </Function>
- <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- </Function>
- <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- </Function>
- <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
- <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
- <Parameter Name="owner_id" Type="int" Mode="In" />
- <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
- </Function>
- <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
- <EntityContainer Name="Хранилище BB_AzizovaModelContainer">
- <EntitySet Name="Administrator" EntityType="Self.Administrator" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="AttachedProduct" EntityType="Self.AttachedProduct" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Clients" EntityType="Self.Clients" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ClientService" EntityType="Self.ClientService" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductSale" EntityType="Self.ProductSale" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Tag" EntityType="Self.Tag" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TagOfClient" EntityType="Self.TagOfClient" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Uslugi" EntityType="Self.Uslugi" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Uslugi_i_Klient" EntityType="Self.Uslugi_i_Klient" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_AttachedProduct_Product" Association="Self.FK_AttachedProduct_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="AttachedProduct" EntitySet="AttachedProduct" />
- </AssociationSet>
- <AssociationSet Name="FK_AttachedProduct_Product1" Association="Self.FK_AttachedProduct_Product1">
- <End Role="Product" EntitySet="Product" />
- <End Role="AttachedProduct" EntitySet="AttachedProduct" />
- </AssociationSet>
- <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
- <End Role="Gender" EntitySet="Gender" />
- <End Role="Client" EntitySet="Client" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
- <End Role="Client" EntitySet="Client" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
- <End Role="Service" EntitySet="Service" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
- <End Role="ClientService" EntitySet="ClientService" />
- <End Role="DocumentByService" EntitySet="DocumentByService" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
- <End Role="Manufacturer" EntitySet="Manufacturer" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductPhoto" EntitySet="ProductPhoto" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
- <End Role="ClientService" EntitySet="ClientService" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
- <End Role="Service" EntitySet="Service" />
- <End Role="ServicePhoto" EntitySet="ServicePhoto" />
- </AssociationSet>
- <AssociationSet Name="FK_Sotrudnik_Uslsgi" Association="Self.FK_Sotrudnik_Uslsgi">
- <End Role="Uslugi" EntitySet="Uslugi" />
- <End Role="Sotrudnik" EntitySet="Sotrudnik" />
- </AssociationSet>
- <AssociationSet Name="FK_TagOfClient_Client" Association="Self.FK_TagOfClient_Client">
- <End Role="Client" EntitySet="Client" />
- <End Role="TagOfClient" EntitySet="TagOfClient" />
- </AssociationSet>
- <AssociationSet Name="FK_TagOfClient_Tag" Association="Self.FK_TagOfClient_Tag">
- <End Role="Tag" EntitySet="Tag" />
- <End Role="TagOfClient" EntitySet="TagOfClient" />
- </AssociationSet>
- <AssociationSet Name="FK_Uslugi_i_Klient_Clients" Association="Self.FK_Uslugi_i_Klient_Clients">
- <End Role="Clients" EntitySet="Clients" />
- <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
- </AssociationSet>
- <AssociationSet Name="FK_Uslugi_i_Klient_Uslsgi" Association="Self.FK_Uslugi_i_Klient_Uslsgi">
- <End Role="Uslugi" EntitySet="Uslugi" />
- <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="BB_AzizovaModel" 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="Client">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Birthday" Type="DateTime" Precision="0" />
- <Property Name="RegistrationDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="GenderCode" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
- <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
- <NavigationProperty Name="Tag" Relationship="Self.TagOfClient" FromRole="Client" ToRole="Tag" />
- </EntityType>
- <EntityType Name="Clients">
- <Key>
- <PropertyRef Name="ID_Client" />
- </Key>
- <Property Name="ID_Client" Type="Int64" Nullable="false" />
- <Property Name="Phomilia" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Otchestvo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Pol" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Phone" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Birthday" Type="DateTime" Precision="0" />
- <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Data_Registra" Type="DateTime" Precision="0" />
- <NavigationProperty Name="Uslugi_i_Klient" Relationship="Self.FK_Uslugi_i_Klient_Clients" FromRole="Clients" ToRole="Uslugi_i_Klient" />
- </EntityType>
- <EntityType Name="ClientService">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ClientID" Type="Int32" Nullable="false" />
- <Property Name="ServiceID" Type="Int32" Nullable="false" />
- <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
- <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
- <NavigationProperty Name="DocumentByService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="ClientService" ToRole="DocumentByService" />
- <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_ClientService" FromRole="ClientService" ToRole="ProductSale" />
- </EntityType>
- <EntityType Name="DocumentByService">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ClientServiceID" Type="Int32" Nullable="false" />
- <Property Name="DocumentPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="ClientService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="DocumentByService" ToRole="ClientService" />
- </EntityType>
- <EntityType Name="Gender">
- <Key>
- <PropertyRef Name="Code" />
- </Key>
- <Property Name="Code" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
- </EntityType>
- <EntityType Name="Manufacturer">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Precision="0" />
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_Manufacturer" FromRole="Manufacturer" ToRole="Product" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <Property Name="IsActive" Type="Boolean" Nullable="false" />
- <Property Name="ManufacturerID" Type="Int32" />
- <NavigationProperty Name="Manufacturer" Relationship="Self.FK_Product_Manufacturer" FromRole="Product" ToRole="Manufacturer" />
- <NavigationProperty Name="ProductPhoto" Relationship="Self.FK_ProductPhoto_Product" FromRole="Product" ToRole="ProductPhoto" />
- <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
- <NavigationProperty Name="Product1" Relationship="Self.AttachedProduct" FromRole="Product" ToRole="Product1" />
- <NavigationProperty Name="Product2" Relationship="Self.AttachedProduct" FromRole="Product1" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductPhoto">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ProductID" Type="Int32" Nullable="false" />
- <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_ProductPhoto_Product" FromRole="ProductPhoto" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductSale">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="SaleDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ProductID" Type="Int32" Nullable="false" />
- <Property Name="Quantity" Type="Int32" Nullable="false" />
- <Property Name="ClientServiceID" Type="Int32" />
- <NavigationProperty Name="ClientService" Relationship="Self.FK_ProductSale_ClientService" FromRole="ProductSale" ToRole="ClientService" />
- <NavigationProperty Name="Product" Relationship="Self.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
- </EntityType>
- <EntityType Name="Service">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="DurationInSeconds" Type="Int32" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Discount" Type="Double" />
- <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
- <NavigationProperty Name="ServicePhoto" Relationship="Self.FK_ServicePhoto_Service" FromRole="Service" ToRole="ServicePhoto" />
- </EntityType>
- <EntityType Name="ServicePhoto">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ServiceID" Type="Int32" Nullable="false" />
- <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Service" Relationship="Self.FK_ServicePhoto_Service" FromRole="ServicePhoto" ToRole="Service" />
- </EntityType>
- <EntityType Name="Sotrudnik">
- <Key>
- <PropertyRef Name="ID_Sotrudnik" />
- </Key>
- <Property Name="ID_Sotrudnik" Type="Int64" Nullable="false" />
- <Property Name="Phomilia" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ID_Uslugi" Type="Int64" />
- <NavigationProperty Name="Uslugi" Relationship="Self.FK_Sotrudnik_Uslsgi" FromRole="Sotrudnik" ToRole="Uslugi" />
- </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="Tag">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Color" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Client" Relationship="Self.TagOfClient" FromRole="Tag" ToRole="Client" />
- </EntityType>
- <EntityType Name="Uslugi">
- <Key>
- <PropertyRef Name="ID_Uslugi" />
- </Key>
- <Property Name="ID_Uslugi" Type="Int64" Nullable="false" />
- <Property Name="Наименование_услуги" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Главное_изображение" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Длительность" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Стоимость" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Действующая_скидка" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Sotrudnik" Relationship="Self.FK_Sotrudnik_Uslsgi" FromRole="Uslugi" ToRole="Sotrudnik" />
- <NavigationProperty Name="Uslugi_i_Klient" Relationship="Self.FK_Uslugi_i_Klient_Uslsgi" FromRole="Uslugi" ToRole="Uslugi_i_Klient" />
- </EntityType>
- <EntityType Name="Uslugi_i_Klient">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int64" Nullable="false" />
- <Property Name="Услуга" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Начало_оказания_услуги" Type="DateTime" Precision="7" />
- <Property Name="Клиент" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ID_Client" Type="Int64" />
- <Property Name="ID_Uslugi" Type="Int64" />
- <NavigationProperty Name="Clients" Relationship="Self.FK_Uslugi_i_Klient_Clients" FromRole="Uslugi_i_Klient" ToRole="Clients" />
- <NavigationProperty Name="Uslugi" Relationship="Self.FK_Uslugi_i_Klient_Uslsgi" FromRole="Uslugi_i_Klient" ToRole="Uslugi" />
- </EntityType>
- <Association Name="FK_Client_Gender">
- <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Gender">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="GenderCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Client">
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Client">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ClientID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Uslugi_i_Klient_Clients">
- <End Role="Clients" Type="Self.Clients" Multiplicity="0..1" />
- <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Clients">
- <PropertyRef Name="ID_Client" />
- </Principal>
- <Dependent Role="Uslugi_i_Klient">
- <PropertyRef Name="ID_Client" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Service">
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Service">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_DocumentByService_ClientService">
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
- <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ClientService">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="DocumentByService">
- <PropertyRef Name="ClientServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_ClientService">
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ClientService">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="ClientServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_Manufacturer">
- <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Manufacturer">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="ManufacturerID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductPhoto_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductPhoto">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ServicePhoto_Service">
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
- <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Service">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ServicePhoto">
- <PropertyRef Name="ServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Sotrudnik_Uslsgi">
- <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
- <End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Uslugi">
- <PropertyRef Name="ID_Uslugi" />
- </Principal>
- <Dependent Role="Sotrudnik">
- <PropertyRef Name="ID_Uslugi" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Uslugi_i_Klient_Uslsgi">
- <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
- <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Uslugi">
- <PropertyRef Name="ID_Uslugi" />
- </Principal>
- <Dependent Role="Uslugi_i_Klient">
- <PropertyRef Name="ID_Uslugi" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="AttachedProduct">
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <End Role="Product1" Type="Self.Product" Multiplicity="*" />
- </Association>
- <Association Name="TagOfClient">
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <End Role="Tag" Type="Self.Tag" Multiplicity="*" />
- </Association>
- <EntityContainer Name="BB_AzizovaEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Client" EntityType="Self.Client" />
- <EntitySet Name="Clients" EntityType="Self.Clients" />
- <EntitySet Name="ClientService" EntityType="Self.ClientService" />
- <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" />
- <EntitySet Name="Gender" EntityType="Self.Gender" />
- <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
- <EntitySet Name="Product" EntityType="Self.Product" />
- <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" />
- <EntitySet Name="ProductSale" EntityType="Self.ProductSale" />
- <EntitySet Name="Service" EntityType="Self.Service" />
- <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" />
- <EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="Tag" EntityType="Self.Tag" />
- <EntitySet Name="Uslugi" EntityType="Self.Uslugi" />
- <EntitySet Name="Uslugi_i_Klient" EntityType="Self.Uslugi_i_Klient" />
- <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
- <End Role="Gender" EntitySet="Gender" />
- <End Role="Client" EntitySet="Client" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
- <End Role="Client" EntitySet="Client" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- <AssociationSet Name="FK_Uslugi_i_Klient_Clients" Association="Self.FK_Uslugi_i_Klient_Clients">
- <End Role="Clients" EntitySet="Clients" />
- <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
- <End Role="Service" EntitySet="Service" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
- <End Role="ClientService" EntitySet="ClientService" />
- <End Role="DocumentByService" EntitySet="DocumentByService" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
- <End Role="ClientService" EntitySet="ClientService" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
- <End Role="Manufacturer" EntitySet="Manufacturer" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductPhoto" EntitySet="ProductPhoto" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
- <End Role="Service" EntitySet="Service" />
- <End Role="ServicePhoto" EntitySet="ServicePhoto" />
- </AssociationSet>
- <AssociationSet Name="FK_Sotrudnik_Uslsgi" Association="Self.FK_Sotrudnik_Uslsgi">
- <End Role="Uslugi" EntitySet="Uslugi" />
- <End Role="Sotrudnik" EntitySet="Sotrudnik" />
- </AssociationSet>
- <AssociationSet Name="FK_Uslugi_i_Klient_Uslsgi" Association="Self.FK_Uslugi_i_Klient_Uslsgi">
- <End Role="Uslugi" EntitySet="Uslugi" />
- <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
- </AssociationSet>
- <AssociationSet Name="AttachedProduct" Association="Self.AttachedProduct">
- <End Role="Product" EntitySet="Product" />
- <End Role="Product1" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="TagOfClient" Association="Self.TagOfClient">
- <End Role="Client" EntitySet="Client" />
- <End Role="Tag" EntitySet="Tag" />
- </AssociationSet>
- <FunctionImport Name="sp_alterdiagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- <Parameter Name="version" Mode="In" Type="Int32" />
- <Parameter Name="definition" Mode="In" Type="Binary" />
- </FunctionImport>
- <FunctionImport Name="sp_creatediagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- <Parameter Name="version" Mode="In" Type="Int32" />
- <Parameter Name="definition" Mode="In" Type="Binary" />
- </FunctionImport>
- <FunctionImport Name="sp_dropdiagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- </FunctionImport>
- <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(BB_AzizovaModel.sp_helpdiagramdefinition_Result)">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- </FunctionImport>
- <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(BB_AzizovaModel.sp_helpdiagrams_Result)">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- </FunctionImport>
- <FunctionImport Name="sp_renamediagram">
- <Parameter Name="diagramname" Mode="In" Type="String" />
- <Parameter Name="owner_id" Mode="In" Type="Int32" />
- <Parameter Name="new_diagramname" Mode="In" Type="String" />
- </FunctionImport>
- <FunctionImport Name="sp_upgraddiagrams" />
- <EntitySet Name="Administrator" EntityType="BB_AzizovaModel.Administrator" />
- </EntityContainer>
- <ComplexType Name="sp_helpdiagramdefinition_Result">
- <Property Type="Int32" Name="version" Nullable="true" />
- <Property Type="Binary" Name="definition" Nullable="true" />
- </ComplexType>
- <ComplexType Name="sp_helpdiagrams_Result">
- <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
- <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
- <Property Type="Int32" Name="ID" Nullable="false" />
- <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
- <Property Type="Int32" Name="OwnerID" Nullable="false" />
- </ComplexType>
- <EntityType Name="Administrator">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- </EntityType>
- </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="Хранилище BB_AzizovaModelContainer" CdmEntityContainer="BB_AzizovaEntities">
- <EntitySetMapping Name="Client">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Client">
- <MappingFragment StoreEntitySet="Client">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="FirstName" ColumnName="FirstName" />
- <ScalarProperty Name="LastName" ColumnName="LastName" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="Phone" ColumnName="Phone" />
- <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Clients">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Clients">
- <MappingFragment StoreEntitySet="Clients">
- <ScalarProperty Name="ID_Client" ColumnName="ID_Client" />
- <ScalarProperty Name="Phomilia" ColumnName="Phomilia" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Otchestvo" ColumnName="Otchestvo" />
- <ScalarProperty Name="Pol" ColumnName="Pol" />
- <ScalarProperty Name="Phone" ColumnName="Phone" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="Data_Registra" ColumnName="Data_Registra" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ClientService">
- <EntityTypeMapping TypeName="BB_AzizovaModel.ClientService">
- <MappingFragment StoreEntitySet="ClientService">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ClientID" ColumnName="ClientID" />
- <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
- <ScalarProperty Name="StartTime" ColumnName="StartTime" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="DocumentByService">
- <EntityTypeMapping TypeName="BB_AzizovaModel.DocumentByService">
- <MappingFragment StoreEntitySet="DocumentByService">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
- <ScalarProperty Name="DocumentPath" ColumnName="DocumentPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Gender">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Gender">
- <MappingFragment StoreEntitySet="Gender">
- <ScalarProperty Name="Code" ColumnName="Code" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Manufacturer">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Manufacturer">
- <MappingFragment StoreEntitySet="Manufacturer">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Product">
- <MappingFragment StoreEntitySet="Product">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
- <ScalarProperty Name="IsActive" ColumnName="IsActive" />
- <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductPhoto">
- <EntityTypeMapping TypeName="BB_AzizovaModel.ProductPhoto">
- <MappingFragment StoreEntitySet="ProductPhoto">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductSale">
- <EntityTypeMapping TypeName="BB_AzizovaModel.ProductSale">
- <MappingFragment StoreEntitySet="ProductSale">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="Quantity" ColumnName="Quantity" />
- <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Service">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Service">
- <MappingFragment StoreEntitySet="Service">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="DurationInSeconds" ColumnName="DurationInSeconds" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Discount" ColumnName="Discount" />
- <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ServicePhoto">
- <EntityTypeMapping TypeName="BB_AzizovaModel.ServicePhoto">
- <MappingFragment StoreEntitySet="ServicePhoto">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Sotrudnik">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Sotrudnik">
- <MappingFragment StoreEntitySet="Sotrudnik">
- <ScalarProperty Name="ID_Sotrudnik" ColumnName="ID_Sotrudnik" />
- <ScalarProperty Name="Phomilia" ColumnName="Phomilia" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ID_Uslugi" ColumnName="ID_Uslugi" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="BB_AzizovaModel.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="Tag">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Tag">
- <MappingFragment StoreEntitySet="Tag">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Color" ColumnName="Color" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Uslugi">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Uslugi">
- <MappingFragment StoreEntitySet="Uslugi">
- <ScalarProperty Name="ID_Uslugi" ColumnName="ID_Uslugi" />
- <ScalarProperty Name="Наименование_услуги" ColumnName="Наименование_услуги" />
- <ScalarProperty Name="Главное_изображение" ColumnName="Главное_изображение" />
- <ScalarProperty Name="Длительность" ColumnName="Длительность" />
- <ScalarProperty Name="Стоимость" ColumnName="Стоимость" />
- <ScalarProperty Name="Действующая_скидка" ColumnName="Действующая_скидка" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Uslugi_i_Klient">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Uslugi_i_Klient">
- <MappingFragment StoreEntitySet="Uslugi_i_Klient">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Услуга" ColumnName="Услуга" />
- <ScalarProperty Name="Начало_оказания_услуги" ColumnName="Начало_оказания_услуги" />
- <ScalarProperty Name="Клиент" ColumnName="Клиент" />
- <ScalarProperty Name="ID_Client" ColumnName="ID_Client" />
- <ScalarProperty Name="ID_Uslugi" ColumnName="ID_Uslugi" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="AttachedProduct" TypeName="BB_AzizovaModel.AttachedProduct" StoreEntitySet="AttachedProduct">
- <EndProperty Name="Product">
- <ScalarProperty Name="ID" ColumnName="MainProductID" />
- </EndProperty>
- <EndProperty Name="Product1">
- <ScalarProperty Name="ID" ColumnName="AttachedProductID" />
- </EndProperty>
- </AssociationSetMapping>
- <AssociationSetMapping Name="TagOfClient" TypeName="BB_AzizovaModel.TagOfClient" StoreEntitySet="TagOfClient">
- <EndProperty Name="Client">
- <ScalarProperty Name="ID" ColumnName="ClientID" />
- </EndProperty>
- <EndProperty Name="Tag">
- <ScalarProperty Name="ID" ColumnName="TagID" />
- </EndProperty>
- </AssociationSetMapping>
- <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище BB_AzizovaModel.sp_alterdiagram" />
- <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище BB_AzizovaModel.sp_creatediagram" />
- <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище BB_AzizovaModel.sp_dropdiagram" />
- <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище BB_AzizovaModel.sp_helpdiagramdefinition">
- <ResultMapping>
- <ComplexTypeMapping TypeName="BB_AzizovaModel.sp_helpdiagramdefinition_Result">
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </ComplexTypeMapping>
- </ResultMapping>
- </FunctionImportMapping>
- <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище BB_AzizovaModel.sp_helpdiagrams">
- <ResultMapping>
- <ComplexTypeMapping TypeName="BB_AzizovaModel.sp_helpdiagrams_Result">
- <ScalarProperty Name="Database" ColumnName="Database" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Owner" ColumnName="Owner" />
- <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
- </ComplexTypeMapping>
- </ResultMapping>
- </FunctionImportMapping>
- <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище BB_AzizovaModel.sp_renamediagram" />
- <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище BB_AzizovaModel.sp_upgraddiagrams" />
- <EntitySetMapping Name="Administrator">
- <EntityTypeMapping TypeName="BB_AzizovaModel.Administrator">
- <MappingFragment StoreEntitySet="Administrator">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- </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="true" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|