<?xml version="1.0" encoding="utf-8"?>
<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 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>