<?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="Хранилище СarServiceModel" 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="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="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="Role">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" Nullable="false" />
          <Property Name="Name" Type="nchar" MaxLength="50" Nullable="false" />
        </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="MainImage" Type="image" />
        </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>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="Login" />
          </Key>
          <Property Name="Login" Type="nchar" MaxLength="50" Nullable="false" />
          <Property Name="Password" Type="nchar" MaxLength="50" Nullable="false" />
          <Property Name="RoleId" 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="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_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_User_Role1">
          <End Role="Role" Type="Self.Role" Multiplicity="1" />
          <End Role="User" Type="Self.User" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="User">
              <PropertyRef Name="RoleId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Хранилище СarServiceModelContainer">
          <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="Role" EntityType="Self.Role" 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" />
          <EntitySet Name="User" EntityType="Self.User" 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>
          <AssociationSet Name="FK_User_Role1" Association="Self.FK_User_Role1">
            <End Role="Role" EntitySet="Role" />
            <End Role="User" EntitySet="User" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="СarServiceModel" 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">
        <EntityContainer Name="СarServiceEntities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Client" EntityType="СarServiceModel.Client" />
          <EntitySet Name="ClientService" EntityType="СarServiceModel.ClientService" />
          <EntitySet Name="DocumentByService" EntityType="СarServiceModel.DocumentByService" />
          <EntitySet Name="Gender" EntityType="СarServiceModel.Gender" />
          <EntitySet Name="Manufacturer" EntityType="СarServiceModel.Manufacturer" />
          <EntitySet Name="Product" EntityType="СarServiceModel.Product" />
          <EntitySet Name="ProductPhoto" EntityType="СarServiceModel.ProductPhoto" />
          <EntitySet Name="ProductSale" EntityType="СarServiceModel.ProductSale" />
          <EntitySet Name="Role" EntityType="СarServiceModel.Role" />
          <EntitySet Name="Service" EntityType="СarServiceModel.Service" />
          <EntitySet Name="ServicePhoto" EntityType="СarServiceModel.ServicePhoto" />
          <EntitySet Name="sysdiagrams" EntityType="СarServiceModel.sysdiagrams" />
          <EntitySet Name="Tag" EntityType="СarServiceModel.Tag" />
          <EntitySet Name="User" EntityType="СarServiceModel.User" />
          <AssociationSet Name="FK_Client_Gender" Association="СarServiceModel.FK_Client_Gender">
            <End Role="Gender" EntitySet="Gender" />
            <End Role="Client" EntitySet="Client" />
          </AssociationSet>
          <AssociationSet Name="FK_ClientService_Client" Association="СarServiceModel.FK_ClientService_Client">
            <End Role="Client" EntitySet="Client" />
            <End Role="ClientService" EntitySet="ClientService" />
          </AssociationSet>
          <AssociationSet Name="FK_ClientService_Service" Association="СarServiceModel.FK_ClientService_Service">
            <End Role="Service" EntitySet="Service" />
            <End Role="ClientService" EntitySet="ClientService" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentByService_ClientService" Association="СarServiceModel.FK_DocumentByService_ClientService">
            <End Role="ClientService" EntitySet="ClientService" />
            <End Role="DocumentByService" EntitySet="DocumentByService" />
          </AssociationSet>
          <AssociationSet Name="FK_ProductSale_ClientService" Association="СarServiceModel.FK_ProductSale_ClientService">
            <End Role="ClientService" EntitySet="ClientService" />
            <End Role="ProductSale" EntitySet="ProductSale" />
          </AssociationSet>
          <AssociationSet Name="FK_Product_Manufacturer" Association="СarServiceModel.FK_Product_Manufacturer">
            <End Role="Manufacturer" EntitySet="Manufacturer" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="FK_ProductPhoto_Product" Association="СarServiceModel.FK_ProductPhoto_Product">
            <End Role="Product" EntitySet="Product" />
            <End Role="ProductPhoto" EntitySet="ProductPhoto" />
          </AssociationSet>
          <AssociationSet Name="FK_ProductSale_Product" Association="СarServiceModel.FK_ProductSale_Product">
            <End Role="Product" EntitySet="Product" />
            <End Role="ProductSale" EntitySet="ProductSale" />
          </AssociationSet>
          <AssociationSet Name="FK_User_Role1" Association="СarServiceModel.FK_User_Role1">
            <End Role="Role" EntitySet="Role" />
            <End Role="User" EntitySet="User" />
          </AssociationSet>
          <AssociationSet Name="FK_ServicePhoto_Service" Association="СarServiceModel.FK_ServicePhoto_Service">
            <End Role="Service" EntitySet="Service" />
            <End Role="ServicePhoto" EntitySet="ServicePhoto" />
          </AssociationSet>
          <AssociationSet Name="AttachedProduct" Association="СarServiceModel.AttachedProduct">
            <End Role="Product" EntitySet="Product" />
            <End Role="Product1" EntitySet="Product" />
          </AssociationSet>
          <AssociationSet Name="TagOfClient" Association="СarServiceModel.TagOfClient">
            <End Role="Client" EntitySet="Client" />
            <End Role="Tag" EntitySet="Tag" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Client">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="FirstName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Name="LastName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
          <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" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
          <Property Name="GenderCode" Type="String" Nullable="false" MaxLength="1" FixedLength="true" Unicode="true" />
          <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Gender" Relationship="СarServiceModel.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
          <NavigationProperty Name="ClientService" Relationship="СarServiceModel.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
          <NavigationProperty Name="Tag" Relationship="СarServiceModel.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="СarServiceModel.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
          <NavigationProperty Name="Service" Relationship="СarServiceModel.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
          <NavigationProperty Name="DocumentByService" Relationship="СarServiceModel.FK_DocumentByService_ClientService" FromRole="ClientService" ToRole="DocumentByService" />
          <NavigationProperty Name="ProductSale" Relationship="СarServiceModel.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" Nullable="false" MaxLength="1000" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="ClientService" Relationship="СarServiceModel.FK_DocumentByService_ClientService" FromRole="DocumentByService" ToRole="ClientService" />
        </EntityType>
        <EntityType Name="Gender">
          <Key>
            <PropertyRef Name="Code" />
          </Key>
          <Property Name="Code" Type="String" Nullable="false" MaxLength="1" FixedLength="true" Unicode="true" />
          <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Client" Relationship="СarServiceModel.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" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="StartDate" Type="DateTime" Precision="0" />
          <NavigationProperty Name="Product" Relationship="СarServiceModel.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" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="Cost" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
          <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="СarServiceModel.FK_Product_Manufacturer" FromRole="Product" ToRole="Manufacturer" />
          <NavigationProperty Name="ProductPhoto" Relationship="СarServiceModel.FK_ProductPhoto_Product" FromRole="Product" ToRole="ProductPhoto" />
          <NavigationProperty Name="ProductSale" Relationship="СarServiceModel.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
          <NavigationProperty Name="Product1" Relationship="СarServiceModel.AttachedProduct" FromRole="Product" ToRole="Product1" />
          <NavigationProperty Name="Product2" Relationship="СarServiceModel.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" Nullable="false" MaxLength="1000" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Product" Relationship="СarServiceModel.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="СarServiceModel.FK_ProductSale_ClientService" FromRole="ProductSale" ToRole="ClientService" />
          <NavigationProperty Name="Product" Relationship="СarServiceModel.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
        </EntityType>
        <EntityType Name="Role">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="true" Unicode="true" />
          <NavigationProperty Name="User" Relationship="СarServiceModel.FK_User_Role1" FromRole="Role" ToRole="User" />
        </EntityType>
        <EntityType Name="Service">
          <Key>
            <PropertyRef Name="ID" />
          </Key>
          <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="Cost" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
          <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="MainImage" Type="Binary" MaxLength="Max" FixedLength="false" />
          <NavigationProperty Name="ClientService" Relationship="СarServiceModel.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
          <NavigationProperty Name="ServicePhoto" Relationship="СarServiceModel.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" Nullable="false" MaxLength="1000" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Service" Relationship="СarServiceModel.FK_ServicePhoto_Service" FromRole="ServicePhoto" ToRole="Service" />
        </EntityType>
        <EntityType Name="sysdiagrams">
          <Key>
            <PropertyRef Name="diagram_id" />
          </Key>
          <Property Name="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
          <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" Nullable="false" MaxLength="30" FixedLength="false" Unicode="true" />
          <Property Name="Color" Type="String" Nullable="false" MaxLength="6" FixedLength="true" Unicode="true" />
          <NavigationProperty Name="Client" Relationship="СarServiceModel.TagOfClient" FromRole="Tag" ToRole="Client" />
        </EntityType>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="Login" />
          </Key>
          <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="true" Unicode="true" />
          <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="true" Unicode="true" />
          <Property Name="RoleId" Type="Int32" Nullable="false" />
          <NavigationProperty Name="Role" Relationship="СarServiceModel.FK_User_Role1" FromRole="User" ToRole="Role" />
        </EntityType>
        <Association Name="FK_Client_Gender">
          <End Type="СarServiceModel.Gender" Role="Gender" Multiplicity="1" />
          <End Type="СarServiceModel.Client" Role="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 Type="СarServiceModel.Client" Role="Client" Multiplicity="1" />
          <End Type="СarServiceModel.ClientService" Role="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 Type="СarServiceModel.Service" Role="Service" Multiplicity="1" />
          <End Type="СarServiceModel.ClientService" Role="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 Type="СarServiceModel.ClientService" Role="ClientService" Multiplicity="1" />
          <End Type="СarServiceModel.DocumentByService" Role="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 Type="СarServiceModel.ClientService" Role="ClientService" Multiplicity="0..1" />
          <End Type="СarServiceModel.ProductSale" Role="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 Type="СarServiceModel.Manufacturer" Role="Manufacturer" Multiplicity="0..1" />
          <End Type="СarServiceModel.Product" Role="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 Type="СarServiceModel.Product" Role="Product" Multiplicity="1" />
          <End Type="СarServiceModel.ProductPhoto" Role="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 Type="СarServiceModel.Product" Role="Product" Multiplicity="1" />
          <End Type="СarServiceModel.ProductSale" Role="ProductSale" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Product">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="ProductSale">
              <PropertyRef Name="ProductID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_User_Role1">
          <End Type="СarServiceModel.Role" Role="Role" Multiplicity="1" />
          <End Type="СarServiceModel.User" Role="User" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Role">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="User">
              <PropertyRef Name="RoleId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServicePhoto_Service">
          <End Type="СarServiceModel.Service" Role="Service" Multiplicity="1" />
          <End Type="СarServiceModel.ServicePhoto" Role="ServicePhoto" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Service">
              <PropertyRef Name="ID" />
            </Principal>
            <Dependent Role="ServicePhoto">
              <PropertyRef Name="ServiceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="AttachedProduct">
          <End Type="СarServiceModel.Product" Role="Product" Multiplicity="*" />
          <End Type="СarServiceModel.Product" Role="Product1" Multiplicity="*" />
        </Association>
        <Association Name="TagOfClient">
          <End Type="СarServiceModel.Client" Role="Client" Multiplicity="*" />
          <End Type="СarServiceModel.Tag" Role="Tag" Multiplicity="*" />
        </Association>
        </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="Хранилище СarServiceModelContainer" CdmEntityContainer="СarServiceEntities">
          <EntitySetMapping Name="Client">
            <EntityTypeMapping TypeName="СarServiceModel.Client">
              <MappingFragment StoreEntitySet="Client">
                <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
                <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
                <ScalarProperty Name="Phone" ColumnName="Phone" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
                <ScalarProperty Name="Birthday" ColumnName="Birthday" />
                <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ClientService">
            <EntityTypeMapping TypeName="СarServiceModel.ClientService">
              <MappingFragment StoreEntitySet="ClientService">
                <ScalarProperty Name="Comment" ColumnName="Comment" />
                <ScalarProperty Name="StartTime" ColumnName="StartTime" />
                <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
                <ScalarProperty Name="ClientID" ColumnName="ClientID" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentByService">
            <EntityTypeMapping TypeName="СarServiceModel.DocumentByService">
              <MappingFragment StoreEntitySet="DocumentByService">
                <ScalarProperty Name="DocumentPath" ColumnName="DocumentPath" />
                <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Gender">
            <EntityTypeMapping TypeName="СarServiceModel.Gender">
              <MappingFragment StoreEntitySet="Gender">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Code" ColumnName="Code" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Manufacturer">
            <EntityTypeMapping TypeName="СarServiceModel.Manufacturer">
              <MappingFragment StoreEntitySet="Manufacturer">
                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Product">
            <EntityTypeMapping TypeName="СarServiceModel.Product">
              <MappingFragment StoreEntitySet="Product">
                <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
                <ScalarProperty Name="IsActive" ColumnName="IsActive" />
                <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ProductPhoto">
            <EntityTypeMapping TypeName="СarServiceModel.ProductPhoto">
              <MappingFragment StoreEntitySet="ProductPhoto">
                <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
                <ScalarProperty Name="ProductID" ColumnName="ProductID" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ProductSale">
            <EntityTypeMapping TypeName="СarServiceModel.ProductSale">
              <MappingFragment StoreEntitySet="ProductSale">
                <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
                <ScalarProperty Name="Quantity" ColumnName="Quantity" />
                <ScalarProperty Name="ProductID" ColumnName="ProductID" />
                <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Role">
            <EntityTypeMapping TypeName="СarServiceModel.Role">
              <MappingFragment StoreEntitySet="Role">
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Id" ColumnName="Id" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Service">
            <EntityTypeMapping TypeName="СarServiceModel.Service">
              <MappingFragment StoreEntitySet="Service">
                <ScalarProperty Name="MainImage" ColumnName="MainImage" />
                <ScalarProperty Name="Discount" ColumnName="Discount" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="DurationInSeconds" ColumnName="DurationInSeconds" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ServicePhoto">
            <EntityTypeMapping TypeName="СarServiceModel.ServicePhoto">
              <MappingFragment StoreEntitySet="ServicePhoto">
                <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
                <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="sysdiagrams">
            <EntityTypeMapping TypeName="СarServiceModel.sysdiagrams">
              <MappingFragment StoreEntitySet="sysdiagrams">
                <ScalarProperty Name="definition" ColumnName="definition" />
                <ScalarProperty Name="version" ColumnName="version" />
                <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
                <ScalarProperty Name="principal_id" ColumnName="principal_id" />
                <ScalarProperty Name="name" ColumnName="name" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Tag">
            <EntityTypeMapping TypeName="СarServiceModel.Tag">
              <MappingFragment StoreEntitySet="Tag">
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ID" ColumnName="ID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="User">
            <EntityTypeMapping TypeName="СarServiceModel.User">
              <MappingFragment StoreEntitySet="User">
                <ScalarProperty Name="RoleId" ColumnName="RoleId" />
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="Login" ColumnName="Login" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <AssociationSetMapping Name="AttachedProduct" TypeName="СarServiceModel.AttachedProduct" StoreEntitySet="AttachedProduct">
            <EndProperty Name="Product1">
              <ScalarProperty Name="ID" ColumnName="AttachedProductID" />
            </EndProperty>
            <EndProperty Name="Product">
              <ScalarProperty Name="ID" ColumnName="MainProductID" />
            </EndProperty>
          </AssociationSetMapping>
          <AssociationSetMapping Name="TagOfClient" TypeName="СarServiceModel.TagOfClient" StoreEntitySet="TagOfClient">
            <EndProperty Name="Tag">
              <ScalarProperty Name="ID" ColumnName="TagID" />
            </EndProperty>
            <EndProperty Name="Client">
              <ScalarProperty Name="ID" ColumnName="ClientID" />
            </EndProperty>
          </AssociationSetMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="False" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
        <DesignerProperty Name="UseLegacyProvider" Value="false" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>