#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_Data")]
	public partial class Lsc_DarookhaneDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void InsertGood(Good instance);
    partial void UpdateGood(Good instance);
    partial void DeleteGood(Good instance);
    #endregion
		
		public Lsc_DarookhaneDataContext() : 
				base(global::Nano_System.Properties.Settings.Default.Nano_DataConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public Lsc_DarookhaneDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public Lsc_DarookhaneDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public Lsc_DarookhaneDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public Lsc_DarookhaneDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public System.Data.Linq.Table<AghlamCatalog> AghlamCatalogs
		{
			get
			{
				return this.GetTable<AghlamCatalog>();
			}
		}
		
		public System.Data.Linq.Table<xtblCheckhaieDaryaftani> xtblCheckhaieDaryaftanis
		{
			get
			{
				return this.GetTable<xtblCheckhaieDaryaftani>();
			}
		}
		
		public System.Data.Linq.Table<xtblCheckPardakhtani> xtblCheckPardakhtanis
		{
			get
			{
				return this.GetTable<xtblCheckPardakhtani>();
			}
		}
		
		public System.Data.Linq.Table<xtblFaktorForosh> xtblFaktorForoshes
		{
			get
			{
				return this.GetTable<xtblFaktorForosh>();
			}
		}
		
		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<xtblDarahayeKharidarishode> xtblDarahayeKharidarishodes
		{
			get
			{
				return this.GetTable<xtblDarahayeKharidarishode>();
			}
		}
		
		public System.Data.Linq.Table<xtblDarohayeForokhteShode> xtblDarohayeForokhteShodes
		{
			get
			{
				return this.GetTable<xtblDarohayeForokhteShode>();
			}
		}
		
		public System.Data.Linq.Table<xtblMojodiDaroo> xtblMojodiDaroos
		{
			get
			{
				return this.GetTable<xtblMojodiDaroo>();
			}
		}
		
		public System.Data.Linq.Table<xtblMoshtareian> xtblMoshtareians
		{
			get
			{
				return this.GetTable<xtblMoshtareian>();
			}
		}
		
		public System.Data.Linq.Table<xtblNahaiateVazeiatMoshtareian> xtblNahaiateVazeiatMoshtareians
		{
			get
			{
				return this.GetTable<xtblNahaiateVazeiatMoshtareian>();
			}
		}
		
		public System.Data.Linq.Table<Good> Goods
		{
			get
			{
				return this.GetTable<Good>();
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AghlamCatalog")]
	public partial class AghlamCatalog
	{
		
		private string _GoodsID;
		
		private string _Title;
		
		private string _Subject;
		
		private string _PublisherName;
		
		private System.Nullable<decimal> _PurchasePrice;
		
		public AghlamCatalog()
		{
		}
		
		[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="_Subject", DbType="NVarChar(25)")]
		public string Subject
		{
			get
			{
				return this._Subject;
			}
			set
			{
				if ((this._Subject != value))
				{
					this._Subject = 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(19,4)")]
		public System.Nullable<decimal> PurchasePrice
		{
			get
			{
				return this._PurchasePrice;
			}
			set
			{
				if ((this._PurchasePrice != value))
				{
					this._PurchasePrice = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblCheckhaieDaryaftani")]
	public partial class xtblCheckhaieDaryaftani
	{
		
		private string _CheeckNumber;
		
		private string _BankNameShobeh;
		
		private string _Expr1;
		
		private string _DatOfCheek;
		
		private System.Nullable<double> _MabLaghOfChek;
		
		private System.Nullable<bool> _usDfr;
		
		public xtblCheckhaieDaryaftani()
		{
		}
		
		[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="_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="_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.TableAttribute(Name="dbo.xtblCheckPardakhtani")]
	public partial class xtblCheckPardakhtani
	{
		
		private string _CheeckNumber;
		
		private string _BankNameShobeh;
		
		private string _Expr1;
		
		private string _DatOfCheek;
		
		private System.Nullable<double> _MabLaghOfChek;
		
		public xtblCheckPardakhtani()
		{
		}
		
		[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="_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="_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.xtblFaktorForosh")]
	public partial class xtblFaktorForosh
	{
		
		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 xtblFaktorForosh()
		{
		}
		
		[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_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.xtblDarahayeKharidarishode")]
	public partial class xtblDarahayeKharidarishode
	{
		
		private string _Title;
		
		private double _Quantity1;
		
		private System.Nullable<double> _PurchPrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private string _NameSname;
		
		private string _DtOfSodoor;
		
		public xtblDarahayeKharidarishode()
		{
		}
		
		[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.xtblDarohayeForokhteShode")]
	public partial class xtblDarohayeForokhteShode
	{
		
		private string _Title;
		
		private string _DtOfSodoor;
		
		private string _Expr1;
		
		private double _Quantity1;
		
		private System.Nullable<double> _salePrice;
		
		private System.Nullable<double> _TotalPRICE;
		
		private System.Nullable<double> _BefitLoss;
		
		public xtblDarohayeForokhteShode()
		{
		}
		
		[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="_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="_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.xtblMojodiDaroo")]
	public partial class xtblMojodiDaroo
	{
		
		private string _Title;
		
		private string _GoodsID;
		
		private System.Nullable<double> _Kharid;
		
		private System.Nullable<double> _Foroosh;
		
		private System.Nullable<double> _MizaneMojoodi;
		
		public xtblMojodiDaroo()
		{
		}
		
		[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="_MizaneMojoodi", DbType="Float")]
		public System.Nullable<double> MizaneMojoodi
		{
			get
			{
				return this._MizaneMojoodi;
			}
			set
			{
				if ((this._MizaneMojoodi != value))
				{
					this._MizaneMojoodi = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblMoshtareian")]
	public partial class xtblMoshtareian
	{
		
		private string _MemBerID;
		
		private string _NameSname;
		
		private string _melliCode;
		
		private string _MemberState;
		
		public xtblMoshtareian()
		{
		}
		
		[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="_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="_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.xtblNahaiateVazeiatMoshtareian")]
	public partial class xtblNahaiateVazeiatMoshtareian
	{
		
		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 xtblNahaiateVazeiatMoshtareian()
		{
		}
		
		[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.Goods")]
	public partial class Good : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private string _GoodsID;
		
		private string _Title;
		
		private System.Nullable<int> _TopicID;
		
		private System.Nullable<double> _CopyrightYear;
		
		private string _ISBNNumber;
		
		private string _PublisherName;
		
		private string _WriterN;
		
		private System.Nullable<decimal> _PurchasePrice;
		
		private System.Nullable<short> _Pages;
		
		private string _Notes;
		
		private bool _TahYeNo;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnGoodsIDChanging(string value);
    partial void OnGoodsIDChanged();
    partial void OnTitleChanging(string value);
    partial void OnTitleChanged();
    partial void OnTopicIDChanging(System.Nullable<int> value);
    partial void OnTopicIDChanged();
    partial void OnCopyrightYearChanging(System.Nullable<double> value);
    partial void OnCopyrightYearChanged();
    partial void OnISBNNumberChanging(string value);
    partial void OnISBNNumberChanged();
    partial void OnPublisherNameChanging(string value);
    partial void OnPublisherNameChanged();
    partial void OnWriterNChanging(string value);
    partial void OnWriterNChanged();
    partial void OnPurchasePriceChanging(System.Nullable<decimal> value);
    partial void OnPurchasePriceChanged();
    partial void OnPagesChanging(System.Nullable<short> value);
    partial void OnPagesChanged();
    partial void OnNotesChanging(string value);
    partial void OnNotesChanged();
    partial void OnTahYeNoChanging(bool value);
    partial void OnTahYeNoChanged();
    #endregion
		
		public Good()
		{
			OnCreated();
		}
		
		[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="_Title", DbType="NVarChar(50)")]
		public string Title
		{
			get
			{
				return this._Title;
			}
			set
			{
				if ((this._Title != value))
				{
					this.OnTitleChanging(value);
					this.SendPropertyChanging();
					this._Title = value;
					this.SendPropertyChanged("Title");
					this.OnTitleChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TopicID", DbType="Int")]
		public System.Nullable<int> TopicID
		{
			get
			{
				return this._TopicID;
			}
			set
			{
				if ((this._TopicID != value))
				{
					this.OnTopicIDChanging(value);
					this.SendPropertyChanging();
					this._TopicID = value;
					this.SendPropertyChanged("TopicID");
					this.OnTopicIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CopyrightYear", DbType="Float")]
		public System.Nullable<double> CopyrightYear
		{
			get
			{
				return this._CopyrightYear;
			}
			set
			{
				if ((this._CopyrightYear != value))
				{
					this.OnCopyrightYearChanging(value);
					this.SendPropertyChanging();
					this._CopyrightYear = value;
					this.SendPropertyChanged("CopyrightYear");
					this.OnCopyrightYearChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISBNNumber", DbType="NVarChar(50)")]
		public string ISBNNumber
		{
			get
			{
				return this._ISBNNumber;
			}
			set
			{
				if ((this._ISBNNumber != value))
				{
					this.OnISBNNumberChanging(value);
					this.SendPropertyChanging();
					this._ISBNNumber = value;
					this.SendPropertyChanged("ISBNNumber");
					this.OnISBNNumberChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PublisherName", DbType="NVarChar(50)")]
		public string PublisherName
		{
			get
			{
				return this._PublisherName;
			}
			set
			{
				if ((this._PublisherName != value))
				{
					this.OnPublisherNameChanging(value);
					this.SendPropertyChanging();
					this._PublisherName = value;
					this.SendPropertyChanged("PublisherName");
					this.OnPublisherNameChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WriterN", DbType="NVarChar(50)")]
		public string WriterN
		{
			get
			{
				return this._WriterN;
			}
			set
			{
				if ((this._WriterN != value))
				{
					this.OnWriterNChanging(value);
					this.SendPropertyChanging();
					this._WriterN = value;
					this.SendPropertyChanged("WriterN");
					this.OnWriterNChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchasePrice", DbType="Decimal(19,4)")]
		public System.Nullable<decimal> PurchasePrice
		{
			get
			{
				return this._PurchasePrice;
			}
			set
			{
				if ((this._PurchasePrice != value))
				{
					this.OnPurchasePriceChanging(value);
					this.SendPropertyChanging();
					this._PurchasePrice = value;
					this.SendPropertyChanged("PurchasePrice");
					this.OnPurchasePriceChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pages", DbType="SmallInt")]
		public System.Nullable<short> Pages
		{
			get
			{
				return this._Pages;
			}
			set
			{
				if ((this._Pages != value))
				{
					this.OnPagesChanging(value);
					this.SendPropertyChanging();
					this._Pages = value;
					this.SendPropertyChanged("Pages");
					this.OnPagesChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Notes", DbType="NText", UpdateCheck=UpdateCheck.Never)]
		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();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TahYeNo", DbType="Bit NOT NULL")]
		public bool TahYeNo
		{
			get
			{
				return this._TahYeNo;
			}
			set
			{
				if ((this._TahYeNo != value))
				{
					this.OnTahYeNoChanging(value);
					this.SendPropertyChanging();
					this._TahYeNo = value;
					this.SendPropertyChanged("TahYeNo");
					this.OnTahYeNoChanged();
				}
			}
		}
		
		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));
			}
		}
	}
}
#pragma warning restore 1591
