#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Nano_System
{
	using System.Data.Linq;
	using System.Data.Linq.Mapping;
	using System.Data;
	using System.Collections.Generic;
	using System.Reflection;
	using System.Linq;
	using System.Linq.Expressions;
	using System.ComponentModel;
	using System;
	
	
	[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Nano")]
	public partial class LSC_NanoProjDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void InsertFactoreKharid(FactoreKharid instance);
    partial void UpdateFactoreKharid(FactoreKharid instance);
    partial void DeleteFactoreKharid(FactoreKharid instance);
    partial void InsertFactoreForoosh(FactoreForoosh instance);
    partial void UpdateFactoreForoosh(FactoreForoosh instance);
    partial void DeleteFactoreForoosh(FactoreForoosh instance);
    #endregion
		
		public LSC_NanoProjDataContext() : 
				base(global::Nano_System.Properties.Settings.Default.NanoConnectionString1, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_NanoProjDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_NanoProjDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_NanoProjDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_NanoProjDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public System.Data.Linq.Table<W_FactoreForoosh> W_FactoreForooshes
		{
			get
			{
				return this.GetTable<W_FactoreForoosh>();
			}
		}
		
		public System.Data.Linq.Table<W_FactoreKharid> W_FactoreKharids
		{
			get
			{
				return this.GetTable<W_FactoreKharid>();
			}
		}
		
		public System.Data.Linq.Table<xtblAghlamCatalogui> xtblAghlamCataloguis
		{
			get
			{
				return this.GetTable<xtblAghlamCatalogui>();
			}
		}
		
		public System.Data.Linq.Table<xtblChekPardakhtani> xtblChekPardakhtanis
		{
			get
			{
				return this.GetTable<xtblChekPardakhtani>();
			}
		}
		
		public System.Data.Linq.Table<xtblKelleForoosh> xtblKelleForooshes
		{
			get
			{
				return this.GetTable<xtblKelleForoosh>();
			}
		}
		
		public System.Data.Linq.Table<xtblKolleKharidha> xtblKolleKharidhas
		{
			get
			{
				return this.GetTable<xtblKolleKharidha>();
			}
		}
		
		public System.Data.Linq.Table<xtblMojoodiAghlam> xtblMojoodiAghlams
		{
			get
			{
				return this.GetTable<xtblMojoodiAghlam>();
			}
		}
		
		public System.Data.Linq.Table<xtblMoshtarian> xtblMoshtarians
		{
			get
			{
				return this.GetTable<xtblMoshtarian>();
			}
		}
		
		public System.Data.Linq.Table<FactoreKharid> FactoreKharids
		{
			get
			{
				return this.GetTable<FactoreKharid>();
			}
		}
		
		public System.Data.Linq.Table<FactoreForoosh> FactoreForooshes
		{
			get
			{
				return this.GetTable<FactoreForoosh>();
			}
		}
		
		public System.Data.Linq.Table<NahaiteVazziiateMoshtarian> NahaiteVazziiateMoshtarians
		{
			get
			{
				return this.GetTable<NahaiteVazziiateMoshtarian>();
			}
		}
		
		public System.Data.Linq.Table<xtblChekDaryaftani> xtblChekDaryaftanis
		{
			get
			{
				return this.GetTable<xtblChekDaryaftani>();
			}
		}
		
		public System.Data.Linq.Table<xtblKharidByDate> xtblKharidByDates
		{
			get
			{
				return this.GetTable<xtblKharidByDate>();
			}
		}
		
		public System.Data.Linq.Table<xtblForooshByDate> xtblForooshByDates
		{
			get
			{
				return this.GetTable<xtblForooshByDate>();
			}
		}
		
		public System.Data.Linq.Table<xtblCmbKharid> xtblCmbKharids
		{
			get
			{
				return this.GetTable<xtblCmbKharid>();
			}
		}
		
		public System.Data.Linq.Table<xtblCmbForoosh> xtblCmbForooshes
		{
			get
			{
				return this.GetTable<xtblCmbForoosh>();
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.W_FactoreForoosh")]
	public partial class W_FactoreForoosh
	{
		
		private int _FactoreForooshID;
		
		private string _DtOfSodoor;
		
		private string _Title;
		
		private string _Expr1;
		
		private double _Quantity1;
		
		private System.Nullable<double> _salePrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private System.Nullable<double> _BefitLoss;
		
		public W_FactoreForoosh()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FactoreForooshID", DbType="Int NOT NULL")]
		public int FactoreForooshID
		{
			get
			{
				return this._FactoreForooshID;
			}
			set
			{
				if ((this._FactoreForooshID != value))
				{
					this._FactoreForooshID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DtOfSodoor", DbType="NVarChar(50)")]
		public string DtOfSodoor
		{
			get
			{
				return this._DtOfSodoor;
			}
			set
			{
				if ((this._DtOfSodoor != value))
				{
					this._DtOfSodoor = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this._Title = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(102)")]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity1", DbType="Float NOT NULL")]
		public double Quantity1
		{
			get
			{
				return this._Quantity1;
			}
			set
			{
				if ((this._Quantity1 != value))
				{
					this._Quantity1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_salePrice", DbType="Float")]
		public System.Nullable<double> salePrice
		{
			get
			{
				return this._salePrice;
			}
			set
			{
				if ((this._salePrice != value))
				{
					this._salePrice = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPRICE", DbType="Float")]
		public System.Nullable<double> TotalPRICE
		{
			get
			{
				return this._TotalPRICE;
			}
			set
			{
				if ((this._TotalPRICE != value))
				{
					this._TotalPRICE = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BefitLoss", DbType="Float")]
		public System.Nullable<double> BefitLoss
		{
			get
			{
				return this._BefitLoss;
			}
			set
			{
				if ((this._BefitLoss != value))
				{
					this._BefitLoss = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.W_FactoreKharid")]
	public partial class W_FactoreKharid
	{
		
		private int _FactoreKaridID;
		
		private string _DtOfSodoor;
		
		private string _Expr1;
		
		private string _Title;
		
		private double _Quantity1;
		
		private System.Nullable<double> _PurchPrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		public W_FactoreKharid()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FactoreKaridID", DbType="Int NOT NULL")]
		public int FactoreKaridID
		{
			get
			{
				return this._FactoreKaridID;
			}
			set
			{
				if ((this._FactoreKaridID != value))
				{
					this._FactoreKaridID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DtOfSodoor", DbType="NVarChar(50)")]
		public string DtOfSodoor
		{
			get
			{
				return this._DtOfSodoor;
			}
			set
			{
				if ((this._DtOfSodoor != value))
				{
					this._DtOfSodoor = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(102)")]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this._Title = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity1", DbType="Float NOT NULL")]
		public double Quantity1
		{
			get
			{
				return this._Quantity1;
			}
			set
			{
				if ((this._Quantity1 != value))
				{
					this._Quantity1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchPrice", DbType="Float")]
		public System.Nullable<double> PurchPrice
		{
			get
			{
				return this._PurchPrice;
			}
			set
			{
				if ((this._PurchPrice != value))
				{
					this._PurchPrice = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPRICE", DbType="Float")]
		public System.Nullable<double> TotalPRICE
		{
			get
			{
				return this._TotalPRICE;
			}
			set
			{
				if ((this._TotalPRICE != value))
				{
					this._TotalPRICE = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblAghlamCatalogui")]
	public partial class xtblAghlamCatalogui
	{
		
		private string _GoodsID;
		
		private string _Title;
		
		private string _PublisherName;
		
		private System.Nullable<decimal> _PurchasePrice;
		
		private string _Subject;
		
		public xtblAghlamCatalogui()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GoodsID", DbType="NVarChar(8) NOT NULL", CanBeNull=false)]
		public string GoodsID
		{
			get
			{
				return this._GoodsID;
			}
			set
			{
				if ((this._GoodsID != value))
				{
					this._GoodsID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this._Title = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PublisherName", DbType="NVarChar(50)")]
		public string PublisherName
		{
			get
			{
				return this._PublisherName;
			}
			set
			{
				if ((this._PublisherName != value))
				{
					this._PublisherName = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchasePrice", DbType="Decimal(18,0)")]
		public System.Nullable<decimal> PurchasePrice
		{
			get
			{
				return this._PurchasePrice;
			}
			set
			{
				if ((this._PurchasePrice != value))
				{
					this._PurchasePrice = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subject", DbType="NVarChar(25)")]
		public string Subject
		{
			get
			{
				return this._Subject;
			}
			set
			{
				if ((this._Subject != value))
				{
					this._Subject = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblChekPardakhtani")]
	public partial class xtblChekPardakhtani
	{
		
		private string _CheeckNumber;
		
		private string _BankNameShobeh;
		
		private string _NameSname;
		
		private string _DatOfCheek;
		
		private System.Nullable<double> _MabLaghOfChek;
		
		public xtblChekPardakhtani()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheeckNumber", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string CheeckNumber
		{
			get
			{
				return this._CheeckNumber;
			}
			set
			{
				if ((this._CheeckNumber != value))
				{
					this._CheeckNumber = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BankNameShobeh", DbType="NVarChar(80) NOT NULL", CanBeNull=false)]
		public string BankNameShobeh
		{
			get
			{
				return this._BankNameShobeh;
			}
			set
			{
				if ((this._BankNameShobeh != value))
				{
					this._BankNameShobeh = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NameSname", DbType="NVarChar(101)")]
		public string NameSname
		{
			get
			{
				return this._NameSname;
			}
			set
			{
				if ((this._NameSname != value))
				{
					this._NameSname = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DatOfCheek", DbType="NVarChar(10)")]
		public string DatOfCheek
		{
			get
			{
				return this._DatOfCheek;
			}
			set
			{
				if ((this._DatOfCheek != value))
				{
					this._DatOfCheek = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MabLaghOfChek", DbType="Float")]
		public System.Nullable<double> MabLaghOfChek
		{
			get
			{
				return this._MabLaghOfChek;
			}
			set
			{
				if ((this._MabLaghOfChek != value))
				{
					this._MabLaghOfChek = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblKelleForoosh")]
	public partial class xtblKelleForoosh
	{
		
		private string _Title;
		
		private string _DtOfSodoor;
		
		private string _NameSname;
		
		private double _Quantity1;
		
		private System.Nullable<double> _salePrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private System.Nullable<double> _BefitLoss;
		
		public xtblKelleForoosh()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this._Title = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DtOfSodoor", DbType="NVarChar(50)")]
		public string DtOfSodoor
		{
			get
			{
				return this._DtOfSodoor;
			}
			set
			{
				if ((this._DtOfSodoor != value))
				{
					this._DtOfSodoor = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NameSname", DbType="NVarChar(101)")]
		public string NameSname
		{
			get
			{
				return this._NameSname;
			}
			set
			{
				if ((this._NameSname != value))
				{
					this._NameSname = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity1", DbType="Float NOT NULL")]
		public double Quantity1
		{
			get
			{
				return this._Quantity1;
			}
			set
			{
				if ((this._Quantity1 != value))
				{
					this._Quantity1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_salePrice", DbType="Float")]
		public System.Nullable<double> salePrice
		{
			get
			{
				return this._salePrice;
			}
			set
			{
				if ((this._salePrice != value))
				{
					this._salePrice = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPRICE", DbType="Float")]
		public System.Nullable<double> TotalPRICE
		{
			get
			{
				return this._TotalPRICE;
			}
			set
			{
				if ((this._TotalPRICE != value))
				{
					this._TotalPRICE = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BefitLoss", DbType="Float")]
		public System.Nullable<double> BefitLoss
		{
			get
			{
				return this._BefitLoss;
			}
			set
			{
				if ((this._BefitLoss != value))
				{
					this._BefitLoss = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblKolleKharidha")]
	public partial class xtblKolleKharidha
	{
		
		private string _Title;
		
		private double _Quantity1;
		
		private System.Nullable<double> _PurchPrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private string _NameSname;
		
		private string _DtOfSodoor;
		
		public xtblKolleKharidha()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this._Title = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity1", DbType="Float NOT NULL")]
		public double Quantity1
		{
			get
			{
				return this._Quantity1;
			}
			set
			{
				if ((this._Quantity1 != value))
				{
					this._Quantity1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchPrice", DbType="Float")]
		public System.Nullable<double> PurchPrice
		{
			get
			{
				return this._PurchPrice;
			}
			set
			{
				if ((this._PurchPrice != value))
				{
					this._PurchPrice = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPRICE", DbType="Float")]
		public System.Nullable<double> TotalPRICE
		{
			get
			{
				return this._TotalPRICE;
			}
			set
			{
				if ((this._TotalPRICE != value))
				{
					this._TotalPRICE = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NameSname", DbType="NVarChar(101)")]
		public string NameSname
		{
			get
			{
				return this._NameSname;
			}
			set
			{
				if ((this._NameSname != value))
				{
					this._NameSname = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DtOfSodoor", DbType="NVarChar(50)")]
		public string DtOfSodoor
		{
			get
			{
				return this._DtOfSodoor;
			}
			set
			{
				if ((this._DtOfSodoor != value))
				{
					this._DtOfSodoor = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblMojoodiAghlam")]
	public partial class xtblMojoodiAghlam
	{
		
		private string _Title;
		
		private string _GoodsID;
		
		private System.Nullable<double> _Kharid;
		
		private System.Nullable<double> _Foroosh;
		
		private System.Nullable<double> _MizanMojoodi;
		
		public xtblMojoodiAghlam()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this._Title = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GoodsID", DbType="NVarChar(8) NOT NULL", CanBeNull=false)]
		public string GoodsID
		{
			get
			{
				return this._GoodsID;
			}
			set
			{
				if ((this._GoodsID != value))
				{
					this._GoodsID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Kharid", DbType="Float")]
		public System.Nullable<double> Kharid
		{
			get
			{
				return this._Kharid;
			}
			set
			{
				if ((this._Kharid != value))
				{
					this._Kharid = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Foroosh", DbType="Float")]
		public System.Nullable<double> Foroosh
		{
			get
			{
				return this._Foroosh;
			}
			set
			{
				if ((this._Foroosh != value))
				{
					this._Foroosh = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MizanMojoodi", DbType="Float")]
		public System.Nullable<double> MizanMojoodi
		{
			get
			{
				return this._MizanMojoodi;
			}
			set
			{
				if ((this._MizanMojoodi != value))
				{
					this._MizanMojoodi = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblMoshtarian")]
	public partial class xtblMoshtarian
	{
		
		private string _MemBerID;
		
		private string _Expr1;
		
		private string _melliCode;
		
		private string _MemberState;
		
		public xtblMoshtarian()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemBerID", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string MemBerID
		{
			get
			{
				return this._MemBerID;
			}
			set
			{
				if ((this._MemBerID != value))
				{
					this._MemBerID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(101)")]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_melliCode", DbType="NVarChar(10)")]
		public string melliCode
		{
			get
			{
				return this._melliCode;
			}
			set
			{
				if ((this._melliCode != value))
				{
					this._melliCode = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemberState", DbType="NVarChar(50)")]
		public string MemberState
		{
			get
			{
				return this._MemberState;
			}
			set
			{
				if ((this._MemberState != value))
				{
					this._MemberState = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FactoreKharid")]
	public partial class FactoreKharid : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _KharidID;
		
		private int _FactoreKaridID;
		
		private string _GoodsID;
		
		private double _Quantity1;
		
		private System.Nullable<double> _PurchPrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private string _Notes;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnKharidIDChanging(int value);
    partial void OnKharidIDChanged();
    partial void OnFactoreKaridIDChanging(int value);
    partial void OnFactoreKaridIDChanged();
    partial void OnGoodsIDChanging(string value);
    partial void OnGoodsIDChanged();
    partial void OnQuantity1Changing(double value);
    partial void OnQuantity1Changed();
    partial void OnPurchPriceChanging(System.Nullable<double> value);
    partial void OnPurchPriceChanged();
    partial void OnTotalPRICEChanging(System.Nullable<double> value);
    partial void OnTotalPRICEChanged();
    partial void OnNotesChanging(string value);
    partial void OnNotesChanged();
    #endregion
		
		public FactoreKharid()
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KharidID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int KharidID
		{
			get
			{
				return this._KharidID;
			}
			set
			{
				if ((this._KharidID != value))
				{
					this.OnKharidIDChanging(value);
					this.SendPropertyChanging();
					this._KharidID = value;
					this.SendPropertyChanged("KharidID");
					this.OnKharidIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FactoreKaridID", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int FactoreKaridID
		{
			get
			{
				return this._FactoreKaridID;
			}
			set
			{
				if ((this._FactoreKaridID != value))
				{
					this.OnFactoreKaridIDChanging(value);
					this.SendPropertyChanging();
					this._FactoreKaridID = value;
					this.SendPropertyChanged("FactoreKaridID");
					this.OnFactoreKaridIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GoodsID", DbType="NVarChar(8) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
		public string GoodsID
		{
			get
			{
				return this._GoodsID;
			}
			set
			{
				if ((this._GoodsID != value))
				{
					this.OnGoodsIDChanging(value);
					this.SendPropertyChanging();
					this._GoodsID = value;
					this.SendPropertyChanged("GoodsID");
					this.OnGoodsIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity1", DbType="Float NOT NULL", IsPrimaryKey=true)]
		public double Quantity1
		{
			get
			{
				return this._Quantity1;
			}
			set
			{
				if ((this._Quantity1 != value))
				{
					this.OnQuantity1Changing(value);
					this.SendPropertyChanging();
					this._Quantity1 = value;
					this.SendPropertyChanged("Quantity1");
					this.OnQuantity1Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchPrice", DbType="Float")]
		public System.Nullable<double> PurchPrice
		{
			get
			{
				return this._PurchPrice;
			}
			set
			{
				if ((this._PurchPrice != value))
				{
					this.OnPurchPriceChanging(value);
					this.SendPropertyChanging();
					this._PurchPrice = value;
					this.SendPropertyChanged("PurchPrice");
					this.OnPurchPriceChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPRICE", DbType="Float")]
		public System.Nullable<double> TotalPRICE
		{
			get
			{
				return this._TotalPRICE;
			}
			set
			{
				if ((this._TotalPRICE != value))
				{
					this.OnTotalPRICEChanging(value);
					this.SendPropertyChanging();
					this._TotalPRICE = value;
					this.SendPropertyChanged("TotalPRICE");
					this.OnTotalPRICEChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Notes", DbType="NVarChar(250)")]
		public string Notes
		{
			get
			{
				return this._Notes;
			}
			set
			{
				if ((this._Notes != value))
				{
					this.OnNotesChanging(value);
					this.SendPropertyChanging();
					this._Notes = value;
					this.SendPropertyChanged("Notes");
					this.OnNotesChanged();
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FactoreForoosh")]
	public partial class FactoreForoosh : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _ForooshID;
		
		private int _FactoreForooshID;
		
		private string _GoodsID;
		
		private double _Quantity1;
		
		private System.Nullable<double> _salePrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private System.Nullable<double> _BefitLoss;
		
		private string _Notes;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnForooshIDChanging(int value);
    partial void OnForooshIDChanged();
    partial void OnFactoreForooshIDChanging(int value);
    partial void OnFactoreForooshIDChanged();
    partial void OnGoodsIDChanging(string value);
    partial void OnGoodsIDChanged();
    partial void OnQuantity1Changing(double value);
    partial void OnQuantity1Changed();
    partial void OnsalePriceChanging(System.Nullable<double> value);
    partial void OnsalePriceChanged();
    partial void OnTotalPRICEChanging(System.Nullable<double> value);
    partial void OnTotalPRICEChanged();
    partial void OnBefitLossChanging(System.Nullable<double> value);
    partial void OnBefitLossChanged();
    partial void OnNotesChanging(string value);
    partial void OnNotesChanged();
    #endregion
		
		public FactoreForoosh()
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ForooshID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int ForooshID
		{
			get
			{
				return this._ForooshID;
			}
			set
			{
				if ((this._ForooshID != value))
				{
					this.OnForooshIDChanging(value);
					this.SendPropertyChanging();
					this._ForooshID = value;
					this.SendPropertyChanged("ForooshID");
					this.OnForooshIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FactoreForooshID", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int FactoreForooshID
		{
			get
			{
				return this._FactoreForooshID;
			}
			set
			{
				if ((this._FactoreForooshID != value))
				{
					this.OnFactoreForooshIDChanging(value);
					this.SendPropertyChanging();
					this._FactoreForooshID = value;
					this.SendPropertyChanged("FactoreForooshID");
					this.OnFactoreForooshIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GoodsID", DbType="NVarChar(8) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
		public string GoodsID
		{
			get
			{
				return this._GoodsID;
			}
			set
			{
				if ((this._GoodsID != value))
				{
					this.OnGoodsIDChanging(value);
					this.SendPropertyChanging();
					this._GoodsID = value;
					this.SendPropertyChanged("GoodsID");
					this.OnGoodsIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity1", DbType="Float NOT NULL", IsPrimaryKey=true)]
		public double Quantity1
		{
			get
			{
				return this._Quantity1;
			}
			set
			{
				if ((this._Quantity1 != value))
				{
					this.OnQuantity1Changing(value);
					this.SendPropertyChanging();
					this._Quantity1 = value;
					this.SendPropertyChanged("Quantity1");
					this.OnQuantity1Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_salePrice", DbType="Float")]
		public System.Nullable<double> salePrice
		{
			get
			{
				return this._salePrice;
			}
			set
			{
				if ((this._salePrice != value))
				{
					this.OnsalePriceChanging(value);
					this.SendPropertyChanging();
					this._salePrice = value;
					this.SendPropertyChanged("salePrice");
					this.OnsalePriceChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalPRICE", DbType="Float")]
		public System.Nullable<double> TotalPRICE
		{
			get
			{
				return this._TotalPRICE;
			}
			set
			{
				if ((this._TotalPRICE != value))
				{
					this.OnTotalPRICEChanging(value);
					this.SendPropertyChanging();
					this._TotalPRICE = value;
					this.SendPropertyChanged("TotalPRICE");
					this.OnTotalPRICEChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BefitLoss", DbType="Float")]
		public System.Nullable<double> BefitLoss
		{
			get
			{
				return this._BefitLoss;
			}
			set
			{
				if ((this._BefitLoss != value))
				{
					this.OnBefitLossChanging(value);
					this.SendPropertyChanging();
					this._BefitLoss = value;
					this.SendPropertyChanged("BefitLoss");
					this.OnBefitLossChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Notes", DbType="NVarChar(250)")]
		public string Notes
		{
			get
			{
				return this._Notes;
			}
			set
			{
				if ((this._Notes != value))
				{
					this.OnNotesChanging(value);
					this.SendPropertyChanging();
					this._Notes = value;
					this.SendPropertyChanged("Notes");
					this.OnNotesChanged();
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.NahaiteVazziiateMoshtarian")]
	public partial class NahaiteVazziiateMoshtarian
	{
		
		private string _MemBerID;
		
		private string _NameSname2;
		
		private System.Nullable<double> _BedehieMoshtari;
		
		private string _Pardakht;
		
		private System.Nullable<double> _BaLANCE;
		
		private System.Nullable<double> _GIZI;
		
		private string _aaa;
		
		public NahaiteVazziiateMoshtarian()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemBerID", DbType="NVarChar(50)")]
		public string MemBerID
		{
			get
			{
				return this._MemBerID;
			}
			set
			{
				if ((this._MemBerID != value))
				{
					this._MemBerID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NameSname2", DbType="NVarChar(102)")]
		public string NameSname2
		{
			get
			{
				return this._NameSname2;
			}
			set
			{
				if ((this._NameSname2 != value))
				{
					this._NameSname2 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BedehieMoshtari", DbType="Float")]
		public System.Nullable<double> BedehieMoshtari
		{
			get
			{
				return this._BedehieMoshtari;
			}
			set
			{
				if ((this._BedehieMoshtari != value))
				{
					this._BedehieMoshtari = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pardakht", DbType="NVarChar(50)")]
		public string Pardakht
		{
			get
			{
				return this._Pardakht;
			}
			set
			{
				if ((this._Pardakht != value))
				{
					this._Pardakht = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BaLANCE", DbType="Float")]
		public System.Nullable<double> BaLANCE
		{
			get
			{
				return this._BaLANCE;
			}
			set
			{
				if ((this._BaLANCE != value))
				{
					this._BaLANCE = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GIZI", DbType="Float")]
		public System.Nullable<double> GIZI
		{
			get
			{
				return this._GIZI;
			}
			set
			{
				if ((this._GIZI != value))
				{
					this._GIZI = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_aaa", DbType="VarChar(8) NOT NULL", CanBeNull=false)]
		public string aaa
		{
			get
			{
				return this._aaa;
			}
			set
			{
				if ((this._aaa != value))
				{
					this._aaa = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblChekDaryaftani")]
	public partial class xtblChekDaryaftani
	{
		
		private string _CheeckNumber;
		
		private string _BankNameShobeh;
		
		private string _NameSname;
		
		private string _DatOfCheek;
		
		private System.Nullable<double> _MabLaghOfChek;
		
		private System.Nullable<bool> _usDfr;
		
		private string _Pass;
		
		public xtblChekDaryaftani()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheeckNumber", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string CheeckNumber
		{
			get
			{
				return this._CheeckNumber;
			}
			set
			{
				if ((this._CheeckNumber != value))
				{
					this._CheeckNumber = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BankNameShobeh", DbType="NVarChar(80) NOT NULL", CanBeNull=false)]
		public string BankNameShobeh
		{
			get
			{
				return this._BankNameShobeh;
			}
			set
			{
				if ((this._BankNameShobeh != value))
				{
					this._BankNameShobeh = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NameSname", DbType="NVarChar(101)")]
		public string NameSname
		{
			get
			{
				return this._NameSname;
			}
			set
			{
				if ((this._NameSname != value))
				{
					this._NameSname = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DatOfCheek", DbType="NVarChar(10)")]
		public string DatOfCheek
		{
			get
			{
				return this._DatOfCheek;
			}
			set
			{
				if ((this._DatOfCheek != value))
				{
					this._DatOfCheek = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MabLaghOfChek", DbType="Float")]
		public System.Nullable<double> MabLaghOfChek
		{
			get
			{
				return this._MabLaghOfChek;
			}
			set
			{
				if ((this._MabLaghOfChek != value))
				{
					this._MabLaghOfChek = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_usDfr", DbType="Bit")]
		public System.Nullable<bool> usDfr
		{
			get
			{
				return this._usDfr;
			}
			set
			{
				if ((this._usDfr != value))
				{
					this._usDfr = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pass", DbType="VarChar(8) NOT NULL", CanBeNull=false)]
		public string Pass
		{
			get
			{
				return this._Pass;
			}
			set
			{
				if ((this._Pass != value))
				{
					this._Pass = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblKharidByDate")]
	public partial class xtblKharidByDate
	{
		
		private string _DtOfSodoor;
		
		private System.Nullable<double> _KolleKharid;
		
		public xtblKharidByDate()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DtOfSodoor", DbType="NVarChar(50)")]
		public string DtOfSodoor
		{
			get
			{
				return this._DtOfSodoor;
			}
			set
			{
				if ((this._DtOfSodoor != value))
				{
					this._DtOfSodoor = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KolleKharid", DbType="Float")]
		public System.Nullable<double> KolleKharid
		{
			get
			{
				return this._KolleKharid;
			}
			set
			{
				if ((this._KolleKharid != value))
				{
					this._KolleKharid = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblForooshByDate")]
	public partial class xtblForooshByDate
	{
		
		private string _DateForoosh;
		
		private System.Nullable<double> _KolleForoosh;
		
		public xtblForooshByDate()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateForoosh", DbType="NVarChar(50)")]
		public string DateForoosh
		{
			get
			{
				return this._DateForoosh;
			}
			set
			{
				if ((this._DateForoosh != value))
				{
					this._DateForoosh = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KolleForoosh", DbType="Float")]
		public System.Nullable<double> KolleForoosh
		{
			get
			{
				return this._KolleForoosh;
			}
			set
			{
				if ((this._KolleForoosh != value))
				{
					this._KolleForoosh = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblCmbKharid")]
	public partial class xtblCmbKharid
	{
		
		private int _FactoreKaridID;
		
		private string _Expr2;
		
		public xtblCmbKharid()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FactoreKaridID", DbType="Int NOT NULL")]
		public int FactoreKaridID
		{
			get
			{
				return this._FactoreKaridID;
			}
			set
			{
				if ((this._FactoreKaridID != value))
				{
					this._FactoreKaridID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr2", DbType="NVarChar(206)")]
		public string Expr2
		{
			get
			{
				return this._Expr2;
			}
			set
			{
				if ((this._Expr2 != value))
				{
					this._Expr2 = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblCmbForoosh")]
	public partial class xtblCmbForoosh
	{
		
		private int _FactoreForooshID;
		
		private string _info;
		
		public xtblCmbForoosh()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FactoreForooshID", DbType="Int NOT NULL")]
		public int FactoreForooshID
		{
			get
			{
				return this._FactoreForooshID;
			}
			set
			{
				if ((this._FactoreForooshID != value))
				{
					this._FactoreForooshID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_info", DbType="NVarChar(202)")]
		public string info
		{
			get
			{
				return this._info;
			}
			set
			{
				if ((this._info != value))
				{
					this._info = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
