<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="Model.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="Table_Comment" EntityType="Model.Store.Table_Comment" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_Customer" EntityType="Model.Store.Table_Customer" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_DataBuy" EntityType="Model.Store.Table_DataBuy" store:Type="Tables" store:Schema="dbo" store:Name="Table_DataBuy">
            <DefiningQuery>SELECT 
      [Table_DataBuy].[CodBuy] AS [CodBuy], 
      [Table_DataBuy].[CodKala] AS [CodKala], 
      [Table_DataBuy].[NameKala] AS [NameKala], 
      [Table_DataBuy].[Model] AS [Model], 
      [Table_DataBuy].[Color] AS [Color], 
      [Table_DataBuy].[Tedad] AS [Tedad], 
      [Table_DataBuy].[Money] AS [Money]
      FROM [dbo].[Table_DataBuy] AS [Table_DataBuy]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Table_Factor" EntityType="Model.Store.Table_Factor" store:Type="Tables" store:Schema="dbo" store:Name="Table_Factor">
            <DefiningQuery>SELECT 
      [Table_Factor].[CodFactor] AS [CodFactor], 
      [Table_Factor].[CodKala] AS [CodKala], 
      [Table_Factor].[NameKala] AS [NameKala], 
      [Table_Factor].[Model] AS [Model], 
      [Table_Factor].[Color] AS [Color], 
      [Table_Factor].[Tedad] AS [Tedad], 
      [Table_Factor].[Money] AS [Money]
      FROM [dbo].[Table_Factor] AS [Table_Factor]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Table_Kala" EntityType="Model.Store.Table_Kala" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_Kharid" EntityType="Model.Store.Table_Kharid" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_Sherkat" EntityType="Model.Store.Table_Sherkat" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_TelephoneCompany" EntityType="Model.Store.Table_TelephoneCompany" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_TelephonePerson" EntityType="Model.Store.Table_TelephonePerson" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Table_User" EntityType="Model.Store.Table_User" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="ViewFactor" EntityType="Model.Store.ViewFactor" store:Type="Views" store:Schema="dbo" store:Name="ViewFactor">
            <DefiningQuery>SELECT 
      [ViewFactor].[CodFactor] AS [CodFactor], 
      [ViewFactor].[Buyer] AS [Buyer], 
      [ViewFactor].[DateBuy] AS [DateBuy], 
      [ViewFactor].[NameKala] AS [NameKala], 
      [ViewFactor].[Model] AS [Model], 
      [ViewFactor].[Tedad] AS [Tedad], 
      [ViewFactor].[Money] AS [Money]
      FROM [dbo].[ViewFactor] AS [ViewFactor]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="ViewFactorNew" EntityType="Model.Store.ViewFactorNew" store:Type="Views" store:Schema="dbo" store:Name="ViewFactorNew">
            <DefiningQuery>SELECT 
      [ViewFactorNew].[CodFactor] AS [CodFactor], 
      [ViewFactorNew].[Buyer] AS [Buyer], 
      [ViewFactorNew].[DateBuy] AS [DateBuy], 
      [ViewFactorNew].[NameKala] AS [NameKala], 
      [ViewFactorNew].[Model] AS [Model], 
      [ViewFactorNew].[Color] AS [Color], 
      [ViewFactorNew].[Tedad] AS [Tedad], 
      [ViewFactorNew].[Money] AS [Money]
      FROM [dbo].[ViewFactorNew] AS [ViewFactorNew]</DefiningQuery>
          </EntitySet>
          <AssociationSet Name="FK_Table_DataBuy_Table_Kharid" Association="Model.Store.FK_Table_DataBuy_Table_Kharid">
            <End Role="Table_Kharid" EntitySet="Table_Kharid" />
            <End Role="Table_DataBuy" EntitySet="Table_DataBuy" />
          </AssociationSet>
          <AssociationSet Name="FK_Table_Factor_Table_Customer" Association="Model.Store.FK_Table_Factor_Table_Customer">
            <End Role="Table_Customer" EntitySet="Table_Customer" />
            <End Role="Table_Factor" EntitySet="Table_Factor" />
          </AssociationSet>
          <AssociationSet Name="FK_Table_Kharid_Table_Sherkat" Association="Model.Store.FK_Table_Kharid_Table_Sherkat">
            <End Role="Table_Sherkat" EntitySet="Table_Sherkat" />
            <End Role="Table_Kharid" EntitySet="Table_Kharid" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Table_Comment">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="DateComment" Type="nvarchar" MaxLength="50" />
          <Property Name="Comment" Type="nvarchar" MaxLength="300" />
        </EntityType>
        <EntityType Name="Table_Customer">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Name="CodFactor" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="Buyer" Type="nvarchar" MaxLength="50" />
          <Property Name="DateBuy" Type="nvarchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
      warning 6002: The table/view 'I:\C#\پروژه هاي كار شده\ENTITY FRAMEWORK\ENTITY FRAMEWORK\ENTITY FRAMEWORK\BIN\DEBUG\ENTITYFRAMEWORK.MDF.dbo.Table_DataBuy' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.
      -->
        <EntityType Name="Table_DataBuy">
          <Key>
            <PropertyRef Name="CodBuy" />
            <PropertyRef Name="Money" />
          </Key>
          <Property Name="CodBuy" Type="int" Nullable="false" />
          <Property Name="CodKala" Type="int" />
          <Property Name="NameKala" Type="nvarchar" MaxLength="50" />
          <Property Name="Model" Type="nvarchar" MaxLength="50" />
          <Property Name="Color" Type="nvarchar" MaxLength="50" />
          <Property Name="Tedad" Type="nvarchar" MaxLength="50" />
          <Property Name="Money" Type="int" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
      warning 6002: The table/view 'I:\C#\پروژه هاي كار شده\ENTITY FRAMEWORK\ENTITY FRAMEWORK\ENTITY FRAMEWORK\BIN\DEBUG\ENTITYFRAMEWORK.MDF.dbo.Table_Factor' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.
      -->
        <EntityType Name="Table_Factor">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Name="CodFactor" Type="int" Nullable="false" />
          <Property Name="CodKala" Type="int" />
          <Property Name="NameKala" Type="nvarchar" MaxLength="50" />
          <Property Name="Model" Type="nvarchar" MaxLength="50" />
          <Property Name="Color" Type="nvarchar" MaxLength="50" />
          <Property Name="Tedad" Type="nvarchar" MaxLength="50" />
          <Property Name="Money" Type="int" />
        </EntityType>
        <EntityType Name="Table_Kala">
          <Key>
            <PropertyRef Name="CodKala" />
          </Key>
          <Property Name="CodKala" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="NameKala" Type="nvarchar" MaxLength="50" />
          <Property Name="image" Type="image" />
          <Property Name="Model" Type="nvarchar" MaxLength="50" />
          <Property Name="Color" Type="nvarchar" MaxLength="50" />
          <Property Name="Tedad" Type="nvarchar" MaxLength="50" />
          <Property Name="Money" Type="int" />
        </EntityType>
        <EntityType Name="Table_Kharid">
          <Key>
            <PropertyRef Name="CodBuy" />
          </Key>
          <Property Name="CodCompany" Type="int" Nullable="false" />
          <Property Name="CodBuy" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="DateBuy" Type="nvarchar" MaxLength="50" />
          <Property Name="Money" Type="int" />
        </EntityType>
        <EntityType Name="Table_Sherkat">
          <Key>
            <PropertyRef Name="CodCompany" />
          </Key>
          <Property Name="CodCompany" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="CompanyName" Type="nvarchar" MaxLength="50" />
          <Property Name="Comment" Type="nvarchar" MaxLength="300" />
        </EntityType>
        <EntityType Name="Table_TelephoneCompany">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="CompanyName" Type="nvarchar" MaxLength="50" />
          <Property Name="NameBakshe" Type="nvarchar" MaxLength="50" />
          <Property Name="NameMassol" Type="nvarchar" MaxLength="50" />
          <Property Name="Telephone" Type="nvarchar" MaxLength="50" />
          <Property Name="Mobile" Type="nvarchar" MaxLength="50" />
          <Property Name="Address" Type="nvarchar" MaxLength="70" />
        </EntityType>
        <EntityType Name="Table_TelephonePerson">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" />
          <Property Name="LastName" Type="nvarchar" MaxLength="50" />
          <Property Name="Telephone" Type="nvarchar" MaxLength="50" />
          <Property Name="Mobile" Type="nvarchar" MaxLength="50" />
          <Property Name="Address" Type="nvarchar" MaxLength="70" />
        </EntityType>
        <EntityType Name="Table_User">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="User" Type="nvarchar" MaxLength="50" />
          <Property Name="Password" Type="nvarchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
      warning 6002: The table/view 'I:\C#\پروژه هاي كار شده\ENTITY FRAMEWORK\ENTITY FRAMEWORK\ENTITY FRAMEWORK\BIN\DEBUG\ENTITYFRAMEWORK.MDF.dbo.ViewFactor' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.
      -->
        <EntityType Name="ViewFactor">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Name="CodFactor" Type="int" Nullable="false" />
          <Property Name="Buyer" Type="nvarchar" MaxLength="50" />
          <Property Name="DateBuy" Type="nvarchar" MaxLength="50" />
          <Property Name="NameKala" Type="nvarchar" MaxLength="50" />
          <Property Name="Model" Type="nvarchar" MaxLength="50" />
          <Property Name="Tedad" Type="nvarchar" MaxLength="50" />
          <Property Name="Money" Type="int" />
        </EntityType>
        <!--Errors Found During Generation:
      warning 6002: The table/view 'I:\C#\پروژه هاي كار شده\ENTITY FRAMEWORK\ENTITY FRAMEWORK\ENTITY FRAMEWORK\BIN\DEBUG\ENTITYFRAMEWORK.MDF.dbo.ViewFactorNew' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.
      -->
        <EntityType Name="ViewFactorNew">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Name="CodFactor" Type="int" Nullable="false" />
          <Property Name="Buyer" Type="nvarchar" MaxLength="50" />
          <Property Name="DateBuy" Type="nvarchar" MaxLength="50" />
          <Property Name="NameKala" Type="nvarchar" MaxLength="50" />
          <Property Name="Model" Type="nvarchar" MaxLength="50" />
          <Property Name="Color" Type="nvarchar" MaxLength="50" />
          <Property Name="Tedad" Type="nvarchar" MaxLength="50" />
          <Property Name="Money" Type="nvarchar" MaxLength="50" />
        </EntityType>
        <Association Name="FK_Table_DataBuy_Table_Kharid">
          <End Role="Table_Kharid" Type="Model.Store.Table_Kharid" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="Table_DataBuy" Type="Model.Store.Table_DataBuy" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Table_Kharid">
              <PropertyRef Name="CodBuy" />
            </Principal>
            <Dependent Role="Table_DataBuy">
              <PropertyRef Name="CodBuy" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Table_Factor_Table_Customer">
          <End Role="Table_Customer" Type="Model.Store.Table_Customer" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="Table_Factor" Type="Model.Store.Table_Factor" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="Table_Customer">
              <PropertyRef Name="CodFactor" />
            </Principal>
            <Dependent Role="Table_Factor">
              <PropertyRef Name="CodFactor" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Table_Kharid_Table_Sherkat">
          <End Role="Table_Sherkat" Type="Model.Store.Table_Sherkat" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="Table_Kharid" Type="Model.Store.Table_Kharid" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Table_Sherkat">
              <PropertyRef Name="CodCompany" />
            </Principal>
            <Dependent Role="Table_Kharid">
              <PropertyRef Name="CodCompany" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Sp_Backup" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="db_name" Type="nvarchar" Mode="In" />
          <Parameter Name="disk" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_DeleteCustomer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_DeleteDateBuy" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodKala" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_DeleteFactor" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_DeleteKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodBuy" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_InsertCustomer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="Buyer" Type="nvarchar" Mode="In" />
          <Parameter Name="DateBuy" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_InsertDataBuy" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodBuy" Type="int" Mode="In" />
          <Parameter Name="CodKala" Type="int" Mode="In" />
          <Parameter Name="NameKala" Type="nvarchar" Mode="In" />
          <Parameter Name="Model" Type="nvarchar" Mode="In" />
          <Parameter Name="Color" Type="nvarchar" Mode="In" />
          <Parameter Name="Tedad" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_InsertFactor" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
          <Parameter Name="NameKala" Type="nvarchar" Mode="In" />
          <Parameter Name="Model" Type="nvarchar" Mode="In" />
          <Parameter Name="Color" Type="nvarchar" Mode="In" />
          <Parameter Name="Tedad" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_InsertKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="Datebuy" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_Insertuser" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="user" Type="nvarchar" Mode="In" />
          <Parameter Name="password" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_ListKharidKoli" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="Codbuy" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_MaxCustomer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
        <Function Name="Sp_MaxFrosh" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
        <Function Name="Sp_PrintFactor" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_PrintFactornew" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_Restore" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
        <Function Name="Sp_SearchCompany" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CompanyName" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_SearchCustomer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="Matn" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_SearchDate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="Date" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_SearchFactor" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="codfactor" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_SearchKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="a" Type="nvarchar" Mode="In" />
          <Parameter Name="b" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_SearchKharidCompany" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="Date" Type="nvarchar" Mode="In" />
          <Parameter Name="CodCompany" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_SearchListKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="NameKala" Type="nvarchar" Mode="In" />
          <Parameter Name="CodBuy" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_SearchTarikh" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="a" Type="nvarchar" Mode="In" />
          <Parameter Name="b" Type="nvarchar" Mode="In" />
        </Function>
        <Function Name="Sp_SelectComment" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
        <Function Name="Sp_SelectCompany" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
        <Function Name="Sp_SelectCustomer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
        <Function Name="Sp_SelectFactor" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_SelectKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodCompany" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_SelectListKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodBuy" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_UpdateCustomer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
          <Parameter Name="Buyer" Type="nvarchar" Mode="In" />
          <Parameter Name="DateBuy" Type="nvarchar" Mode="In" />
          <Parameter Name="CommnetBuy" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_UpdateDateBuy" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodKala" Type="int" Mode="In" />
          <Parameter Name="NameKala" Type="nvarchar" Mode="In" />
          <Parameter Name="Model" Type="nvarchar" Mode="In" />
          <Parameter Name="Color" Type="nvarchar" Mode="In" />
          <Parameter Name="Tedad" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_UpdateFactor" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodFactor" Type="int" Mode="In" />
          <Parameter Name="NameKala" Type="nvarchar" Mode="In" />
          <Parameter Name="Model" Type="nvarchar" Mode="In" />
          <Parameter Name="Color" Type="nvarchar" Mode="In" />
          <Parameter Name="Tedad" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_UpdateKharid" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodBuy" Type="int" Mode="In" />
          <Parameter Name="DateBuy" Type="nvarchar" Mode="In" />
          <Parameter Name="Money" Type="int" Mode="In" />
        </Function>
        <Function Name="Sp_UpdateTedad" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
          <Parameter Name="CodKala" Type="int" Mode="In" />
          <Parameter Name="number" Type="int" Mode="In" />
        </Function>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Model" Alias="Self" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
        <EntityContainer Name="Entity_FrameWorkEntities5">
          <FunctionImport Name="Sp_UpdateTedad" ReturnType="Collection(Int32)">
            <Parameter Name="CodKala" Mode="In" Type="Int32" />
            <Parameter Name="number" Mode="In" Type="Int32" />
          </FunctionImport>
          <EntitySet Name="Table_TelephoneCompany" EntityType="Model.Table_TelephoneCompany" />
          <EntitySet Name="Table_TelephonePerson" EntityType="Model.Table_TelephonePerson" />
          <EntitySet Name="Table_Kala" EntityType="Model.Table_Kala" />
          <FunctionImport Name="Sp_UpdateCustomer" ReturnType="Collection(Int32)">
            <Parameter Name="CodFactor" Mode="In" Type="Int32" />
            <Parameter Name="Buyer" Mode="In" Type="String" />
            <Parameter Name="DateBuy" Mode="In" Type="String" />
            <Parameter Name="CommnetBuy" Mode="In" Type="String" />
            <Parameter Name="Money" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_DeleteCustomer" ReturnType="Collection(Int32)">
          <Parameter Name="CodFactor" Mode="In" Type="Int32" />
          </FunctionImport>
          <EntitySet Name="ViewFactorNews" EntityType="Model.ViewFactorNew" />
          <EntitySet Name="Table_Comment" EntityType="Model.Table_Comment" />
          <FunctionImport Name="Sp_InsertCustomer" ReturnType="Collection(Int32)">
            <Parameter Name="Buyer" Mode="In" Type="String" />
            <Parameter Name="DateBuy" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_InsertFactor" ReturnType="Collection(Int32)">
            <Parameter Name="CodFactor" Mode="In" Type="Int32" />
            <Parameter Name="NameKala" Mode="In" Type="String" />
            <Parameter Name="Model" Mode="In" Type="String" />
            <Parameter Name="Color" Mode="In" Type="String" />
            <Parameter Name="Tedad" Mode="In" Type="String" />
            <Parameter Name="Money" Mode="In" Type="Int32" />
          </FunctionImport>
          <EntitySet Name="Table_Customer" EntityType="Model.Table_Customer" />
          <EntitySet Name="Table_Factor" EntityType="Model.Table_Factor" />
          <AssociationSet Name="FK_Table_Factor_Table_Customer" Association="Model.FK_Table_Factor_Table_Customer">
            <End Role="Table_Customer" EntitySet="Table_Customer" />
            <End Role="Table_Factor" EntitySet="Table_Factor" />
          </AssociationSet>
          <FunctionImport Name="Sp_MaxCustomer" ReturnType="Collection(Model.Sp_MaxCustomer_Result)" />
          <FunctionImport Name="Sp_SearchTarikh" ReturnType="Collection(Model.Sp_SearchTarikh_Result)">
            <Parameter Name="a" Mode="In" Type="String" />
            <Parameter Name="b" Mode="In" Type="String" />
          </FunctionImport>
          <EntitySet Name="Table_User" EntityType="Model.Table_User" />
          <FunctionImport Name="Sp_Backup">
            <Parameter Name="db_name" Mode="In" Type="String" />
            <Parameter Name="disk" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_Restore">
          </FunctionImport>
          <FunctionImport Name="Sp_SearchCustomer" ReturnType="Collection(Model.Sp_SearchCustomer_Result)">
          <Parameter Name="Matn" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_SearchDate" ReturnType="Collection(Model.Sp_SearchDate_Result)">
          <Parameter Name="Date" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_SelectFactor" ReturnType="Collection(Model.Sp_SelectFactor_Result3)">
          <Parameter Name="CodFactor" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_SearchFactor" ReturnType="Collection(Model.Sp_SearchFactor_Result)">
          <Parameter Name="codfactor" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_SelectKharid" ReturnType="Collection(Model.Sp_SelectKharid_Result)">
          <Parameter Name="CodCompany" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_SelectListKharid" ReturnType="Collection(Model.Sp_SelectListKharid_Result)">
          <Parameter Name="CodBuy" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_SelectCompany" ReturnType="Collection(Model.Sp_SelectCompany_Result)" />
          <FunctionImport Name="Sp_SelectComment" ReturnType="Collection(Model.Sp_SelectComment_Result)" />
          <FunctionImport Name="Sp_SelectCustomer" ReturnType="Collection(Model.Sp_SelectCustomer_Result)" />
          <FunctionImport Name="Sp_PrintFactor" ReturnType="Collection(Model.Sp_PrintFactor_Result)">
          <Parameter Name="CodFactor" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_PrintFactornew" ReturnType="Collection(Model.Sp_PrintFactornew_Result)">
          <Parameter Name="CodFactor" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_MaxFrosh" ReturnType="Collection(Model.Sp_MaxFrosh_Result)" />
          <EntitySet Name="ViewFactors" EntityType="Model.ViewFactor" />
          <FunctionImport Name="Sp_InsertKharid" ReturnType="Collection(Int32)">
            <Parameter Name="Datebuy" Mode="In" Type="String" />
            <Parameter Name="Money" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_UpdateKharid" ReturnType="Collection(Int32)">
            <Parameter Name="CodBuy" Mode="In" Type="Int32" />
            <Parameter Name="DateBuy" Mode="In" Type="String" />
            <Parameter Name="Money" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_UpdateDateBuy" ReturnType="Collection(Int32)">
            <Parameter Name="CodKala" Mode="In" Type="Int32" />
            <Parameter Name="NameKala" Mode="In" Type="String" />
            <Parameter Name="Model" Mode="In" Type="String" />
            <Parameter Name="Color" Mode="In" Type="String" />
            <Parameter Name="Tedad" Mode="In" Type="String" />
            <Parameter Name="Money" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_DeleteDateBuy" ReturnType="Collection(Int32)">
          <Parameter Name="CodKala" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_DeleteKharid" ReturnType="Collection(Int32)">
          <Parameter Name="CodBuy" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_SearchKharid" ReturnType="Collection(Model.Sp_SearchKharid_Result)">
            <Parameter Name="a" Mode="In" Type="String" />
            <Parameter Name="b" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_Insertuser" ReturnType="Collection(Int32)">
            <Parameter Name="user" Mode="In" Type="String" />
            <Parameter Name="password" Mode="In" Type="String" />
          </FunctionImport>
          <EntitySet Name="Table_DataBuy" EntityType="Model.Table_DataBuy" />
          <EntitySet Name="Table_Kharid" EntityType="Model.Table_Kharid" />
          <EntitySet Name="Table_Sherkat" EntityType="Model.Table_Sherkat" />
          <AssociationSet Name="FK_Table_DataBuy_Table_Kharid" Association="Model.FK_Table_DataBuy_Table_Kharid">
            <End Role="Table_Kharid" EntitySet="Table_Kharid" />
            <End Role="Table_DataBuy" EntitySet="Table_DataBuy" />
          </AssociationSet>
          <AssociationSet Name="FK_Table_Kharid_Table_Sherkat" Association="Model.FK_Table_Kharid_Table_Sherkat">
            <End Role="Table_Sherkat" EntitySet="Table_Sherkat" />
            <End Role="Table_Kharid" EntitySet="Table_Kharid" />
          </AssociationSet>
          <FunctionImport Name="Sp_InsertDataBuy" ReturnType="Collection(Int32)">
            <Parameter Name="CodBuy" Mode="In" Type="Int32" />
            <Parameter Name="CodKala" Mode="In" Type="Int32" />
            <Parameter Name="NameKala" Mode="In" Type="String" />
            <Parameter Name="Model" Mode="In" Type="String" />
            <Parameter Name="Color" Mode="In" Type="String" />
            <Parameter Name="Tedad" Mode="In" Type="String" />
            <Parameter Name="Money" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_SearchCompany" ReturnType="Collection(Model.Sp_SearchCompany_Result)">
          <Parameter Name="CompanyName" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Sp_SearchKharidCompany" ReturnType="Collection(Model.Sp_SearchKharidCompany_Result)">
            <Parameter Name="Date" Mode="In" Type="String" />
            <Parameter Name="CodCompany" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_SearchListKharid" ReturnType="Collection(Model.Sp_SearchListKharid_Result)">
            <Parameter Name="NameKala" Mode="In" Type="String" />
            <Parameter Name="CodBuy" Mode="In" Type="Int32" />
          </FunctionImport>
          <FunctionImport Name="Sp_ListKharidKoli" ReturnType="Collection(Model.Sp_ListKharidKoli_Result)">
            <Parameter Name="Codbuy" Mode="In" Type="Int32" />
          </FunctionImport>
          </EntityContainer>
        <EntityType Name="Table_TelephoneCompany">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Type="Int32" Name="id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="CompanyName" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="NameBakshe" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="NameMassol" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Telephone" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Mobile" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Address" MaxLength="70" FixedLength="false" Unicode="true" />
        </EntityType>
        <EntityType Name="Table_TelephonePerson">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Type="Int32" Name="id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="Name" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="LastName" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Telephone" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Mobile" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Address" MaxLength="70" FixedLength="false" Unicode="true" />
        </EntityType>
        <EntityType Name="Table_Kala">
          <Key>
            <PropertyRef Name="CodKala" />
          </Key>
          <Property Type="Int32" Name="CodKala" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="NameKala" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="Binary" Name="image" MaxLength="Max" FixedLength="false" />
          <Property Type="String" Name="Model" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Color" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Tedad" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="Int32" Name="Money" />
        </EntityType>
        <ComplexType Name="Sp_SelectFactor_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Money" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Sp_SelectFactor_Result1">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Money" Nullable="true" MaxLength="50" />
        </ComplexType>
        <EntityType Name="ViewFactorNew">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="DateBuy" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="NameKala" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Model" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Color" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Tedad" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Money" MaxLength="50" FixedLength="false" Unicode="true" />
        </EntityType>
        <EntityType Name="Table_Comment">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Type="Int32" Name="id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="DateComment" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Comment" MaxLength="300" FixedLength="false" Unicode="true" />
        </EntityType>
        <ComplexType Name="Sp_SelectFactor_Result2">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <EntityType Name="Table_Customer">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Type="Int32" Name="CodFactor" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="Buyer" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="DateBuy" MaxLength="50" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Table_Factor" Relationship="Model.FK_Table_Factor_Table_Customer" FromRole="Table_Customer" ToRole="Table_Factor" />
        </EntityType>
        <EntityType Name="Table_Factor">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="Int32" Name="CodKala" />
          <Property Type="String" Name="NameKala" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Model" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Color" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Tedad" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="Int32" Name="Money" />
          <NavigationProperty Name="Table_Customer" Relationship="Model.FK_Table_Factor_Table_Customer" FromRole="Table_Factor" ToRole="Table_Customer" />
        </EntityType>
        <Association Name="FK_Table_Factor_Table_Customer">
          <End Type="Model.Table_Customer" Role="Table_Customer" Multiplicity="1" />
          <End Type="Model.Table_Factor" Role="Table_Factor" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="Table_Customer">
              <PropertyRef Name="CodFactor" />
            </Principal>
            <Dependent Role="Table_Factor">
              <PropertyRef Name="CodFactor" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Sp_MaxCustomer_Result">
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="tedadkharid" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Sp_SearchTarikh_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="tedad" Nullable="true" />
          <Property Type="Int32" Name="money" Nullable="true" />
        </ComplexType>
        <EntityType Name="Table_User">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Type="Int32" Name="id" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="User" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Password" MaxLength="50" FixedLength="false" Unicode="true" />
        </EntityType>
        <ComplexType Name="Sp_SearchCustomer_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Sp_SearchDate_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Sp_SelectFactor_Result3">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="Int32" Name="CodKala" Nullable="true" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Sp_SearchFactor_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Sp_SelectKharid_Result">
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Sp_SelectListKharid_Result">
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="Int32" Name="CodKala" Nullable="false" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Sp_SelectCompany_Result">
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="String" Name="CompanyName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Comment" Nullable="true" MaxLength="300" />
        </ComplexType>
        <ComplexType Name="Sp_SelectComment_Result">
          <Property Type="Int32" Name="id" Nullable="false" />
          <Property Type="String" Name="DateComment" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Comment" Nullable="true" MaxLength="300" />
        </ComplexType>
        <ComplexType Name="Sp_SelectCustomer_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Sp_PrintFactor_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="CodFactor1" Nullable="false" />
          <Property Type="Int32" Name="CodKala" Nullable="true" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Sp_PrintFactornew_Result">
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="CodKala" Nullable="true" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Sp_MaxFrosh_Result">
          <Property Type="Int32" Name="CodKala" Nullable="true" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Frosh" Nullable="true" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <EntityType Name="ViewFactor">
          <Key>
            <PropertyRef Name="CodFactor" />
          </Key>
          <Property Type="Int32" Name="CodFactor" Nullable="false" />
          <Property Type="String" Name="Buyer" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="DateBuy" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="NameKala" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Model" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Tedad" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="Int32" Name="Money" />
        </EntityType>
        <ComplexType Name="Sp_SearchKharid_Result">
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <EntityType Name="Table_DataBuy">
          <Key>
            <PropertyRef Name="CodBuy" />
            <PropertyRef Name="Money" />
          </Key>
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="Int32" Name="CodKala" />
          <Property Type="String" Name="NameKala" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Model" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Color" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Tedad" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="Int32" Name="Money" Nullable="false" />
          <NavigationProperty Name="Table_Kharid" Relationship="Model.FK_Table_DataBuy_Table_Kharid" FromRole="Table_DataBuy" ToRole="Table_Kharid" />
        </EntityType>
        <EntityType Name="Table_Kharid">
          <Key>
            <PropertyRef Name="CodBuy" />
          </Key>
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="Int32" Name="CodBuy" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="DateBuy" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="Int32" Name="Money" />
          <NavigationProperty Name="Table_DataBuy" Relationship="Model.FK_Table_DataBuy_Table_Kharid" FromRole="Table_Kharid" ToRole="Table_DataBuy" />
          <NavigationProperty Name="Table_Sherkat" Relationship="Model.FK_Table_Kharid_Table_Sherkat" FromRole="Table_Kharid" ToRole="Table_Sherkat" />
        </EntityType>
        <EntityType Name="Table_Sherkat">
          <Key>
            <PropertyRef Name="CodCompany" />
          </Key>
          <Property Type="Int32" Name="CodCompany" Nullable="false" a:StoreGeneratedPattern="Identity" xmlns:a="http://schemas.microsoft.com/ado/2009/02/edm/annotation" />
          <Property Type="String" Name="CompanyName" MaxLength="50" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="Comment" MaxLength="300" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Table_Kharid" Relationship="Model.FK_Table_Kharid_Table_Sherkat" FromRole="Table_Sherkat" ToRole="Table_Kharid" />
        </EntityType>
        <Association Name="FK_Table_DataBuy_Table_Kharid">
          <End Type="Model.Table_Kharid" Role="Table_Kharid" Multiplicity="1" />
          <End Type="Model.Table_DataBuy" Role="Table_DataBuy" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Table_Kharid">
              <PropertyRef Name="CodBuy" />
            </Principal>
            <Dependent Role="Table_DataBuy">
              <PropertyRef Name="CodBuy" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Table_Kharid_Table_Sherkat">
          <End Type="Model.Table_Sherkat" Role="Table_Sherkat" Multiplicity="1" />
          <End Type="Model.Table_Kharid" Role="Table_Kharid" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Table_Sherkat">
              <PropertyRef Name="CodCompany" />
            </Principal>
            <Dependent Role="Table_Kharid">
              <PropertyRef Name="CodCompany" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Sp_SearchCompany_Result">
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="String" Name="CompanyName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Comment" Nullable="true" MaxLength="300" />
        </ComplexType>
        <ComplexType Name="Sp_SearchKharidCompany_Result">
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Sp_SearchListKharid_Result">
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="Int32" Name="CodKala" Nullable="true" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Sp_ListKharidKoli_Result">
          <Property Type="Int32" Name="CodCompany" Nullable="false" />
          <Property Type="String" Name="CompanyName" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="CodBuy" Nullable="false" />
          <Property Type="String" Name="DateBuy" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="CodKala" Nullable="true" />
          <Property Type="String" Name="NameKala" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Model" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Color" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tedad" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="Money" Nullable="false" />
        </ComplexType>
        </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
    <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
  <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="Entity_FrameWorkEntities5">
          <FunctionImportMapping FunctionImportName="Sp_UpdateTedad" FunctionName="Model.Store.Sp_UpdateTedad" />
          <EntitySetMapping Name="Table_TelephoneCompany">
            <EntityTypeMapping TypeName="Model.Table_TelephoneCompany">
              <MappingFragment StoreEntitySet="Table_TelephoneCompany">
                <ScalarProperty Name="Address" ColumnName="Address" />
                <ScalarProperty Name="Mobile" ColumnName="Mobile" />
                <ScalarProperty Name="Telephone" ColumnName="Telephone" />
                <ScalarProperty Name="NameMassol" ColumnName="NameMassol" />
                <ScalarProperty Name="NameBakshe" ColumnName="NameBakshe" />
                <ScalarProperty Name="CompanyName" ColumnName="CompanyName" />
                <ScalarProperty Name="id" ColumnName="id" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Table_TelephonePerson">
            <EntityTypeMapping TypeName="Model.Table_TelephonePerson">
              <MappingFragment StoreEntitySet="Table_TelephonePerson">
                <ScalarProperty Name="Address" ColumnName="Address" />
                <ScalarProperty Name="Mobile" ColumnName="Mobile" />
                <ScalarProperty Name="Telephone" ColumnName="Telephone" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="id" ColumnName="id" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Table_Kala">
            <EntityTypeMapping TypeName="Model.Table_Kala">
              <MappingFragment StoreEntitySet="Table_Kala">
                <ScalarProperty Name="Money" ColumnName="Money" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="image" ColumnName="image" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Sp_UpdateCustomer" FunctionName="Model.Store.Sp_UpdateCustomer" />
          <FunctionImportMapping FunctionImportName="Sp_DeleteCustomer" FunctionName="Model.Store.Sp_DeleteCustomer" />
          <EntitySetMapping Name="ViewFactorNews">
            <EntityTypeMapping TypeName="Model.ViewFactorNew">
              <MappingFragment StoreEntitySet="ViewFactorNew">
                <ScalarProperty Name="Money" ColumnName="Money" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Table_Comment">
            <EntityTypeMapping TypeName="Model.Table_Comment">
              <MappingFragment StoreEntitySet="Table_Comment">
                <ScalarProperty Name="Comment" ColumnName="Comment" />
                <ScalarProperty Name="DateComment" ColumnName="DateComment" />
                <ScalarProperty Name="id" ColumnName="id" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Sp_InsertCustomer" FunctionName="Model.Store.Sp_InsertCustomer" />
          <FunctionImportMapping FunctionImportName="Sp_InsertFactor" FunctionName="Model.Store.Sp_InsertFactor" />
          <EntitySetMapping Name="Table_Customer">
            <EntityTypeMapping TypeName="Model.Table_Customer">
              <MappingFragment StoreEntitySet="Table_Customer">
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Table_Factor">
            <EntityTypeMapping TypeName="Model.Table_Factor">
              <MappingFragment StoreEntitySet="Table_Factor">
                <ScalarProperty Name="Money" ColumnName="Money" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Sp_MaxCustomer" FunctionName="Model.Store.Sp_MaxCustomer">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_MaxCustomer_Result">
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="tedadkharid" ColumnName="tedadkharid" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SearchTarikh" FunctionName="Model.Store.Sp_SearchTarikh">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchTarikh_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="tedad" ColumnName="tedad" />
                <ScalarProperty Name="money" ColumnName="money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Table_User">
            <EntityTypeMapping TypeName="Model.Table_User">
              <MappingFragment StoreEntitySet="Table_User">
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="User" ColumnName="User" />
                <ScalarProperty Name="id" ColumnName="id" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Sp_Backup" FunctionName="Model.Store.Sp_Backup" />
          <FunctionImportMapping FunctionImportName="Sp_Restore" FunctionName="Model.Store.Sp_Restore" />
          <FunctionImportMapping FunctionImportName="Sp_SearchCustomer" FunctionName="Model.Store.Sp_SearchCustomer">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchCustomer_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SearchDate" FunctionName="Model.Store.Sp_SearchDate">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchDate_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SelectFactor" FunctionName="Model.Store.Sp_SelectFactor">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SelectFactor_Result3">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SearchFactor" FunctionName="Model.Store.Sp_SearchFactor">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchFactor_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SelectKharid" FunctionName="Model.Store.Sp_SelectKharid">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SelectKharid_Result">
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SelectListKharid" FunctionName="Model.Store.Sp_SelectListKharid">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SelectListKharid_Result">
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SelectCompany" FunctionName="Model.Store.Sp_SelectCompany">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SelectCompany_Result">
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
                <ScalarProperty Name="CompanyName" ColumnName="CompanyName" />
                <ScalarProperty Name="Comment" ColumnName="Comment" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SelectComment" FunctionName="Model.Store.Sp_SelectComment">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SelectComment_Result">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="DateComment" ColumnName="DateComment" />
                <ScalarProperty Name="Comment" ColumnName="Comment" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SelectCustomer" FunctionName="Model.Store.Sp_SelectCustomer">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SelectCustomer_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_PrintFactor" FunctionName="Model.Store.Sp_PrintFactor">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_PrintFactor_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="CodFactor1" ColumnName="CodFactor1" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_PrintFactornew" FunctionName="Model.Store.Sp_PrintFactornew">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_PrintFactornew_Result">
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_MaxFrosh" FunctionName="Model.Store.Sp_MaxFrosh">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_MaxFrosh_Result">
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Frosh" ColumnName="Frosh" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="ViewFactors">
            <EntityTypeMapping TypeName="Model.ViewFactor">
              <MappingFragment StoreEntitySet="ViewFactor">
                <ScalarProperty Name="Money" ColumnName="Money" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="Buyer" ColumnName="Buyer" />
                <ScalarProperty Name="CodFactor" ColumnName="CodFactor" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Sp_InsertKharid" FunctionName="Model.Store.Sp_InsertKharid" />
          <FunctionImportMapping FunctionImportName="Sp_UpdateKharid" FunctionName="Model.Store.Sp_UpdateKharid" />
          <FunctionImportMapping FunctionImportName="Sp_UpdateDateBuy" FunctionName="Model.Store.Sp_UpdateDateBuy" />
          <FunctionImportMapping FunctionImportName="Sp_DeleteDateBuy" FunctionName="Model.Store.Sp_DeleteDateBuy" />
          <FunctionImportMapping FunctionImportName="Sp_DeleteKharid" FunctionName="Model.Store.Sp_DeleteKharid" />
          <FunctionImportMapping FunctionImportName="Sp_SearchKharid" FunctionName="Model.Store.Sp_SearchKharid">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchKharid_Result">
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_Insertuser" FunctionName="Model.Store.Sp_Insertuser" />
          <EntitySetMapping Name="Table_DataBuy">
            <EntityTypeMapping TypeName="Model.Table_DataBuy">
              <MappingFragment StoreEntitySet="Table_DataBuy">
                <ScalarProperty Name="Money" ColumnName="Money" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
              </MappingFragment>
            </EntityTypeMapping>
            <EntityTypeMapping TypeName="Model.Table_DataBuy">
              <ModificationFunctionMapping>
                <UpdateFunction FunctionName="Model.Store.Sp_UpdateDateBuy">
                  <ScalarProperty Name="Money" ParameterName="Money" Version="Current" />
                  <ScalarProperty Name="Tedad" ParameterName="Tedad" Version="Current" />
                  <ScalarProperty Name="Color" ParameterName="Color" Version="Current" />
                  <ScalarProperty Name="Model" ParameterName="Model" Version="Current" />
                  <ScalarProperty Name="NameKala" ParameterName="NameKala" Version="Current" />
                  <ScalarProperty Name="CodKala" ParameterName="CodKala" Version="Current" />
                </UpdateFunction>
                <DeleteFunction FunctionName="Model.Store.Sp_DeleteDateBuy">
                  <ScalarProperty Name="CodKala" ParameterName="CodKala" />
                </DeleteFunction>
                <InsertFunction FunctionName="Model.Store.Sp_InsertDataBuy">
                  <ScalarProperty Name="Money" ParameterName="Money" />
                  <ScalarProperty Name="Tedad" ParameterName="Tedad" />
                  <ScalarProperty Name="Color" ParameterName="Color" />
                  <ScalarProperty Name="Model" ParameterName="Model" />
                  <ScalarProperty Name="NameKala" ParameterName="NameKala" />
                  <ScalarProperty Name="CodKala" ParameterName="CodKala" />
                  <ScalarProperty Name="CodBuy" ParameterName="CodBuy" />
                </InsertFunction>
              </ModificationFunctionMapping>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Table_Kharid">
            <EntityTypeMapping TypeName="Model.Table_Kharid">
              <MappingFragment StoreEntitySet="Table_Kharid">
                <ScalarProperty Name="Money" ColumnName="Money" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
              </MappingFragment>
            </EntityTypeMapping>
            <EntityTypeMapping TypeName="Model.Table_Kharid">
              <ModificationFunctionMapping>
                <InsertFunction FunctionName="Model.Store.Sp_InsertKharid">
                  <ScalarProperty Name="DateBuy" ParameterName="Datebuy" />
                  <ScalarProperty Name="Money" ParameterName="Money" />
                </InsertFunction>
                <UpdateFunction FunctionName="Model.Store.Sp_UpdateKharid">
                  <ScalarProperty Name="Money" ParameterName="Money" Version="Current" />
                  <ScalarProperty Name="DateBuy" ParameterName="DateBuy" Version="Current" />
                  <ScalarProperty Name="CodBuy" ParameterName="CodBuy" Version="Current" />
                </UpdateFunction>
                <DeleteFunction FunctionName="Model.Store.Sp_DeleteKharid">
                  <ScalarProperty Name="CodBuy" ParameterName="CodBuy" />
                </DeleteFunction>
              </ModificationFunctionMapping>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Table_Sherkat">
            <EntityTypeMapping TypeName="Model.Table_Sherkat">
              <MappingFragment StoreEntitySet="Table_Sherkat">
                <ScalarProperty Name="Comment" ColumnName="Comment" />
                <ScalarProperty Name="CompanyName" ColumnName="CompanyName" />
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Sp_InsertDataBuy" FunctionName="Model.Store.Sp_InsertDataBuy" />
          <FunctionImportMapping FunctionImportName="Sp_SearchCompany" FunctionName="Model.Store.Sp_SearchCompany">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchCompany_Result">
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
                <ScalarProperty Name="CompanyName" ColumnName="CompanyName" />
                <ScalarProperty Name="Comment" ColumnName="Comment" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SearchKharidCompany" FunctionName="Model.Store.Sp_SearchKharidCompany">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchKharidCompany_Result">
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_SearchListKharid" FunctionName="Model.Store.Sp_SearchListKharid">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_SearchListKharid_Result">
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Sp_ListKharidKoli" FunctionName="Model.Store.Sp_ListKharidKoli">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Sp_ListKharidKoli_Result">
                <ScalarProperty Name="CodCompany" ColumnName="CodCompany" />
                <ScalarProperty Name="CompanyName" ColumnName="CompanyName" />
                <ScalarProperty Name="CodBuy" ColumnName="CodBuy" />
                <ScalarProperty Name="DateBuy" ColumnName="DateBuy" />
                <ScalarProperty Name="CodKala" ColumnName="CodKala" />
                <ScalarProperty Name="NameKala" ColumnName="NameKala" />
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="Color" ColumnName="Color" />
                <ScalarProperty Name="Tedad" ColumnName="Tedad" />
                <ScalarProperty Name="Money" ColumnName="Money" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          </EntityContainerMapping>
</Mapping></edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="Default" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="MyModel3">
        <EntityTypeShape EntityType="Model.Table_TelephoneCompany" Width="1.5" PointX="0.5" PointY="3.625" Height="2.3648893229166656" />
        <EntityTypeShape EntityType="Model.Table_TelephonePerson" Width="1.5" PointX="2.625" PointY="3.75" Height="2.1725878906249996" />
        <EntityTypeShape EntityType="Model.Table_Kala" Width="1.5" PointX="4.875" PointY="3.875" Height="2.3648893229166665" />
        <EntityTypeShape EntityType="Model.ViewFactorNew" Width="1.5" PointX="2.875" PointY="6.625" Height="2.5571907552083388" />
        <EntityTypeShape EntityType="Model.Table_Comment" Width="1.5" PointX="0.75" PointY="6.75" Height="1.5956835937499996" />
        <EntityTypeShape EntityType="Model.Table_Customer" Width="1.5" PointX="5.375" PointY="7.375" Height="1.7879850260416674" />
        <EntityTypeShape EntityType="Model.Table_Factor" Width="1.5" PointX="7.625" PointY="7" Height="2.5571907552083317" />
        <AssociationConnector Association="Model.FK_Table_Factor_Table_Customer" >
          <ConnectorPoint PointX="6.875" PointY="8.2689925130208337" />
          <ConnectorPoint PointX="7.625" PointY="8.2689925130208337" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.Table_User" Width="1.5" PointX="0.5" PointY="8.75" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ViewFactor" Width="1.5" PointX="7.375" PointY="0.75" Height="2.3648893229166674" />
        <EntityTypeShape EntityType="Model.Table_DataBuy" Width="1.5" PointX="5" PointY="0.5" Height="2.5571907552083388" />
        <EntityTypeShape EntityType="Model.Table_Kharid" Width="1.5" PointX="2.75" PointY="0.625" Height="2.172587890624996" />
        <EntityTypeShape EntityType="Model.Table_Sherkat" Width="1.5" PointX="0.5" PointY="0.875" Height="1.7879850260416674" />
        <AssociationConnector Association="Model.FK_Table_DataBuy_Table_Kharid" >
          <ConnectorPoint PointX="4.25" PointY="1.711293945312498" />
          <ConnectorPoint PointX="5" PointY="1.711293945312498" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Table_Kharid_Table_Sherkat" >
          <ConnectorPoint PointX="2" PointY="1.7689925130208337" />
          <ConnectorPoint PointX="2.75" PointY="1.7689925130208337" />
        </AssociationConnector>
        </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>