//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;

[assembly: EdmSchemaAttribute()]
#region EDM Relationship Metadata

[assembly: EdmRelationshipAttribute("Model", "FK_Table_Factor_Table_Customer", "Table_Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Entity_FrameWork.Table_Customer), "Table_Factor", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Entity_FrameWork.Table_Factor), true)]
[assembly: EdmRelationshipAttribute("Model", "FK_Table_DataBuy_Table_Kharid", "Table_Kharid", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Entity_FrameWork.Table_Kharid), "Table_DataBuy", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Entity_FrameWork.Table_DataBuy), true)]
[assembly: EdmRelationshipAttribute("Model", "FK_Table_Kharid_Table_Sherkat", "Table_Sherkat", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Entity_FrameWork.Table_Sherkat), "Table_Kharid", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Entity_FrameWork.Table_Kharid), true)]

#endregion

namespace Entity_FrameWork
{
    #region Contexts
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    public partial class Entity_FrameWorkEntities5 : ObjectContext
    {
        #region Constructors
    
        /// <summary>
        /// Initializes a new Entity_FrameWorkEntities5 object using the connection string found in the 'Entity_FrameWorkEntities5' section of the application configuration file.
        /// </summary>
        public Entity_FrameWorkEntities5() : base("name=Entity_FrameWorkEntities5", "Entity_FrameWorkEntities5")
        {
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new Entity_FrameWorkEntities5 object.
        /// </summary>
        public Entity_FrameWorkEntities5(string connectionString) : base(connectionString, "Entity_FrameWorkEntities5")
        {
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new Entity_FrameWorkEntities5 object.
        /// </summary>
        public Entity_FrameWorkEntities5(EntityConnection connection) : base(connection, "Entity_FrameWorkEntities5")
        {
            OnContextCreated();
        }
    
        #endregion
    
        #region Partial Methods
    
        partial void OnContextCreated();
    
        #endregion
    
        #region ObjectSet Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_TelephoneCompany> Table_TelephoneCompany
        {
            get
            {
                if ((_Table_TelephoneCompany == null))
                {
                    _Table_TelephoneCompany = base.CreateObjectSet<Table_TelephoneCompany>("Table_TelephoneCompany");
                }
                return _Table_TelephoneCompany;
            }
        }
        private ObjectSet<Table_TelephoneCompany> _Table_TelephoneCompany;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_TelephonePerson> Table_TelephonePerson
        {
            get
            {
                if ((_Table_TelephonePerson == null))
                {
                    _Table_TelephonePerson = base.CreateObjectSet<Table_TelephonePerson>("Table_TelephonePerson");
                }
                return _Table_TelephonePerson;
            }
        }
        private ObjectSet<Table_TelephonePerson> _Table_TelephonePerson;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_Kala> Table_Kala
        {
            get
            {
                if ((_Table_Kala == null))
                {
                    _Table_Kala = base.CreateObjectSet<Table_Kala>("Table_Kala");
                }
                return _Table_Kala;
            }
        }
        private ObjectSet<Table_Kala> _Table_Kala;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ViewFactorNew> ViewFactorNews
        {
            get
            {
                if ((_ViewFactorNews == null))
                {
                    _ViewFactorNews = base.CreateObjectSet<ViewFactorNew>("ViewFactorNews");
                }
                return _ViewFactorNews;
            }
        }
        private ObjectSet<ViewFactorNew> _ViewFactorNews;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_Comment> Table_Comment
        {
            get
            {
                if ((_Table_Comment == null))
                {
                    _Table_Comment = base.CreateObjectSet<Table_Comment>("Table_Comment");
                }
                return _Table_Comment;
            }
        }
        private ObjectSet<Table_Comment> _Table_Comment;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_Customer> Table_Customer
        {
            get
            {
                if ((_Table_Customer == null))
                {
                    _Table_Customer = base.CreateObjectSet<Table_Customer>("Table_Customer");
                }
                return _Table_Customer;
            }
        }
        private ObjectSet<Table_Customer> _Table_Customer;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_Factor> Table_Factor
        {
            get
            {
                if ((_Table_Factor == null))
                {
                    _Table_Factor = base.CreateObjectSet<Table_Factor>("Table_Factor");
                }
                return _Table_Factor;
            }
        }
        private ObjectSet<Table_Factor> _Table_Factor;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_User> Table_User
        {
            get
            {
                if ((_Table_User == null))
                {
                    _Table_User = base.CreateObjectSet<Table_User>("Table_User");
                }
                return _Table_User;
            }
        }
        private ObjectSet<Table_User> _Table_User;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ViewFactor> ViewFactors
        {
            get
            {
                if ((_ViewFactors == null))
                {
                    _ViewFactors = base.CreateObjectSet<ViewFactor>("ViewFactors");
                }
                return _ViewFactors;
            }
        }
        private ObjectSet<ViewFactor> _ViewFactors;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_DataBuy> Table_DataBuy
        {
            get
            {
                if ((_Table_DataBuy == null))
                {
                    _Table_DataBuy = base.CreateObjectSet<Table_DataBuy>("Table_DataBuy");
                }
                return _Table_DataBuy;
            }
        }
        private ObjectSet<Table_DataBuy> _Table_DataBuy;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_Kharid> Table_Kharid
        {
            get
            {
                if ((_Table_Kharid == null))
                {
                    _Table_Kharid = base.CreateObjectSet<Table_Kharid>("Table_Kharid");
                }
                return _Table_Kharid;
            }
        }
        private ObjectSet<Table_Kharid> _Table_Kharid;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Table_Sherkat> Table_Sherkat
        {
            get
            {
                if ((_Table_Sherkat == null))
                {
                    _Table_Sherkat = base.CreateObjectSet<Table_Sherkat>("Table_Sherkat");
                }
                return _Table_Sherkat;
            }
        }
        private ObjectSet<Table_Sherkat> _Table_Sherkat;

        #endregion
        #region AddTo Methods
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_TelephoneCompany EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_TelephoneCompany(Table_TelephoneCompany table_TelephoneCompany)
        {
            base.AddObject("Table_TelephoneCompany", table_TelephoneCompany);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_TelephonePerson EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_TelephonePerson(Table_TelephonePerson table_TelephonePerson)
        {
            base.AddObject("Table_TelephonePerson", table_TelephonePerson);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_Kala EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_Kala(Table_Kala table_Kala)
        {
            base.AddObject("Table_Kala", table_Kala);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ViewFactorNews EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToViewFactorNews(ViewFactorNew viewFactorNew)
        {
            base.AddObject("ViewFactorNews", viewFactorNew);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_Comment EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_Comment(Table_Comment table_Comment)
        {
            base.AddObject("Table_Comment", table_Comment);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_Customer EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_Customer(Table_Customer table_Customer)
        {
            base.AddObject("Table_Customer", table_Customer);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_Factor EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_Factor(Table_Factor table_Factor)
        {
            base.AddObject("Table_Factor", table_Factor);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_User EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_User(Table_User table_User)
        {
            base.AddObject("Table_User", table_User);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ViewFactors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToViewFactors(ViewFactor viewFactor)
        {
            base.AddObject("ViewFactors", viewFactor);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_DataBuy EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_DataBuy(Table_DataBuy table_DataBuy)
        {
            base.AddObject("Table_DataBuy", table_DataBuy);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_Kharid EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_Kharid(Table_Kharid table_Kharid)
        {
            base.AddObject("Table_Kharid", table_Kharid);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Table_Sherkat EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTable_Sherkat(Table_Sherkat table_Sherkat)
        {
            base.AddObject("Table_Sherkat", table_Sherkat);
        }

        #endregion
        #region Function Imports
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codKala">No Metadata Documentation available.</param>
        /// <param name="number">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_UpdateTedad(Nullable<global::System.Int32> codKala, Nullable<global::System.Int32> number)
        {
            ObjectParameter codKalaParameter;
            if (codKala.HasValue)
            {
                codKalaParameter = new ObjectParameter("CodKala", codKala);
            }
            else
            {
                codKalaParameter = new ObjectParameter("CodKala", typeof(global::System.Int32));
            }
    
            ObjectParameter numberParameter;
            if (number.HasValue)
            {
                numberParameter = new ObjectParameter("number", number);
            }
            else
            {
                numberParameter = new ObjectParameter("number", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_UpdateTedad", codKalaParameter, numberParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codFactor">No Metadata Documentation available.</param>
        /// <param name="buyer">No Metadata Documentation available.</param>
        /// <param name="dateBuy">No Metadata Documentation available.</param>
        /// <param name="commnetBuy">No Metadata Documentation available.</param>
        /// <param name="money">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_UpdateCustomer(Nullable<global::System.Int32> codFactor, global::System.String buyer, global::System.String dateBuy, global::System.String commnetBuy, Nullable<global::System.Int32> money)
        {
            ObjectParameter codFactorParameter;
            if (codFactor.HasValue)
            {
                codFactorParameter = new ObjectParameter("CodFactor", codFactor);
            }
            else
            {
                codFactorParameter = new ObjectParameter("CodFactor", typeof(global::System.Int32));
            }
    
            ObjectParameter buyerParameter;
            if (buyer != null)
            {
                buyerParameter = new ObjectParameter("Buyer", buyer);
            }
            else
            {
                buyerParameter = new ObjectParameter("Buyer", typeof(global::System.String));
            }
    
            ObjectParameter dateBuyParameter;
            if (dateBuy != null)
            {
                dateBuyParameter = new ObjectParameter("DateBuy", dateBuy);
            }
            else
            {
                dateBuyParameter = new ObjectParameter("DateBuy", typeof(global::System.String));
            }
    
            ObjectParameter commnetBuyParameter;
            if (commnetBuy != null)
            {
                commnetBuyParameter = new ObjectParameter("CommnetBuy", commnetBuy);
            }
            else
            {
                commnetBuyParameter = new ObjectParameter("CommnetBuy", typeof(global::System.String));
            }
    
            ObjectParameter moneyParameter;
            if (money.HasValue)
            {
                moneyParameter = new ObjectParameter("Money", money);
            }
            else
            {
                moneyParameter = new ObjectParameter("Money", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_UpdateCustomer", codFactorParameter, buyerParameter, dateBuyParameter, commnetBuyParameter, moneyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codFactor">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_DeleteCustomer(Nullable<global::System.Int32> codFactor)
        {
            ObjectParameter codFactorParameter;
            if (codFactor.HasValue)
            {
                codFactorParameter = new ObjectParameter("CodFactor", codFactor);
            }
            else
            {
                codFactorParameter = new ObjectParameter("CodFactor", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_DeleteCustomer", codFactorParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="buyer">No Metadata Documentation available.</param>
        /// <param name="dateBuy">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_InsertCustomer(global::System.String buyer, global::System.String dateBuy)
        {
            ObjectParameter buyerParameter;
            if (buyer != null)
            {
                buyerParameter = new ObjectParameter("Buyer", buyer);
            }
            else
            {
                buyerParameter = new ObjectParameter("Buyer", typeof(global::System.String));
            }
    
            ObjectParameter dateBuyParameter;
            if (dateBuy != null)
            {
                dateBuyParameter = new ObjectParameter("DateBuy", dateBuy);
            }
            else
            {
                dateBuyParameter = new ObjectParameter("DateBuy", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_InsertCustomer", buyerParameter, dateBuyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codFactor">No Metadata Documentation available.</param>
        /// <param name="nameKala">No Metadata Documentation available.</param>
        /// <param name="model">No Metadata Documentation available.</param>
        /// <param name="color">No Metadata Documentation available.</param>
        /// <param name="tedad">No Metadata Documentation available.</param>
        /// <param name="money">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_InsertFactor(Nullable<global::System.Int32> codFactor, global::System.String nameKala, global::System.String model, global::System.String color, global::System.String tedad, Nullable<global::System.Int32> money)
        {
            ObjectParameter codFactorParameter;
            if (codFactor.HasValue)
            {
                codFactorParameter = new ObjectParameter("CodFactor", codFactor);
            }
            else
            {
                codFactorParameter = new ObjectParameter("CodFactor", typeof(global::System.Int32));
            }
    
            ObjectParameter nameKalaParameter;
            if (nameKala != null)
            {
                nameKalaParameter = new ObjectParameter("NameKala", nameKala);
            }
            else
            {
                nameKalaParameter = new ObjectParameter("NameKala", typeof(global::System.String));
            }
    
            ObjectParameter modelParameter;
            if (model != null)
            {
                modelParameter = new ObjectParameter("Model", model);
            }
            else
            {
                modelParameter = new ObjectParameter("Model", typeof(global::System.String));
            }
    
            ObjectParameter colorParameter;
            if (color != null)
            {
                colorParameter = new ObjectParameter("Color", color);
            }
            else
            {
                colorParameter = new ObjectParameter("Color", typeof(global::System.String));
            }
    
            ObjectParameter tedadParameter;
            if (tedad != null)
            {
                tedadParameter = new ObjectParameter("Tedad", tedad);
            }
            else
            {
                tedadParameter = new ObjectParameter("Tedad", typeof(global::System.String));
            }
    
            ObjectParameter moneyParameter;
            if (money.HasValue)
            {
                moneyParameter = new ObjectParameter("Money", money);
            }
            else
            {
                moneyParameter = new ObjectParameter("Money", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_InsertFactor", codFactorParameter, nameKalaParameter, modelParameter, colorParameter, tedadParameter, moneyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectResult<Sp_MaxCustomer_Result> Sp_MaxCustomer()
        {
            return base.ExecuteFunction<Sp_MaxCustomer_Result>("Sp_MaxCustomer");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="a">No Metadata Documentation available.</param>
        /// <param name="b">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchTarikh_Result> Sp_SearchTarikh(global::System.String a, global::System.String b)
        {
            ObjectParameter aParameter;
            if (a != null)
            {
                aParameter = new ObjectParameter("a", a);
            }
            else
            {
                aParameter = new ObjectParameter("a", typeof(global::System.String));
            }
    
            ObjectParameter bParameter;
            if (b != null)
            {
                bParameter = new ObjectParameter("b", b);
            }
            else
            {
                bParameter = new ObjectParameter("b", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Sp_SearchTarikh_Result>("Sp_SearchTarikh", aParameter, bParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="db_name">No Metadata Documentation available.</param>
        /// <param name="disk">No Metadata Documentation available.</param>
        public int Sp_Backup(global::System.String db_name, global::System.String disk)
        {
            ObjectParameter db_nameParameter;
            if (db_name != null)
            {
                db_nameParameter = new ObjectParameter("db_name", db_name);
            }
            else
            {
                db_nameParameter = new ObjectParameter("db_name", typeof(global::System.String));
            }
    
            ObjectParameter diskParameter;
            if (disk != null)
            {
                diskParameter = new ObjectParameter("disk", disk);
            }
            else
            {
                diskParameter = new ObjectParameter("disk", typeof(global::System.String));
            }
    
            return base.ExecuteFunction("Sp_Backup", db_nameParameter, diskParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public int Sp_Restore()
        {
            return base.ExecuteFunction("Sp_Restore");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="matn">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchCustomer_Result> Sp_SearchCustomer(global::System.String matn)
        {
            ObjectParameter matnParameter;
            if (matn != null)
            {
                matnParameter = new ObjectParameter("Matn", matn);
            }
            else
            {
                matnParameter = new ObjectParameter("Matn", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Sp_SearchCustomer_Result>("Sp_SearchCustomer", matnParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="date">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchDate_Result> Sp_SearchDate(global::System.String date)
        {
            ObjectParameter dateParameter;
            if (date != null)
            {
                dateParameter = new ObjectParameter("Date", date);
            }
            else
            {
                dateParameter = new ObjectParameter("Date", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Sp_SearchDate_Result>("Sp_SearchDate", dateParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codFactor">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SelectFactor_Result3> Sp_SelectFactor(Nullable<global::System.Int32> codFactor)
        {
            ObjectParameter codFactorParameter;
            if (codFactor.HasValue)
            {
                codFactorParameter = new ObjectParameter("CodFactor", codFactor);
            }
            else
            {
                codFactorParameter = new ObjectParameter("CodFactor", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_SelectFactor_Result3>("Sp_SelectFactor", codFactorParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codfactor">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchFactor_Result> Sp_SearchFactor(global::System.String codfactor)
        {
            ObjectParameter codfactorParameter;
            if (codfactor != null)
            {
                codfactorParameter = new ObjectParameter("codfactor", codfactor);
            }
            else
            {
                codfactorParameter = new ObjectParameter("codfactor", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Sp_SearchFactor_Result>("Sp_SearchFactor", codfactorParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codCompany">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SelectKharid_Result> Sp_SelectKharid(Nullable<global::System.Int32> codCompany)
        {
            ObjectParameter codCompanyParameter;
            if (codCompany.HasValue)
            {
                codCompanyParameter = new ObjectParameter("CodCompany", codCompany);
            }
            else
            {
                codCompanyParameter = new ObjectParameter("CodCompany", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_SelectKharid_Result>("Sp_SelectKharid", codCompanyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codBuy">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SelectListKharid_Result> Sp_SelectListKharid(Nullable<global::System.Int32> codBuy)
        {
            ObjectParameter codBuyParameter;
            if (codBuy.HasValue)
            {
                codBuyParameter = new ObjectParameter("CodBuy", codBuy);
            }
            else
            {
                codBuyParameter = new ObjectParameter("CodBuy", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_SelectListKharid_Result>("Sp_SelectListKharid", codBuyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectResult<Sp_SelectCompany_Result> Sp_SelectCompany()
        {
            return base.ExecuteFunction<Sp_SelectCompany_Result>("Sp_SelectCompany");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectResult<Sp_SelectComment_Result> Sp_SelectComment()
        {
            return base.ExecuteFunction<Sp_SelectComment_Result>("Sp_SelectComment");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectResult<Sp_SelectCustomer_Result> Sp_SelectCustomer()
        {
            return base.ExecuteFunction<Sp_SelectCustomer_Result>("Sp_SelectCustomer");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codFactor">No Metadata Documentation available.</param>
        public ObjectResult<Sp_PrintFactor_Result> Sp_PrintFactor(Nullable<global::System.Int32> codFactor)
        {
            ObjectParameter codFactorParameter;
            if (codFactor.HasValue)
            {
                codFactorParameter = new ObjectParameter("CodFactor", codFactor);
            }
            else
            {
                codFactorParameter = new ObjectParameter("CodFactor", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_PrintFactor_Result>("Sp_PrintFactor", codFactorParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codFactor">No Metadata Documentation available.</param>
        public ObjectResult<Sp_PrintFactornew_Result> Sp_PrintFactornew(Nullable<global::System.Int32> codFactor)
        {
            ObjectParameter codFactorParameter;
            if (codFactor.HasValue)
            {
                codFactorParameter = new ObjectParameter("CodFactor", codFactor);
            }
            else
            {
                codFactorParameter = new ObjectParameter("CodFactor", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_PrintFactornew_Result>("Sp_PrintFactornew", codFactorParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectResult<Sp_MaxFrosh_Result> Sp_MaxFrosh()
        {
            return base.ExecuteFunction<Sp_MaxFrosh_Result>("Sp_MaxFrosh");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="datebuy">No Metadata Documentation available.</param>
        /// <param name="money">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_InsertKharid(global::System.String datebuy, Nullable<global::System.Int32> money)
        {
            ObjectParameter datebuyParameter;
            if (datebuy != null)
            {
                datebuyParameter = new ObjectParameter("Datebuy", datebuy);
            }
            else
            {
                datebuyParameter = new ObjectParameter("Datebuy", typeof(global::System.String));
            }
    
            ObjectParameter moneyParameter;
            if (money.HasValue)
            {
                moneyParameter = new ObjectParameter("Money", money);
            }
            else
            {
                moneyParameter = new ObjectParameter("Money", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_InsertKharid", datebuyParameter, moneyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codBuy">No Metadata Documentation available.</param>
        /// <param name="dateBuy">No Metadata Documentation available.</param>
        /// <param name="money">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_UpdateKharid(Nullable<global::System.Int32> codBuy, global::System.String dateBuy, Nullable<global::System.Int32> money)
        {
            ObjectParameter codBuyParameter;
            if (codBuy.HasValue)
            {
                codBuyParameter = new ObjectParameter("CodBuy", codBuy);
            }
            else
            {
                codBuyParameter = new ObjectParameter("CodBuy", typeof(global::System.Int32));
            }
    
            ObjectParameter dateBuyParameter;
            if (dateBuy != null)
            {
                dateBuyParameter = new ObjectParameter("DateBuy", dateBuy);
            }
            else
            {
                dateBuyParameter = new ObjectParameter("DateBuy", typeof(global::System.String));
            }
    
            ObjectParameter moneyParameter;
            if (money.HasValue)
            {
                moneyParameter = new ObjectParameter("Money", money);
            }
            else
            {
                moneyParameter = new ObjectParameter("Money", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_UpdateKharid", codBuyParameter, dateBuyParameter, moneyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codKala">No Metadata Documentation available.</param>
        /// <param name="nameKala">No Metadata Documentation available.</param>
        /// <param name="model">No Metadata Documentation available.</param>
        /// <param name="color">No Metadata Documentation available.</param>
        /// <param name="tedad">No Metadata Documentation available.</param>
        /// <param name="money">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_UpdateDateBuy(Nullable<global::System.Int32> codKala, global::System.String nameKala, global::System.String model, global::System.String color, global::System.String tedad, Nullable<global::System.Int32> money)
        {
            ObjectParameter codKalaParameter;
            if (codKala.HasValue)
            {
                codKalaParameter = new ObjectParameter("CodKala", codKala);
            }
            else
            {
                codKalaParameter = new ObjectParameter("CodKala", typeof(global::System.Int32));
            }
    
            ObjectParameter nameKalaParameter;
            if (nameKala != null)
            {
                nameKalaParameter = new ObjectParameter("NameKala", nameKala);
            }
            else
            {
                nameKalaParameter = new ObjectParameter("NameKala", typeof(global::System.String));
            }
    
            ObjectParameter modelParameter;
            if (model != null)
            {
                modelParameter = new ObjectParameter("Model", model);
            }
            else
            {
                modelParameter = new ObjectParameter("Model", typeof(global::System.String));
            }
    
            ObjectParameter colorParameter;
            if (color != null)
            {
                colorParameter = new ObjectParameter("Color", color);
            }
            else
            {
                colorParameter = new ObjectParameter("Color", typeof(global::System.String));
            }
    
            ObjectParameter tedadParameter;
            if (tedad != null)
            {
                tedadParameter = new ObjectParameter("Tedad", tedad);
            }
            else
            {
                tedadParameter = new ObjectParameter("Tedad", typeof(global::System.String));
            }
    
            ObjectParameter moneyParameter;
            if (money.HasValue)
            {
                moneyParameter = new ObjectParameter("Money", money);
            }
            else
            {
                moneyParameter = new ObjectParameter("Money", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_UpdateDateBuy", codKalaParameter, nameKalaParameter, modelParameter, colorParameter, tedadParameter, moneyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codKala">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_DeleteDateBuy(Nullable<global::System.Int32> codKala)
        {
            ObjectParameter codKalaParameter;
            if (codKala.HasValue)
            {
                codKalaParameter = new ObjectParameter("CodKala", codKala);
            }
            else
            {
                codKalaParameter = new ObjectParameter("CodKala", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_DeleteDateBuy", codKalaParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codBuy">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_DeleteKharid(Nullable<global::System.Int32> codBuy)
        {
            ObjectParameter codBuyParameter;
            if (codBuy.HasValue)
            {
                codBuyParameter = new ObjectParameter("CodBuy", codBuy);
            }
            else
            {
                codBuyParameter = new ObjectParameter("CodBuy", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_DeleteKharid", codBuyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="a">No Metadata Documentation available.</param>
        /// <param name="b">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchKharid_Result> Sp_SearchKharid(global::System.String a, global::System.String b)
        {
            ObjectParameter aParameter;
            if (a != null)
            {
                aParameter = new ObjectParameter("a", a);
            }
            else
            {
                aParameter = new ObjectParameter("a", typeof(global::System.String));
            }
    
            ObjectParameter bParameter;
            if (b != null)
            {
                bParameter = new ObjectParameter("b", b);
            }
            else
            {
                bParameter = new ObjectParameter("b", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Sp_SearchKharid_Result>("Sp_SearchKharid", aParameter, bParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="user">No Metadata Documentation available.</param>
        /// <param name="password">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_Insertuser(global::System.String user, global::System.String password)
        {
            ObjectParameter userParameter;
            if (user != null)
            {
                userParameter = new ObjectParameter("user", user);
            }
            else
            {
                userParameter = new ObjectParameter("user", typeof(global::System.String));
            }
    
            ObjectParameter passwordParameter;
            if (password != null)
            {
                passwordParameter = new ObjectParameter("password", password);
            }
            else
            {
                passwordParameter = new ObjectParameter("password", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_Insertuser", userParameter, passwordParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codBuy">No Metadata Documentation available.</param>
        /// <param name="codKala">No Metadata Documentation available.</param>
        /// <param name="nameKala">No Metadata Documentation available.</param>
        /// <param name="model">No Metadata Documentation available.</param>
        /// <param name="color">No Metadata Documentation available.</param>
        /// <param name="tedad">No Metadata Documentation available.</param>
        /// <param name="money">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> Sp_InsertDataBuy(Nullable<global::System.Int32> codBuy, Nullable<global::System.Int32> codKala, global::System.String nameKala, global::System.String model, global::System.String color, global::System.String tedad, Nullable<global::System.Int32> money)
        {
            ObjectParameter codBuyParameter;
            if (codBuy.HasValue)
            {
                codBuyParameter = new ObjectParameter("CodBuy", codBuy);
            }
            else
            {
                codBuyParameter = new ObjectParameter("CodBuy", typeof(global::System.Int32));
            }
    
            ObjectParameter codKalaParameter;
            if (codKala.HasValue)
            {
                codKalaParameter = new ObjectParameter("CodKala", codKala);
            }
            else
            {
                codKalaParameter = new ObjectParameter("CodKala", typeof(global::System.Int32));
            }
    
            ObjectParameter nameKalaParameter;
            if (nameKala != null)
            {
                nameKalaParameter = new ObjectParameter("NameKala", nameKala);
            }
            else
            {
                nameKalaParameter = new ObjectParameter("NameKala", typeof(global::System.String));
            }
    
            ObjectParameter modelParameter;
            if (model != null)
            {
                modelParameter = new ObjectParameter("Model", model);
            }
            else
            {
                modelParameter = new ObjectParameter("Model", typeof(global::System.String));
            }
    
            ObjectParameter colorParameter;
            if (color != null)
            {
                colorParameter = new ObjectParameter("Color", color);
            }
            else
            {
                colorParameter = new ObjectParameter("Color", typeof(global::System.String));
            }
    
            ObjectParameter tedadParameter;
            if (tedad != null)
            {
                tedadParameter = new ObjectParameter("Tedad", tedad);
            }
            else
            {
                tedadParameter = new ObjectParameter("Tedad", typeof(global::System.String));
            }
    
            ObjectParameter moneyParameter;
            if (money.HasValue)
            {
                moneyParameter = new ObjectParameter("Money", money);
            }
            else
            {
                moneyParameter = new ObjectParameter("Money", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("Sp_InsertDataBuy", codBuyParameter, codKalaParameter, nameKalaParameter, modelParameter, colorParameter, tedadParameter, moneyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="companyName">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchCompany_Result> Sp_SearchCompany(global::System.String companyName)
        {
            ObjectParameter companyNameParameter;
            if (companyName != null)
            {
                companyNameParameter = new ObjectParameter("CompanyName", companyName);
            }
            else
            {
                companyNameParameter = new ObjectParameter("CompanyName", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Sp_SearchCompany_Result>("Sp_SearchCompany", companyNameParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="date">No Metadata Documentation available.</param>
        /// <param name="codCompany">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchKharidCompany_Result> Sp_SearchKharidCompany(global::System.String date, Nullable<global::System.Int32> codCompany)
        {
            ObjectParameter dateParameter;
            if (date != null)
            {
                dateParameter = new ObjectParameter("Date", date);
            }
            else
            {
                dateParameter = new ObjectParameter("Date", typeof(global::System.String));
            }
    
            ObjectParameter codCompanyParameter;
            if (codCompany.HasValue)
            {
                codCompanyParameter = new ObjectParameter("CodCompany", codCompany);
            }
            else
            {
                codCompanyParameter = new ObjectParameter("CodCompany", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_SearchKharidCompany_Result>("Sp_SearchKharidCompany", dateParameter, codCompanyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="nameKala">No Metadata Documentation available.</param>
        /// <param name="codBuy">No Metadata Documentation available.</param>
        public ObjectResult<Sp_SearchListKharid_Result> Sp_SearchListKharid(global::System.String nameKala, Nullable<global::System.Int32> codBuy)
        {
            ObjectParameter nameKalaParameter;
            if (nameKala != null)
            {
                nameKalaParameter = new ObjectParameter("NameKala", nameKala);
            }
            else
            {
                nameKalaParameter = new ObjectParameter("NameKala", typeof(global::System.String));
            }
    
            ObjectParameter codBuyParameter;
            if (codBuy.HasValue)
            {
                codBuyParameter = new ObjectParameter("CodBuy", codBuy);
            }
            else
            {
                codBuyParameter = new ObjectParameter("CodBuy", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_SearchListKharid_Result>("Sp_SearchListKharid", nameKalaParameter, codBuyParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codbuy">No Metadata Documentation available.</param>
        public ObjectResult<Sp_ListKharidKoli_Result> Sp_ListKharidKoli(Nullable<global::System.Int32> codbuy)
        {
            ObjectParameter codbuyParameter;
            if (codbuy.HasValue)
            {
                codbuyParameter = new ObjectParameter("Codbuy", codbuy);
            }
            else
            {
                codbuyParameter = new ObjectParameter("Codbuy", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<Sp_ListKharidKoli_Result>("Sp_ListKharidKoli", codbuyParameter);
        }

        #endregion
    }
    

    #endregion
    
    #region Entities
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_Comment")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_Comment : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_Comment object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static Table_Comment CreateTable_Comment(global::System.Int32 id)
        {
            Table_Comment table_Comment = new Table_Comment();
            table_Comment.id = id;
            return table_Comment;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 id
        {
            get
            {
                return _id;
            }
            set
            {
                if (_id != value)
                {
                    OnidChanging(value);
                    ReportPropertyChanging("id");
                    _id = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("id");
                    OnidChanged();
                }
            }
        }
        private global::System.Int32 _id;
        partial void OnidChanging(global::System.Int32 value);
        partial void OnidChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateComment
        {
            get
            {
                return _DateComment;
            }
            set
            {
                OnDateCommentChanging(value);
                ReportPropertyChanging("DateComment");
                _DateComment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateComment");
                OnDateCommentChanged();
            }
        }
        private global::System.String _DateComment;
        partial void OnDateCommentChanging(global::System.String value);
        partial void OnDateCommentChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Comment
        {
            get
            {
                return _Comment;
            }
            set
            {
                OnCommentChanging(value);
                ReportPropertyChanging("Comment");
                _Comment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Comment");
                OnCommentChanged();
            }
        }
        private global::System.String _Comment;
        partial void OnCommentChanging(global::System.String value);
        partial void OnCommentChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_Customer")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_Customer : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_Customer object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Table_Customer CreateTable_Customer(global::System.Int32 codFactor)
        {
            Table_Customer table_Customer = new Table_Customer();
            table_Customer.CodFactor = codFactor;
            return table_Customer;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                if (_CodFactor != value)
                {
                    OnCodFactorChanging(value);
                    ReportPropertyChanging("CodFactor");
                    _CodFactor = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodFactor");
                    OnCodFactorChanged();
                }
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("Model", "FK_Table_Factor_Table_Customer", "Table_Factor")]
        public Table_Factor Table_Factor
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Factor>("Model.FK_Table_Factor_Table_Customer", "Table_Factor").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Factor>("Model.FK_Table_Factor_Table_Customer", "Table_Factor").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Table_Factor> Table_FactorReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Factor>("Model.FK_Table_Factor_Table_Customer", "Table_Factor");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Table_Factor>("Model.FK_Table_Factor_Table_Customer", "Table_Factor", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_DataBuy")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_DataBuy : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_DataBuy object.
        /// </summary>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        /// <param name="money">Initial value of the Money property.</param>
        public static Table_DataBuy CreateTable_DataBuy(global::System.Int32 codBuy, global::System.Int32 money)
        {
            Table_DataBuy table_DataBuy = new Table_DataBuy();
            table_DataBuy.CodBuy = codBuy;
            table_DataBuy.Money = money;
            return table_DataBuy;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                if (_CodBuy != value)
                {
                    OnCodBuyChanging(value);
                    ReportPropertyChanging("CodBuy");
                    _CodBuy = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodBuy");
                    OnCodBuyChanged();
                }
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Money
        {
            get
            {
                return _Money;
            }
            set
            {
                if (_Money != value)
                {
                    OnMoneyChanging(value);
                    ReportPropertyChanging("Money");
                    _Money = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("Money");
                    OnMoneyChanged();
                }
            }
        }
        private global::System.Int32 _Money;
        partial void OnMoneyChanging(global::System.Int32 value);
        partial void OnMoneyChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("Model", "FK_Table_DataBuy_Table_Kharid", "Table_Kharid")]
        public Table_Kharid Table_Kharid
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Kharid>("Model.FK_Table_DataBuy_Table_Kharid", "Table_Kharid").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Kharid>("Model.FK_Table_DataBuy_Table_Kharid", "Table_Kharid").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Table_Kharid> Table_KharidReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Kharid>("Model.FK_Table_DataBuy_Table_Kharid", "Table_Kharid");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Table_Kharid>("Model.FK_Table_DataBuy_Table_Kharid", "Table_Kharid", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_Factor")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_Factor : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_Factor object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Table_Factor CreateTable_Factor(global::System.Int32 codFactor)
        {
            Table_Factor table_Factor = new Table_Factor();
            table_Factor.CodFactor = codFactor;
            return table_Factor;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                if (_CodFactor != value)
                {
                    OnCodFactorChanging(value);
                    ReportPropertyChanging("CodFactor");
                    _CodFactor = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodFactor");
                    OnCodFactorChanged();
                }
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("Model", "FK_Table_Factor_Table_Customer", "Table_Customer")]
        public Table_Customer Table_Customer
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Customer>("Model.FK_Table_Factor_Table_Customer", "Table_Customer").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Customer>("Model.FK_Table_Factor_Table_Customer", "Table_Customer").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Table_Customer> Table_CustomerReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Customer>("Model.FK_Table_Factor_Table_Customer", "Table_Customer");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Table_Customer>("Model.FK_Table_Factor_Table_Customer", "Table_Customer", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_Kala")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_Kala : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_Kala object.
        /// </summary>
        /// <param name="codKala">Initial value of the CodKala property.</param>
        public static Table_Kala CreateTable_Kala(global::System.Int32 codKala)
        {
            Table_Kala table_Kala = new Table_Kala();
            table_Kala.CodKala = codKala;
            return table_Kala;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                if (_CodKala != value)
                {
                    OnCodKalaChanging(value);
                    ReportPropertyChanging("CodKala");
                    _CodKala = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodKala");
                    OnCodKalaChanged();
                }
            }
        }
        private global::System.Int32 _CodKala;
        partial void OnCodKalaChanging(global::System.Int32 value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] image
        {
            get
            {
                return StructuralObject.GetValidValue(_image);
            }
            set
            {
                OnimageChanging(value);
                ReportPropertyChanging("image");
                _image = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("image");
                OnimageChanged();
            }
        }
        private global::System.Byte[] _image;
        partial void OnimageChanging(global::System.Byte[] value);
        partial void OnimageChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_Kharid")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_Kharid : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_Kharid object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        public static Table_Kharid CreateTable_Kharid(global::System.Int32 codCompany, global::System.Int32 codBuy)
        {
            Table_Kharid table_Kharid = new Table_Kharid();
            table_Kharid.CodCompany = codCompany;
            table_Kharid.CodBuy = codBuy;
            return table_Kharid;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                if (_CodBuy != value)
                {
                    OnCodBuyChanging(value);
                    ReportPropertyChanging("CodBuy");
                    _CodBuy = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodBuy");
                    OnCodBuyChanged();
                }
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("Model", "FK_Table_DataBuy_Table_Kharid", "Table_DataBuy")]
        public EntityCollection<Table_DataBuy> Table_DataBuy
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Table_DataBuy>("Model.FK_Table_DataBuy_Table_Kharid", "Table_DataBuy");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Table_DataBuy>("Model.FK_Table_DataBuy_Table_Kharid", "Table_DataBuy", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("Model", "FK_Table_Kharid_Table_Sherkat", "Table_Sherkat")]
        public Table_Sherkat Table_Sherkat
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Sherkat>("Model.FK_Table_Kharid_Table_Sherkat", "Table_Sherkat").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Sherkat>("Model.FK_Table_Kharid_Table_Sherkat", "Table_Sherkat").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Table_Sherkat> Table_SherkatReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Table_Sherkat>("Model.FK_Table_Kharid_Table_Sherkat", "Table_Sherkat");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Table_Sherkat>("Model.FK_Table_Kharid_Table_Sherkat", "Table_Sherkat", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_Sherkat")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_Sherkat : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_Sherkat object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        public static Table_Sherkat CreateTable_Sherkat(global::System.Int32 codCompany)
        {
            Table_Sherkat table_Sherkat = new Table_Sherkat();
            table_Sherkat.CodCompany = codCompany;
            return table_Sherkat;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                if (_CodCompany != value)
                {
                    OnCodCompanyChanging(value);
                    ReportPropertyChanging("CodCompany");
                    _CodCompany = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodCompany");
                    OnCodCompanyChanged();
                }
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CompanyName
        {
            get
            {
                return _CompanyName;
            }
            set
            {
                OnCompanyNameChanging(value);
                ReportPropertyChanging("CompanyName");
                _CompanyName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CompanyName");
                OnCompanyNameChanged();
            }
        }
        private global::System.String _CompanyName;
        partial void OnCompanyNameChanging(global::System.String value);
        partial void OnCompanyNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Comment
        {
            get
            {
                return _Comment;
            }
            set
            {
                OnCommentChanging(value);
                ReportPropertyChanging("Comment");
                _Comment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Comment");
                OnCommentChanged();
            }
        }
        private global::System.String _Comment;
        partial void OnCommentChanging(global::System.String value);
        partial void OnCommentChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("Model", "FK_Table_Kharid_Table_Sherkat", "Table_Kharid")]
        public EntityCollection<Table_Kharid> Table_Kharid
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Table_Kharid>("Model.FK_Table_Kharid_Table_Sherkat", "Table_Kharid");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Table_Kharid>("Model.FK_Table_Kharid_Table_Sherkat", "Table_Kharid", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_TelephoneCompany")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_TelephoneCompany : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_TelephoneCompany object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static Table_TelephoneCompany CreateTable_TelephoneCompany(global::System.Int32 id)
        {
            Table_TelephoneCompany table_TelephoneCompany = new Table_TelephoneCompany();
            table_TelephoneCompany.id = id;
            return table_TelephoneCompany;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 id
        {
            get
            {
                return _id;
            }
            set
            {
                if (_id != value)
                {
                    OnidChanging(value);
                    ReportPropertyChanging("id");
                    _id = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("id");
                    OnidChanged();
                }
            }
        }
        private global::System.Int32 _id;
        partial void OnidChanging(global::System.Int32 value);
        partial void OnidChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CompanyName
        {
            get
            {
                return _CompanyName;
            }
            set
            {
                OnCompanyNameChanging(value);
                ReportPropertyChanging("CompanyName");
                _CompanyName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CompanyName");
                OnCompanyNameChanged();
            }
        }
        private global::System.String _CompanyName;
        partial void OnCompanyNameChanging(global::System.String value);
        partial void OnCompanyNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameBakshe
        {
            get
            {
                return _NameBakshe;
            }
            set
            {
                OnNameBaksheChanging(value);
                ReportPropertyChanging("NameBakshe");
                _NameBakshe = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameBakshe");
                OnNameBaksheChanged();
            }
        }
        private global::System.String _NameBakshe;
        partial void OnNameBaksheChanging(global::System.String value);
        partial void OnNameBaksheChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameMassol
        {
            get
            {
                return _NameMassol;
            }
            set
            {
                OnNameMassolChanging(value);
                ReportPropertyChanging("NameMassol");
                _NameMassol = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameMassol");
                OnNameMassolChanged();
            }
        }
        private global::System.String _NameMassol;
        partial void OnNameMassolChanging(global::System.String value);
        partial void OnNameMassolChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telephone
        {
            get
            {
                return _Telephone;
            }
            set
            {
                OnTelephoneChanging(value);
                ReportPropertyChanging("Telephone");
                _Telephone = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Telephone");
                OnTelephoneChanged();
            }
        }
        private global::System.String _Telephone;
        partial void OnTelephoneChanging(global::System.String value);
        partial void OnTelephoneChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Mobile
        {
            get
            {
                return _Mobile;
            }
            set
            {
                OnMobileChanging(value);
                ReportPropertyChanging("Mobile");
                _Mobile = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Mobile");
                OnMobileChanged();
            }
        }
        private global::System.String _Mobile;
        partial void OnMobileChanging(global::System.String value);
        partial void OnMobileChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Address
        {
            get
            {
                return _Address;
            }
            set
            {
                OnAddressChanging(value);
                ReportPropertyChanging("Address");
                _Address = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Address");
                OnAddressChanged();
            }
        }
        private global::System.String _Address;
        partial void OnAddressChanging(global::System.String value);
        partial void OnAddressChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_TelephonePerson")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_TelephonePerson : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_TelephonePerson object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static Table_TelephonePerson CreateTable_TelephonePerson(global::System.Int32 id)
        {
            Table_TelephonePerson table_TelephonePerson = new Table_TelephonePerson();
            table_TelephonePerson.id = id;
            return table_TelephonePerson;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 id
        {
            get
            {
                return _id;
            }
            set
            {
                if (_id != value)
                {
                    OnidChanging(value);
                    ReportPropertyChanging("id");
                    _id = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("id");
                    OnidChanged();
                }
            }
        }
        private global::System.Int32 _id;
        partial void OnidChanging(global::System.Int32 value);
        partial void OnidChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String LastName
        {
            get
            {
                return _LastName;
            }
            set
            {
                OnLastNameChanging(value);
                ReportPropertyChanging("LastName");
                _LastName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("LastName");
                OnLastNameChanged();
            }
        }
        private global::System.String _LastName;
        partial void OnLastNameChanging(global::System.String value);
        partial void OnLastNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telephone
        {
            get
            {
                return _Telephone;
            }
            set
            {
                OnTelephoneChanging(value);
                ReportPropertyChanging("Telephone");
                _Telephone = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Telephone");
                OnTelephoneChanged();
            }
        }
        private global::System.String _Telephone;
        partial void OnTelephoneChanging(global::System.String value);
        partial void OnTelephoneChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Mobile
        {
            get
            {
                return _Mobile;
            }
            set
            {
                OnMobileChanging(value);
                ReportPropertyChanging("Mobile");
                _Mobile = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Mobile");
                OnMobileChanged();
            }
        }
        private global::System.String _Mobile;
        partial void OnMobileChanging(global::System.String value);
        partial void OnMobileChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Address
        {
            get
            {
                return _Address;
            }
            set
            {
                OnAddressChanging(value);
                ReportPropertyChanging("Address");
                _Address = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Address");
                OnAddressChanged();
            }
        }
        private global::System.String _Address;
        partial void OnAddressChanging(global::System.String value);
        partial void OnAddressChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="Table_User")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Table_User : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Table_User object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static Table_User CreateTable_User(global::System.Int32 id)
        {
            Table_User table_User = new Table_User();
            table_User.id = id;
            return table_User;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 id
        {
            get
            {
                return _id;
            }
            set
            {
                if (_id != value)
                {
                    OnidChanging(value);
                    ReportPropertyChanging("id");
                    _id = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("id");
                    OnidChanged();
                }
            }
        }
        private global::System.Int32 _id;
        partial void OnidChanging(global::System.Int32 value);
        partial void OnidChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String User
        {
            get
            {
                return _User;
            }
            set
            {
                OnUserChanging(value);
                ReportPropertyChanging("User");
                _User = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("User");
                OnUserChanged();
            }
        }
        private global::System.String _User;
        partial void OnUserChanging(global::System.String value);
        partial void OnUserChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Password
        {
            get
            {
                return _Password;
            }
            set
            {
                OnPasswordChanging(value);
                ReportPropertyChanging("Password");
                _Password = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Password");
                OnPasswordChanged();
            }
        }
        private global::System.String _Password;
        partial void OnPasswordChanging(global::System.String value);
        partial void OnPasswordChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="ViewFactor")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ViewFactor : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ViewFactor object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static ViewFactor CreateViewFactor(global::System.Int32 codFactor)
        {
            ViewFactor viewFactor = new ViewFactor();
            viewFactor.CodFactor = codFactor;
            return viewFactor;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                if (_CodFactor != value)
                {
                    OnCodFactorChanging(value);
                    ReportPropertyChanging("CodFactor");
                    _CodFactor = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodFactor");
                    OnCodFactorChanged();
                }
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="Model", Name="ViewFactorNew")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ViewFactorNew : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ViewFactorNew object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static ViewFactorNew CreateViewFactorNew(global::System.Int32 codFactor)
        {
            ViewFactorNew viewFactorNew = new ViewFactorNew();
            viewFactorNew.CodFactor = codFactor;
            return viewFactorNew;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                if (_CodFactor != value)
                {
                    OnCodFactorChanging(value);
                    ReportPropertyChanging("CodFactor");
                    _CodFactor = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("CodFactor");
                    OnCodFactorChanged();
                }
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private global::System.String _Money;
        partial void OnMoneyChanging(global::System.String value);
        partial void OnMoneyChanged();

        #endregion
    
    }

    #endregion
    #region ComplexTypes
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_ListKharidKoli_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_ListKharidKoli_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_ListKharidKoli_Result object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        /// <param name="money">Initial value of the Money property.</param>
        public static Sp_ListKharidKoli_Result CreateSp_ListKharidKoli_Result(global::System.Int32 codCompany, global::System.Int32 codBuy, global::System.Int32 money)
        {
            Sp_ListKharidKoli_Result sp_ListKharidKoli_Result = new Sp_ListKharidKoli_Result();
            sp_ListKharidKoli_Result.CodCompany = codCompany;
            sp_ListKharidKoli_Result.CodBuy = codBuy;
            sp_ListKharidKoli_Result.Money = money;
            return sp_ListKharidKoli_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CompanyName
        {
            get
            {
                return _CompanyName;
            }
            set
            {
                OnCompanyNameChanging(value);
                ReportPropertyChanging("CompanyName");
                _CompanyName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CompanyName");
                OnCompanyNameChanged();
            }
        }
        private global::System.String _CompanyName;
        partial void OnCompanyNameChanging(global::System.String value);
        partial void OnCompanyNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                OnCodBuyChanging(value);
                ReportPropertyChanging("CodBuy");
                _CodBuy = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodBuy");
                OnCodBuyChanged();
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private global::System.Int32 _Money;
        partial void OnMoneyChanging(global::System.Int32 value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_MaxCustomer_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_MaxCustomer_Result : ComplexObject
    {
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String tedadkharid
        {
            get
            {
                return _tedadkharid;
            }
            set
            {
                OntedadkharidChanging(value);
                ReportPropertyChanging("tedadkharid");
                _tedadkharid = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("tedadkharid");
                OntedadkharidChanged();
            }
        }
        private global::System.String _tedadkharid;
        partial void OntedadkharidChanging(global::System.String value);
        partial void OntedadkharidChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_MaxFrosh_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_MaxFrosh_Result : ComplexObject
    {
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Frosh
        {
            get
            {
                return _Frosh;
            }
            set
            {
                OnFroshChanging(value);
                ReportPropertyChanging("Frosh");
                _Frosh = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Frosh");
                OnFroshChanged();
            }
        }
        private Nullable<global::System.Int32> _Frosh;
        partial void OnFroshChanging(Nullable<global::System.Int32> value);
        partial void OnFroshChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_PrintFactor_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_PrintFactor_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_PrintFactor_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        /// <param name="codFactor1">Initial value of the CodFactor1 property.</param>
        public static Sp_PrintFactor_Result CreateSp_PrintFactor_Result(global::System.Int32 codFactor, global::System.Int32 codFactor1)
        {
            Sp_PrintFactor_Result sp_PrintFactor_Result = new Sp_PrintFactor_Result();
            sp_PrintFactor_Result.CodFactor = codFactor;
            sp_PrintFactor_Result.CodFactor1 = codFactor1;
            return sp_PrintFactor_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor1
        {
            get
            {
                return _CodFactor1;
            }
            set
            {
                OnCodFactor1Changing(value);
                ReportPropertyChanging("CodFactor1");
                _CodFactor1 = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor1");
                OnCodFactor1Changed();
            }
        }
        private global::System.Int32 _CodFactor1;
        partial void OnCodFactor1Changing(global::System.Int32 value);
        partial void OnCodFactor1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_PrintFactornew_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_PrintFactornew_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_PrintFactornew_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_PrintFactornew_Result CreateSp_PrintFactornew_Result(global::System.Int32 codFactor)
        {
            Sp_PrintFactornew_Result sp_PrintFactornew_Result = new Sp_PrintFactornew_Result();
            sp_PrintFactornew_Result.CodFactor = codFactor;
            return sp_PrintFactornew_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchCompany_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchCompany_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchCompany_Result object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        public static Sp_SearchCompany_Result CreateSp_SearchCompany_Result(global::System.Int32 codCompany)
        {
            Sp_SearchCompany_Result sp_SearchCompany_Result = new Sp_SearchCompany_Result();
            sp_SearchCompany_Result.CodCompany = codCompany;
            return sp_SearchCompany_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CompanyName
        {
            get
            {
                return _CompanyName;
            }
            set
            {
                OnCompanyNameChanging(value);
                ReportPropertyChanging("CompanyName");
                _CompanyName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CompanyName");
                OnCompanyNameChanged();
            }
        }
        private global::System.String _CompanyName;
        partial void OnCompanyNameChanging(global::System.String value);
        partial void OnCompanyNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Comment
        {
            get
            {
                return _Comment;
            }
            set
            {
                OnCommentChanging(value);
                ReportPropertyChanging("Comment");
                _Comment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Comment");
                OnCommentChanged();
            }
        }
        private global::System.String _Comment;
        partial void OnCommentChanging(global::System.String value);
        partial void OnCommentChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchCustomer_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchCustomer_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchCustomer_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SearchCustomer_Result CreateSp_SearchCustomer_Result(global::System.Int32 codFactor)
        {
            Sp_SearchCustomer_Result sp_SearchCustomer_Result = new Sp_SearchCustomer_Result();
            sp_SearchCustomer_Result.CodFactor = codFactor;
            return sp_SearchCustomer_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchDate_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchDate_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchDate_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SearchDate_Result CreateSp_SearchDate_Result(global::System.Int32 codFactor)
        {
            Sp_SearchDate_Result sp_SearchDate_Result = new Sp_SearchDate_Result();
            sp_SearchDate_Result.CodFactor = codFactor;
            return sp_SearchDate_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchFactor_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchFactor_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchFactor_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SearchFactor_Result CreateSp_SearchFactor_Result(global::System.Int32 codFactor)
        {
            Sp_SearchFactor_Result sp_SearchFactor_Result = new Sp_SearchFactor_Result();
            sp_SearchFactor_Result.CodFactor = codFactor;
            return sp_SearchFactor_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchKharid_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchKharid_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchKharid_Result object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        public static Sp_SearchKharid_Result CreateSp_SearchKharid_Result(global::System.Int32 codCompany, global::System.Int32 codBuy)
        {
            Sp_SearchKharid_Result sp_SearchKharid_Result = new Sp_SearchKharid_Result();
            sp_SearchKharid_Result.CodCompany = codCompany;
            sp_SearchKharid_Result.CodBuy = codBuy;
            return sp_SearchKharid_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                OnCodBuyChanging(value);
                ReportPropertyChanging("CodBuy");
                _CodBuy = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodBuy");
                OnCodBuyChanged();
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchKharidCompany_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchKharidCompany_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchKharidCompany_Result object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        public static Sp_SearchKharidCompany_Result CreateSp_SearchKharidCompany_Result(global::System.Int32 codCompany, global::System.Int32 codBuy)
        {
            Sp_SearchKharidCompany_Result sp_SearchKharidCompany_Result = new Sp_SearchKharidCompany_Result();
            sp_SearchKharidCompany_Result.CodCompany = codCompany;
            sp_SearchKharidCompany_Result.CodBuy = codBuy;
            return sp_SearchKharidCompany_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                OnCodBuyChanging(value);
                ReportPropertyChanging("CodBuy");
                _CodBuy = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodBuy");
                OnCodBuyChanged();
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchListKharid_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchListKharid_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchListKharid_Result object.
        /// </summary>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        /// <param name="money">Initial value of the Money property.</param>
        public static Sp_SearchListKharid_Result CreateSp_SearchListKharid_Result(global::System.Int32 codBuy, global::System.Int32 money)
        {
            Sp_SearchListKharid_Result sp_SearchListKharid_Result = new Sp_SearchListKharid_Result();
            sp_SearchListKharid_Result.CodBuy = codBuy;
            sp_SearchListKharid_Result.Money = money;
            return sp_SearchListKharid_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                OnCodBuyChanging(value);
                ReportPropertyChanging("CodBuy");
                _CodBuy = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodBuy");
                OnCodBuyChanged();
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private global::System.Int32 _Money;
        partial void OnMoneyChanging(global::System.Int32 value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SearchTarikh_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SearchTarikh_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SearchTarikh_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SearchTarikh_Result CreateSp_SearchTarikh_Result(global::System.Int32 codFactor)
        {
            Sp_SearchTarikh_Result sp_SearchTarikh_Result = new Sp_SearchTarikh_Result();
            sp_SearchTarikh_Result.CodFactor = codFactor;
            return sp_SearchTarikh_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> tedad
        {
            get
            {
                return _tedad;
            }
            set
            {
                OntedadChanging(value);
                ReportPropertyChanging("tedad");
                _tedad = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("tedad");
                OntedadChanged();
            }
        }
        private Nullable<global::System.Int32> _tedad;
        partial void OntedadChanging(Nullable<global::System.Int32> value);
        partial void OntedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> money
        {
            get
            {
                return _money;
            }
            set
            {
                OnmoneyChanging(value);
                ReportPropertyChanging("money");
                _money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("money");
                OnmoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _money;
        partial void OnmoneyChanging(Nullable<global::System.Int32> value);
        partial void OnmoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectComment_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectComment_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectComment_Result object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static Sp_SelectComment_Result CreateSp_SelectComment_Result(global::System.Int32 id)
        {
            Sp_SelectComment_Result sp_SelectComment_Result = new Sp_SelectComment_Result();
            sp_SelectComment_Result.id = id;
            return sp_SelectComment_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 id
        {
            get
            {
                return _id;
            }
            set
            {
                OnidChanging(value);
                ReportPropertyChanging("id");
                _id = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("id");
                OnidChanged();
            }
        }
        private global::System.Int32 _id;
        partial void OnidChanging(global::System.Int32 value);
        partial void OnidChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateComment
        {
            get
            {
                return _DateComment;
            }
            set
            {
                OnDateCommentChanging(value);
                ReportPropertyChanging("DateComment");
                _DateComment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateComment");
                OnDateCommentChanged();
            }
        }
        private global::System.String _DateComment;
        partial void OnDateCommentChanging(global::System.String value);
        partial void OnDateCommentChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Comment
        {
            get
            {
                return _Comment;
            }
            set
            {
                OnCommentChanging(value);
                ReportPropertyChanging("Comment");
                _Comment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Comment");
                OnCommentChanged();
            }
        }
        private global::System.String _Comment;
        partial void OnCommentChanging(global::System.String value);
        partial void OnCommentChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectCompany_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectCompany_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectCompany_Result object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        public static Sp_SelectCompany_Result CreateSp_SelectCompany_Result(global::System.Int32 codCompany)
        {
            Sp_SelectCompany_Result sp_SelectCompany_Result = new Sp_SelectCompany_Result();
            sp_SelectCompany_Result.CodCompany = codCompany;
            return sp_SelectCompany_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CompanyName
        {
            get
            {
                return _CompanyName;
            }
            set
            {
                OnCompanyNameChanging(value);
                ReportPropertyChanging("CompanyName");
                _CompanyName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CompanyName");
                OnCompanyNameChanged();
            }
        }
        private global::System.String _CompanyName;
        partial void OnCompanyNameChanging(global::System.String value);
        partial void OnCompanyNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Comment
        {
            get
            {
                return _Comment;
            }
            set
            {
                OnCommentChanging(value);
                ReportPropertyChanging("Comment");
                _Comment = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Comment");
                OnCommentChanged();
            }
        }
        private global::System.String _Comment;
        partial void OnCommentChanging(global::System.String value);
        partial void OnCommentChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectCustomer_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectCustomer_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectCustomer_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SelectCustomer_Result CreateSp_SelectCustomer_Result(global::System.Int32 codFactor)
        {
            Sp_SelectCustomer_Result sp_SelectCustomer_Result = new Sp_SelectCustomer_Result();
            sp_SelectCustomer_Result.CodFactor = codFactor;
            return sp_SelectCustomer_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Buyer
        {
            get
            {
                return _Buyer;
            }
            set
            {
                OnBuyerChanging(value);
                ReportPropertyChanging("Buyer");
                _Buyer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Buyer");
                OnBuyerChanged();
            }
        }
        private global::System.String _Buyer;
        partial void OnBuyerChanging(global::System.String value);
        partial void OnBuyerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectFactor_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectFactor_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectFactor_Result object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SelectFactor_Result CreateSp_SelectFactor_Result(global::System.Int32 codFactor)
        {
            Sp_SelectFactor_Result sp_SelectFactor_Result = new Sp_SelectFactor_Result();
            sp_SelectFactor_Result.CodFactor = codFactor;
            return sp_SelectFactor_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private global::System.String _Money;
        partial void OnMoneyChanging(global::System.String value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectFactor_Result1")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectFactor_Result1 : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectFactor_Result1 object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SelectFactor_Result1 CreateSp_SelectFactor_Result1(global::System.Int32 codFactor)
        {
            Sp_SelectFactor_Result1 sp_SelectFactor_Result1 = new Sp_SelectFactor_Result1();
            sp_SelectFactor_Result1.CodFactor = codFactor;
            return sp_SelectFactor_Result1;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private global::System.String _Money;
        partial void OnMoneyChanging(global::System.String value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectFactor_Result2")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectFactor_Result2 : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectFactor_Result2 object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SelectFactor_Result2 CreateSp_SelectFactor_Result2(global::System.Int32 codFactor)
        {
            Sp_SelectFactor_Result2 sp_SelectFactor_Result2 = new Sp_SelectFactor_Result2();
            sp_SelectFactor_Result2.CodFactor = codFactor;
            return sp_SelectFactor_Result2;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectFactor_Result3")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectFactor_Result3 : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectFactor_Result3 object.
        /// </summary>
        /// <param name="codFactor">Initial value of the CodFactor property.</param>
        public static Sp_SelectFactor_Result3 CreateSp_SelectFactor_Result3(global::System.Int32 codFactor)
        {
            Sp_SelectFactor_Result3 sp_SelectFactor_Result3 = new Sp_SelectFactor_Result3();
            sp_SelectFactor_Result3.CodFactor = codFactor;
            return sp_SelectFactor_Result3;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodFactor
        {
            get
            {
                return _CodFactor;
            }
            set
            {
                OnCodFactorChanging(value);
                ReportPropertyChanging("CodFactor");
                _CodFactor = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodFactor");
                OnCodFactorChanged();
            }
        }
        private global::System.Int32 _CodFactor;
        partial void OnCodFactorChanging(global::System.Int32 value);
        partial void OnCodFactorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private Nullable<global::System.Int32> _CodKala;
        partial void OnCodKalaChanging(Nullable<global::System.Int32> value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectKharid_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectKharid_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectKharid_Result object.
        /// </summary>
        /// <param name="codCompany">Initial value of the CodCompany property.</param>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        public static Sp_SelectKharid_Result CreateSp_SelectKharid_Result(global::System.Int32 codCompany, global::System.Int32 codBuy)
        {
            Sp_SelectKharid_Result sp_SelectKharid_Result = new Sp_SelectKharid_Result();
            sp_SelectKharid_Result.CodCompany = codCompany;
            sp_SelectKharid_Result.CodBuy = codBuy;
            return sp_SelectKharid_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodCompany
        {
            get
            {
                return _CodCompany;
            }
            set
            {
                OnCodCompanyChanging(value);
                ReportPropertyChanging("CodCompany");
                _CodCompany = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodCompany");
                OnCodCompanyChanged();
            }
        }
        private global::System.Int32 _CodCompany;
        partial void OnCodCompanyChanging(global::System.Int32 value);
        partial void OnCodCompanyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                OnCodBuyChanging(value);
                ReportPropertyChanging("CodBuy");
                _CodBuy = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodBuy");
                OnCodBuyChanged();
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DateBuy
        {
            get
            {
                return _DateBuy;
            }
            set
            {
                OnDateBuyChanging(value);
                ReportPropertyChanging("DateBuy");
                _DateBuy = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("DateBuy");
                OnDateBuyChanged();
            }
        }
        private global::System.String _DateBuy;
        partial void OnDateBuyChanging(global::System.String value);
        partial void OnDateBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private Nullable<global::System.Int32> _Money;
        partial void OnMoneyChanging(Nullable<global::System.Int32> value);
        partial void OnMoneyChanged();

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="Model", Name="Sp_SelectListKharid_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class Sp_SelectListKharid_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sp_SelectListKharid_Result object.
        /// </summary>
        /// <param name="codBuy">Initial value of the CodBuy property.</param>
        /// <param name="codKala">Initial value of the CodKala property.</param>
        /// <param name="money">Initial value of the Money property.</param>
        public static Sp_SelectListKharid_Result CreateSp_SelectListKharid_Result(global::System.Int32 codBuy, global::System.Int32 codKala, global::System.Int32 money)
        {
            Sp_SelectListKharid_Result sp_SelectListKharid_Result = new Sp_SelectListKharid_Result();
            sp_SelectListKharid_Result.CodBuy = codBuy;
            sp_SelectListKharid_Result.CodKala = codKala;
            sp_SelectListKharid_Result.Money = money;
            return sp_SelectListKharid_Result;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodBuy
        {
            get
            {
                return _CodBuy;
            }
            set
            {
                OnCodBuyChanging(value);
                ReportPropertyChanging("CodBuy");
                _CodBuy = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodBuy");
                OnCodBuyChanged();
            }
        }
        private global::System.Int32 _CodBuy;
        partial void OnCodBuyChanging(global::System.Int32 value);
        partial void OnCodBuyChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 CodKala
        {
            get
            {
                return _CodKala;
            }
            set
            {
                OnCodKalaChanging(value);
                ReportPropertyChanging("CodKala");
                _CodKala = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CodKala");
                OnCodKalaChanged();
            }
        }
        private global::System.Int32 _CodKala;
        partial void OnCodKalaChanging(global::System.Int32 value);
        partial void OnCodKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NameKala
        {
            get
            {
                return _NameKala;
            }
            set
            {
                OnNameKalaChanging(value);
                ReportPropertyChanging("NameKala");
                _NameKala = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("NameKala");
                OnNameKalaChanged();
            }
        }
        private global::System.String _NameKala;
        partial void OnNameKalaChanging(global::System.String value);
        partial void OnNameKalaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Model
        {
            get
            {
                return _Model;
            }
            set
            {
                OnModelChanging(value);
                ReportPropertyChanging("Model");
                _Model = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Model");
                OnModelChanged();
            }
        }
        private global::System.String _Model;
        partial void OnModelChanging(global::System.String value);
        partial void OnModelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tedad
        {
            get
            {
                return _Tedad;
            }
            set
            {
                OnTedadChanging(value);
                ReportPropertyChanging("Tedad");
                _Tedad = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Tedad");
                OnTedadChanged();
            }
        }
        private global::System.String _Tedad;
        partial void OnTedadChanging(global::System.String value);
        partial void OnTedadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Money
        {
            get
            {
                return _Money;
            }
            set
            {
                OnMoneyChanging(value);
                ReportPropertyChanging("Money");
                _Money = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Money");
                OnMoneyChanged();
            }
        }
        private global::System.Int32 _Money;
        partial void OnMoneyChanging(global::System.Int32 value);
        partial void OnMoneyChanged();

        #endregion
    }

    #endregion
    
}
