123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
-
- <edmx:Runtime>
-
- <edmx:StorageModels>
- <Schema Namespace="Хранилище BB_GrishinaModel" 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="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="Имя" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Фамилия" Type="nchar" MaxLength="10" />
- <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
- <Property Name="Пол" Type="nchar" MaxLength="7" />
- <Property Name="Телефон" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="ДатаРождения" Type="date" />
- <Property Name="Email" Type="nvarchar" MaxLength="255" />
- <Property Name="ДатаРегистрации" Type="datetime" Nullable="false" />
- <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
- </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="7" 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" />
- <Property Name="Client" Type="varchar(max)" />
- </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="НаименованиеУслугми" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Изображение" Type="nvarchar(max)" />
- <Property Name="Длительность" Type="nvarchar(max)" />
- <Property Name="Стоимость" Type="nvarchar(max)" Nullable="false" />
- <Property Name="ДействующаяСкидка" Type="char" MaxLength="50" />
- <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="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>
- <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="0..1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Gender">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="Пол" />
- </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_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>
- <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_GrishinaModelContainer">
- <EntitySet Name="AttachedProduct" EntityType="Self.AttachedProduct" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Client" EntityType="Self.Client" 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="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" />
- <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_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>
- </EntityContainer>
- </Schema></edmx:StorageModels>
-
- <edmx:ConceptualModels>
- <Schema Namespace="BB_GrishinaModel" 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="Имя" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Фамилия" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
- <Property Name="Отчество" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Пол" Type="String" MaxLength="7" FixedLength="true" Unicode="true" />
- <Property Name="Телефон" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ДатаРождения" Type="DateTime" Precision="0" />
- <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Name="ДатаРегистрации" Type="DateTime" Nullable="false" Precision="3" />
- <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="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="7" 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" />
- <Property Name="Client" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <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="НаименованиеУслугми" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Изображение" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Длительность" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Стоимость" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ДействующаяСкидка" Type="String" MaxLength="50" FixedLength="true" Unicode="false" />
- <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="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>
- <Association Name="FK_Client_Gender">
- <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Gender">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="Пол" />
- </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_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="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_GrishinaEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Client" EntityType="Self.Client" />
- <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="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="Tag" EntityType="Self.Tag" />
- <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_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="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_GrishinaModel.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_GrishinaModel.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" />
- </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>
- </Schema>
- </edmx:ConceptualModels>
-
- <edmx:Mappings>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="Хранилище BB_GrishinaModelContainer" CdmEntityContainer="BB_GrishinaEntities">
- <EntitySetMapping Name="Client">
- <EntityTypeMapping TypeName="BB_GrishinaModel.Client">
- <MappingFragment StoreEntitySet="Client">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Имя" ColumnName="Имя" />
- <ScalarProperty Name="Фамилия" ColumnName="Фамилия" />
- <ScalarProperty Name="Отчество" ColumnName="Отчество" />
- <ScalarProperty Name="Пол" ColumnName="Пол" />
- <ScalarProperty Name="Телефон" ColumnName="Телефон" />
- <ScalarProperty Name="ДатаРождения" ColumnName="ДатаРождения" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="ДатаРегистрации" ColumnName="ДатаРегистрации" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ClientService">
- <EntityTypeMapping TypeName="BB_GrishinaModel.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_GrishinaModel.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_GrishinaModel.Gender">
- <MappingFragment StoreEntitySet="Gender">
- <ScalarProperty Name="Code" ColumnName="Code" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Manufacturer">
- <EntityTypeMapping TypeName="BB_GrishinaModel.Manufacturer">
- <MappingFragment StoreEntitySet="Manufacturer">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="Client" ColumnName="Client" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="BB_GrishinaModel.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_GrishinaModel.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_GrishinaModel.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_GrishinaModel.Service">
- <MappingFragment StoreEntitySet="Service">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="НаименованиеУслугми" ColumnName="НаименованиеУслугми" />
- <ScalarProperty Name="Изображение" ColumnName="Изображение" />
- <ScalarProperty Name="Длительность" ColumnName="Длительность" />
- <ScalarProperty Name="Стоимость" ColumnName="Стоимость" />
- <ScalarProperty Name="ДействующаяСкидка" ColumnName="ДействующаяСкидка" />
- <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ServicePhoto">
- <EntityTypeMapping TypeName="BB_GrishinaModel.ServicePhoto">
- <MappingFragment StoreEntitySet="ServicePhoto">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="BB_GrishinaModel.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_GrishinaModel.Tag">
- <MappingFragment StoreEntitySet="Tag">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Color" ColumnName="Color" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="AttachedProduct" TypeName="BB_GrishinaModel.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_GrishinaModel.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_GrishinaModel.sp_alterdiagram" />
- <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище BB_GrishinaModel.sp_creatediagram" />
- <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище BB_GrishinaModel.sp_dropdiagram" />
- <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище BB_GrishinaModel.sp_helpdiagramdefinition">
- <ResultMapping>
- <ComplexTypeMapping TypeName="BB_GrishinaModel.sp_helpdiagramdefinition_Result">
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </ComplexTypeMapping>
- </ResultMapping>
- </FunctionImportMapping>
- <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище BB_GrishinaModel.sp_helpdiagrams">
- <ResultMapping>
- <ComplexTypeMapping TypeName="BB_GrishinaModel.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_GrishinaModel.sp_renamediagram" />
- <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище BB_GrishinaModel.sp_upgraddiagrams" />
- </EntityContainerMapping>
- </Mapping>
- </edmx:Mappings>
- </edmx:Runtime>
-
- <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>
-
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|