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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;



[System.Data.Linq.Mapping.DatabaseAttribute(Name="WareHouseDB")]
public partial class LSC_WareHouseDataContext : System.Data.Linq.DataContext
{
	
	private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
	
  #region Extensibility Method Definitions
  partial void OnCreated();
  partial void InserttblLog(tblLog instance);
  partial void UpdatetblLog(tblLog instance);
  partial void DeletetblLog(tblLog instance);
  partial void InserttblWareHouseName(tblWareHouseName instance);
  partial void UpdatetblWareHouseName(tblWareHouseName instance);
  partial void DeletetblWareHouseName(tblWareHouseName instance);
  partial void InserttblAssetUnit(tblAssetUnit instance);
  partial void UpdatetblAssetUnit(tblAssetUnit instance);
  partial void DeletetblAssetUnit(tblAssetUnit instance);
  partial void InserttblCompanyUnit(tblCompanyUnit instance);
  partial void UpdatetblCompanyUnit(tblCompanyUnit instance);
  partial void DeletetblCompanyUnit(tblCompanyUnit instance);
  partial void InserttblPageContent(tblPageContent instance);
  partial void UpdatetblPageContent(tblPageContent instance);
  partial void DeletetblPageContent(tblPageContent instance);
  partial void InserttblProvider(tblProvider instance);
  partial void UpdatetblProvider(tblProvider instance);
  partial void DeletetblProvider(tblProvider instance);
  partial void InserttblAssetCategory(tblAssetCategory instance);
  partial void UpdatetblAssetCategory(tblAssetCategory instance);
  partial void DeletetblAssetCategory(tblAssetCategory instance);
  partial void InserttblWhAsset(tblWhAsset instance);
  partial void UpdatetblWhAsset(tblWhAsset instance);
  partial void DeletetblWhAsset(tblWhAsset instance);
  partial void InserttblOrder(tblOrder instance);
  partial void UpdatetblOrder(tblOrder instance);
  partial void DeletetblOrder(tblOrder instance);
  partial void InserttblDeliverdAsset(tblDeliverdAsset instance);
  partial void UpdatetblDeliverdAsset(tblDeliverdAsset instance);
  partial void DeletetblDeliverdAsset(tblDeliverdAsset instance);
  partial void InserttblOrderDetail(tblOrderDetail instance);
  partial void UpdatetblOrderDetail(tblOrderDetail instance);
  partial void DeletetblOrderDetail(tblOrderDetail instance);
  partial void InserttblMarjoee(tblMarjoee instance);
  partial void UpdatetblMarjoee(tblMarjoee instance);
  partial void DeletetblMarjoee(tblMarjoee instance);
  partial void InserttblAssetState(tblAssetState instance);
  partial void UpdatetblAssetState(tblAssetState instance);
  partial void DeletetblAssetState(tblAssetState instance);
  partial void InserttblPuchOrder(tblPuchOrder instance);
  partial void UpdatetblPuchOrder(tblPuchOrder instance);
  partial void DeletetblPuchOrder(tblPuchOrder instance);
  partial void InserttblCompany(tblCompany instance);
  partial void UpdatetblCompany(tblCompany instance);
  partial void DeletetblCompany(tblCompany instance);
  partial void InserttblProjectAssetDetail(tblProjectAssetDetail instance);
  partial void UpdatetblProjectAssetDetail(tblProjectAssetDetail instance);
  partial void DeletetblProjectAssetDetail(tblProjectAssetDetail instance);
  partial void InserttblProject(tblProject instance);
  partial void UpdatetblProject(tblProject instance);
  partial void DeletetblProject(tblProject instance);
  partial void InserttblWhAssetsGe(tblWhAssetsGe instance);
  partial void UpdatetblWhAssetsGe(tblWhAssetsGe instance);
  partial void DeletetblWhAssetsGe(tblWhAssetsGe instance);
  partial void InserttblDeliverAssetsGe(tblDeliverAssetsGe instance);
  partial void UpdatetblDeliverAssetsGe(tblDeliverAssetsGe instance);
  partial void DeletetblDeliverAssetsGe(tblDeliverAssetsGe instance);
  partial void InserttblUserType(tblUserType instance);
  partial void UpdatetblUserType(tblUserType instance);
  partial void DeletetblUserType(tblUserType instance);
  partial void InserttblUser(tblUser instance);
  partial void UpdatetblUser(tblUser instance);
  partial void DeletetblUser(tblUser instance);
  partial void InserttblPagePermision(tblPagePermision instance);
  partial void UpdatetblPagePermision(tblPagePermision instance);
  partial void DeletetblPagePermision(tblPagePermision instance);
  #endregion
	
	public LSC_WareHouseDataContext() : 
			base(global::System.Configuration.ConfigurationManager.ConnectionStrings["WareHouseDBConnectionString"].ConnectionString, mappingSource)
	{
		OnCreated();
	}
	
	public LSC_WareHouseDataContext(string connection) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public LSC_WareHouseDataContext(System.Data.IDbConnection connection) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public LSC_WareHouseDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public LSC_WareHouseDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public System.Data.Linq.Table<tblLog> tblLogs
	{
		get
		{
			return this.GetTable<tblLog>();
		}
	}
	
	public System.Data.Linq.Table<tblWareHouseName> tblWareHouseNames
	{
		get
		{
			return this.GetTable<tblWareHouseName>();
		}
	}
	
	public System.Data.Linq.Table<tblAssetUnit> tblAssetUnits
	{
		get
		{
			return this.GetTable<tblAssetUnit>();
		}
	}
	
	public System.Data.Linq.Table<tblCompanyUnit> tblCompanyUnits
	{
		get
		{
			return this.GetTable<tblCompanyUnit>();
		}
	}
	
	public System.Data.Linq.Table<tblPageContent> tblPageContents
	{
		get
		{
			return this.GetTable<tblPageContent>();
		}
	}
	
	public System.Data.Linq.Table<tblProvider> tblProviders
	{
		get
		{
			return this.GetTable<tblProvider>();
		}
	}
	
	public System.Data.Linq.Table<tblAssetCategory> tblAssetCategories
	{
		get
		{
			return this.GetTable<tblAssetCategory>();
		}
	}
	
	public System.Data.Linq.Table<tblWhAsset> tblWhAssets
	{
		get
		{
			return this.GetTable<tblWhAsset>();
		}
	}
	
	public System.Data.Linq.Table<xtblAssetProvider> xtblAssetProviders
	{
		get
		{
			return this.GetTable<xtblAssetProvider>();
		}
	}
	
	public System.Data.Linq.Table<tblOrder> tblOrders
	{
		get
		{
			return this.GetTable<tblOrder>();
		}
	}
	
	public System.Data.Linq.Table<xtblOrder> xtblOrders
	{
		get
		{
			return this.GetTable<xtblOrder>();
		}
	}
	
	public System.Data.Linq.Table<xtblOrdersCmb> xtblOrdersCmbs
	{
		get
		{
			return this.GetTable<xtblOrdersCmb>();
		}
	}
	
	public System.Data.Linq.Table<xtblOrderDetailsDrp> xtblOrderDetailsDrps
	{
		get
		{
			return this.GetTable<xtblOrderDetailsDrp>();
		}
	}
	
	public System.Data.Linq.Table<xtblUsersPurchedNotDeliver> xtblUsersPurchedNotDelivers
	{
		get
		{
			return this.GetTable<xtblUsersPurchedNotDeliver>();
		}
	}
	
	public System.Data.Linq.Table<xtblOrderDetailsPurcehdNotDelivered> xtblOrderDetailsPurcehdNotDelivereds
	{
		get
		{
			return this.GetTable<xtblOrderDetailsPurcehdNotDelivered>();
		}
	}
	
	public System.Data.Linq.Table<tblDeliverdAsset> tblDeliverdAssets
	{
		get
		{
			return this.GetTable<tblDeliverdAsset>();
		}
	}
	
	public System.Data.Linq.Table<tblOrderDetail> tblOrderDetails
	{
		get
		{
			return this.GetTable<tblOrderDetail>();
		}
	}
	
	public System.Data.Linq.Table<tblMarjoee> tblMarjoees
	{
		get
		{
			return this.GetTable<tblMarjoee>();
		}
	}
	
	public System.Data.Linq.Table<tblAssetState> tblAssetStates
	{
		get
		{
			return this.GetTable<tblAssetState>();
		}
	}
	
	public System.Data.Linq.Table<xtbOrderDetailPurchedDeliveredNotMarjoee> xtbOrderDetailPurchedDeliveredNotMarjoees
	{
		get
		{
			return this.GetTable<xtbOrderDetailPurchedDeliveredNotMarjoee>();
		}
	}
	
	public System.Data.Linq.Table<xtblUserPurchedDeliveredNotMarjoee> xtblUserPurchedDeliveredNotMarjoees
	{
		get
		{
			return this.GetTable<xtblUserPurchedDeliveredNotMarjoee>();
		}
	}
	
	public System.Data.Linq.Table<xtblNameAndFamily> xtblNameAndFamilies
	{
		get
		{
			return this.GetTable<xtblNameAndFamily>();
		}
	}
	
	public System.Data.Linq.Table<xtblDeliverNameUser> xtblDeliverNameUsers
	{
		get
		{
			return this.GetTable<xtblDeliverNameUser>();
		}
	}
	
	public System.Data.Linq.Table<xtblMarjoeeHaDetail> xtblMarjoeeHaDetails
	{
		get
		{
			return this.GetTable<xtblMarjoeeHaDetail>();
		}
	}
	
	public System.Data.Linq.Table<xtblStokeAsset> xtblStokeAssets
	{
		get
		{
			return this.GetTable<xtblStokeAsset>();
		}
	}
	
	public System.Data.Linq.Table<tblPuchOrder> tblPuchOrders
	{
		get
		{
			return this.GetTable<tblPuchOrder>();
		}
	}
	
	public System.Data.Linq.Table<tblCompany> tblCompanies
	{
		get
		{
			return this.GetTable<tblCompany>();
		}
	}
	
	public System.Data.Linq.Table<tblProjectAssetDetail> tblProjectAssetDetails
	{
		get
		{
			return this.GetTable<tblProjectAssetDetail>();
		}
	}
	
	public System.Data.Linq.Table<xtblDefineCompany> xtblDefineCompanies
	{
		get
		{
			return this.GetTable<xtblDefineCompany>();
		}
	}
	
	public System.Data.Linq.Table<tblProject> tblProjects
	{
		get
		{
			return this.GetTable<tblProject>();
		}
	}
	
	public System.Data.Linq.Table<xtblOrderDetailPurAndNotTahvil> xtblOrderDetailPurAndNotTahvils
	{
		get
		{
			return this.GetTable<xtblOrderDetailPurAndNotTahvil>();
		}
	}
	
	public System.Data.Linq.Table<tblWhAssetsGe> tblWhAssetsGes
	{
		get
		{
			return this.GetTable<tblWhAssetsGe>();
		}
	}
	
	public System.Data.Linq.Table<xtblAssetInfoDrp> xtblAssetInfoDrps
	{
		get
		{
			return this.GetTable<xtblAssetInfoDrp>();
		}
	}
	
	public System.Data.Linq.Table<xtblAssetsAndWarwHouse> xtblAssetsAndWarwHouses
	{
		get
		{
			return this.GetTable<xtblAssetsAndWarwHouse>();
		}
	}
	
	public System.Data.Linq.Table<tblDeliverAssetsGe> tblDeliverAssetsGes
	{
		get
		{
			return this.GetTable<tblDeliverAssetsGe>();
		}
	}
	
	public System.Data.Linq.Table<xtblMojodiAssetsGe> xtblMojodiAssetsGes
	{
		get
		{
			return this.GetTable<xtblMojodiAssetsGe>();
		}
	}
	
	public System.Data.Linq.Table<tblUserType> tblUserTypes
	{
		get
		{
			return this.GetTable<tblUserType>();
		}
	}
	
	public System.Data.Linq.Table<tblUser> tblUsers
	{
		get
		{
			return this.GetTable<tblUser>();
		}
	}
	
	public System.Data.Linq.Table<xtlDrpMandeh> xtlDrpMandehs
	{
		get
		{
			return this.GetTable<xtlDrpMandeh>();
		}
	}
	
	public System.Data.Linq.Table<tblPagePermision> tblPagePermisions
	{
		get
		{
			return this.GetTable<tblPagePermision>();
		}
	}
}

[Table(Name="dbo.tblLogs")]
public partial class tblLog : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _LogID;
	
	private System.DateTime _LogDate;
	
	private string _LogTime;
	
	private string _LogDescription;
	
	private string _LogedUserName;
	
	private string _LinkPath;
	
	private EntityRef<tblUser> _tblUser;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnLogIDChanging(decimal value);
    partial void OnLogIDChanged();
    partial void OnLogDateChanging(System.DateTime value);
    partial void OnLogDateChanged();
    partial void OnLogTimeChanging(string value);
    partial void OnLogTimeChanged();
    partial void OnLogDescriptionChanging(string value);
    partial void OnLogDescriptionChanged();
    partial void OnLogedUserNameChanging(string value);
    partial void OnLogedUserNameChanged();
    partial void OnLinkPathChanging(string value);
    partial void OnLinkPathChanged();
    #endregion
	
	public tblLog()
	{
		this._tblUser = default(EntityRef<tblUser>);
		OnCreated();
	}
	
	[Column(Storage="_LogID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public decimal LogID
	{
		get
		{
			return this._LogID;
		}
		set
		{
			if ((this._LogID != value))
			{
				this.OnLogIDChanging(value);
				this.SendPropertyChanging();
				this._LogID = value;
				this.SendPropertyChanged("LogID");
				this.OnLogIDChanged();
			}
		}
	}
	
	[Column(Storage="_LogDate", DbType="DateTime NOT NULL")]
	public System.DateTime LogDate
	{
		get
		{
			return this._LogDate;
		}
		set
		{
			if ((this._LogDate != value))
			{
				this.OnLogDateChanging(value);
				this.SendPropertyChanging();
				this._LogDate = value;
				this.SendPropertyChanged("LogDate");
				this.OnLogDateChanged();
			}
		}
	}
	
	[Column(Storage="_LogTime", DbType="NVarChar(5) NOT NULL", CanBeNull=false)]
	public string LogTime
	{
		get
		{
			return this._LogTime;
		}
		set
		{
			if ((this._LogTime != value))
			{
				this.OnLogTimeChanging(value);
				this.SendPropertyChanging();
				this._LogTime = value;
				this.SendPropertyChanged("LogTime");
				this.OnLogTimeChanged();
			}
		}
	}
	
	[Column(Storage="_LogDescription", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
	public string LogDescription
	{
		get
		{
			return this._LogDescription;
		}
		set
		{
			if ((this._LogDescription != value))
			{
				this.OnLogDescriptionChanging(value);
				this.SendPropertyChanging();
				this._LogDescription = value;
				this.SendPropertyChanged("LogDescription");
				this.OnLogDescriptionChanged();
			}
		}
	}
	
	[Column(Storage="_LogedUserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string LogedUserName
	{
		get
		{
			return this._LogedUserName;
		}
		set
		{
			if ((this._LogedUserName != value))
			{
				if (this._tblUser.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnLogedUserNameChanging(value);
				this.SendPropertyChanging();
				this._LogedUserName = value;
				this.SendPropertyChanged("LogedUserName");
				this.OnLogedUserNameChanged();
			}
		}
	}
	
	[Column(Storage="_LinkPath", DbType="NVarChar(255) NOT NULL", CanBeNull=false)]
	public string LinkPath
	{
		get
		{
			return this._LinkPath;
		}
		set
		{
			if ((this._LinkPath != value))
			{
				this.OnLinkPathChanging(value);
				this.SendPropertyChanging();
				this._LinkPath = value;
				this.SendPropertyChanged("LinkPath");
				this.OnLinkPathChanged();
			}
		}
	}
	
	[Association(Name="tblUser_tblLog", Storage="_tblUser", ThisKey="LogedUserName", OtherKey="UserName", IsForeignKey=true)]
	public tblUser tblUser
	{
		get
		{
			return this._tblUser.Entity;
		}
		set
		{
			tblUser previousValue = this._tblUser.Entity;
			if (((previousValue != value) 
						|| (this._tblUser.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblUser.Entity = null;
					previousValue.tblLogs.Remove(this);
				}
				this._tblUser.Entity = value;
				if ((value != null))
				{
					value.tblLogs.Add(this);
					this._LogedUserName = value.UserName;
				}
				else
				{
					this._LogedUserName = default(string);
				}
				this.SendPropertyChanged("tblUser");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.tblWareHouseNames")]
public partial class tblWareHouseName : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _WarwHouseID;
	
	private string _WarHouseDescription;
	
	private EntitySet<tblPuchOrder> _tblPuchOrders;
	
	private EntitySet<tblWhAssetsGe> _tblWhAssetsGes;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnWarwHouseIDChanging(int value);
    partial void OnWarwHouseIDChanged();
    partial void OnWarHouseDescriptionChanging(string value);
    partial void OnWarHouseDescriptionChanged();
    #endregion
	
	public tblWareHouseName()
	{
		this._tblPuchOrders = new EntitySet<tblPuchOrder>(new Action<tblPuchOrder>(this.attach_tblPuchOrders), new Action<tblPuchOrder>(this.detach_tblPuchOrders));
		this._tblWhAssetsGes = new EntitySet<tblWhAssetsGe>(new Action<tblWhAssetsGe>(this.attach_tblWhAssetsGes), new Action<tblWhAssetsGe>(this.detach_tblWhAssetsGes));
		OnCreated();
	}
	
	[Column(Storage="_WarwHouseID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int WarwHouseID
	{
		get
		{
			return this._WarwHouseID;
		}
		set
		{
			if ((this._WarwHouseID != value))
			{
				this.OnWarwHouseIDChanging(value);
				this.SendPropertyChanging();
				this._WarwHouseID = value;
				this.SendPropertyChanged("WarwHouseID");
				this.OnWarwHouseIDChanged();
			}
		}
	}
	
	[Column(Storage="_WarHouseDescription", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string WarHouseDescription
	{
		get
		{
			return this._WarHouseDescription;
		}
		set
		{
			if ((this._WarHouseDescription != value))
			{
				this.OnWarHouseDescriptionChanging(value);
				this.SendPropertyChanging();
				this._WarHouseDescription = value;
				this.SendPropertyChanged("WarHouseDescription");
				this.OnWarHouseDescriptionChanged();
			}
		}
	}
	
	[Association(Name="tblWareHouseName_tblPuchOrder", Storage="_tblPuchOrders", ThisKey="WarwHouseID", OtherKey="WarwHouseID")]
	public EntitySet<tblPuchOrder> tblPuchOrders
	{
		get
		{
			return this._tblPuchOrders;
		}
		set
		{
			this._tblPuchOrders.Assign(value);
		}
	}
	
	[Association(Name="tblWareHouseName_tblWhAssetsGe", Storage="_tblWhAssetsGes", ThisKey="WarwHouseID", OtherKey="WarwHouseID")]
	public EntitySet<tblWhAssetsGe> tblWhAssetsGes
	{
		get
		{
			return this._tblWhAssetsGes;
		}
		set
		{
			this._tblWhAssetsGes.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblPuchOrders(tblPuchOrder entity)
	{
		this.SendPropertyChanging();
		entity.tblWareHouseName = this;
	}
	
	private void detach_tblPuchOrders(tblPuchOrder entity)
	{
		this.SendPropertyChanging();
		entity.tblWareHouseName = null;
	}
	
	private void attach_tblWhAssetsGes(tblWhAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblWareHouseName = this;
	}
	
	private void detach_tblWhAssetsGes(tblWhAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblWareHouseName = null;
	}
}

[Table(Name="dbo.tblAssetUnits")]
public partial class tblAssetUnit : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _AssetUnitID;
	
	private string _AssetUnitDescrition;
	
	private EntitySet<tblWhAsset> _tblWhAssets;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnAssetUnitIDChanging(int value);
    partial void OnAssetUnitIDChanged();
    partial void OnAssetUnitDescritionChanging(string value);
    partial void OnAssetUnitDescritionChanged();
    #endregion
	
	public tblAssetUnit()
	{
		this._tblWhAssets = new EntitySet<tblWhAsset>(new Action<tblWhAsset>(this.attach_tblWhAssets), new Action<tblWhAsset>(this.detach_tblWhAssets));
		OnCreated();
	}
	
	[Column(Storage="_AssetUnitID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int AssetUnitID
	{
		get
		{
			return this._AssetUnitID;
		}
		set
		{
			if ((this._AssetUnitID != value))
			{
				this.OnAssetUnitIDChanging(value);
				this.SendPropertyChanging();
				this._AssetUnitID = value;
				this.SendPropertyChanged("AssetUnitID");
				this.OnAssetUnitIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this.OnAssetUnitDescritionChanging(value);
				this.SendPropertyChanging();
				this._AssetUnitDescrition = value;
				this.SendPropertyChanged("AssetUnitDescrition");
				this.OnAssetUnitDescritionChanged();
			}
		}
	}
	
	[Association(Name="tblAssetUnit_tblWhAsset", Storage="_tblWhAssets", ThisKey="AssetUnitID", OtherKey="AssetUnitID")]
	public EntitySet<tblWhAsset> tblWhAssets
	{
		get
		{
			return this._tblWhAssets;
		}
		set
		{
			this._tblWhAssets.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblWhAssets(tblWhAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblAssetUnit = this;
	}
	
	private void detach_tblWhAssets(tblWhAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblAssetUnit = null;
	}
}

[Table(Name="dbo.tblCompanyUnits")]
public partial class tblCompanyUnit : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _CompanyUnitID;
	
	private string _CompanyUnitName;
	
	private EntitySet<tblUser> _tblUsers;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnCompanyUnitIDChanging(int value);
    partial void OnCompanyUnitIDChanged();
    partial void OnCompanyUnitNameChanging(string value);
    partial void OnCompanyUnitNameChanged();
    #endregion
	
	public tblCompanyUnit()
	{
		this._tblUsers = new EntitySet<tblUser>(new Action<tblUser>(this.attach_tblUsers), new Action<tblUser>(this.detach_tblUsers));
		OnCreated();
	}
	
	[Column(Storage="_CompanyUnitID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int CompanyUnitID
	{
		get
		{
			return this._CompanyUnitID;
		}
		set
		{
			if ((this._CompanyUnitID != value))
			{
				this.OnCompanyUnitIDChanging(value);
				this.SendPropertyChanging();
				this._CompanyUnitID = value;
				this.SendPropertyChanged("CompanyUnitID");
				this.OnCompanyUnitIDChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyUnitName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string CompanyUnitName
	{
		get
		{
			return this._CompanyUnitName;
		}
		set
		{
			if ((this._CompanyUnitName != value))
			{
				this.OnCompanyUnitNameChanging(value);
				this.SendPropertyChanging();
				this._CompanyUnitName = value;
				this.SendPropertyChanged("CompanyUnitName");
				this.OnCompanyUnitNameChanged();
			}
		}
	}
	
	[Association(Name="tblCompanyUnit_tblUser", Storage="_tblUsers", ThisKey="CompanyUnitID", OtherKey="CompanyUnitID")]
	public EntitySet<tblUser> tblUsers
	{
		get
		{
			return this._tblUsers;
		}
		set
		{
			this._tblUsers.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblUsers(tblUser entity)
	{
		this.SendPropertyChanging();
		entity.tblCompanyUnit = this;
	}
	
	private void detach_tblUsers(tblUser entity)
	{
		this.SendPropertyChanging();
		entity.tblCompanyUnit = null;
	}
}

[Table(Name="dbo.tblPageContents")]
public partial class tblPageContent : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _PageContentID;
	
	private string _PageContentText;
	
	private string _PageName;
	
	private string _PageTitle;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnPageContentIDChanging(int value);
    partial void OnPageContentIDChanged();
    partial void OnPageContentTextChanging(string value);
    partial void OnPageContentTextChanged();
    partial void OnPageNameChanging(string value);
    partial void OnPageNameChanged();
    partial void OnPageTitleChanging(string value);
    partial void OnPageTitleChanged();
    #endregion
	
	public tblPageContent()
	{
		OnCreated();
	}
	
	[Column(Storage="_PageContentID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int PageContentID
	{
		get
		{
			return this._PageContentID;
		}
		set
		{
			if ((this._PageContentID != value))
			{
				this.OnPageContentIDChanging(value);
				this.SendPropertyChanging();
				this._PageContentID = value;
				this.SendPropertyChanged("PageContentID");
				this.OnPageContentIDChanged();
			}
		}
	}
	
	[Column(Storage="_PageContentText", DbType="NText", UpdateCheck=UpdateCheck.Never)]
	public string PageContentText
	{
		get
		{
			return this._PageContentText;
		}
		set
		{
			if ((this._PageContentText != value))
			{
				this.OnPageContentTextChanging(value);
				this.SendPropertyChanging();
				this._PageContentText = value;
				this.SendPropertyChanged("PageContentText");
				this.OnPageContentTextChanged();
			}
		}
	}
	
	[Column(Storage="_PageName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string PageName
	{
		get
		{
			return this._PageName;
		}
		set
		{
			if ((this._PageName != value))
			{
				this.OnPageNameChanging(value);
				this.SendPropertyChanging();
				this._PageName = value;
				this.SendPropertyChanged("PageName");
				this.OnPageNameChanged();
			}
		}
	}
	
	[Column(Storage="_PageTitle", DbType="NVarChar(100)")]
	public string PageTitle
	{
		get
		{
			return this._PageTitle;
		}
		set
		{
			if ((this._PageTitle != value))
			{
				this.OnPageTitleChanging(value);
				this.SendPropertyChanging();
				this._PageTitle = value;
				this.SendPropertyChanged("PageTitle");
				this.OnPageTitleChanged();
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.tblProviders")]
public partial class tblProvider : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _ProviderID;
	
	private string _ProviderName;
	
	private string _ProviderSName;
	
	private string _ProviderEmail;
	
	private string _ProviderPhones;
	
	private string _ProviderFaxes;
	
	private string _ProviderMobiles;
	
	private string _ProviderPostalAddress;
	
	private EntitySet<tblWhAsset> _tblWhAssets;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnProviderIDChanging(int value);
    partial void OnProviderIDChanged();
    partial void OnProviderNameChanging(string value);
    partial void OnProviderNameChanged();
    partial void OnProviderSNameChanging(string value);
    partial void OnProviderSNameChanged();
    partial void OnProviderEmailChanging(string value);
    partial void OnProviderEmailChanged();
    partial void OnProviderPhonesChanging(string value);
    partial void OnProviderPhonesChanged();
    partial void OnProviderFaxesChanging(string value);
    partial void OnProviderFaxesChanged();
    partial void OnProviderMobilesChanging(string value);
    partial void OnProviderMobilesChanged();
    partial void OnProviderPostalAddressChanging(string value);
    partial void OnProviderPostalAddressChanged();
    #endregion
	
	public tblProvider()
	{
		this._tblWhAssets = new EntitySet<tblWhAsset>(new Action<tblWhAsset>(this.attach_tblWhAssets), new Action<tblWhAsset>(this.detach_tblWhAssets));
		OnCreated();
	}
	
	[Column(Storage="_ProviderID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int ProviderID
	{
		get
		{
			return this._ProviderID;
		}
		set
		{
			if ((this._ProviderID != value))
			{
				this.OnProviderIDChanging(value);
				this.SendPropertyChanging();
				this._ProviderID = value;
				this.SendPropertyChanged("ProviderID");
				this.OnProviderIDChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string ProviderName
	{
		get
		{
			return this._ProviderName;
		}
		set
		{
			if ((this._ProviderName != value))
			{
				this.OnProviderNameChanging(value);
				this.SendPropertyChanging();
				this._ProviderName = value;
				this.SendPropertyChanged("ProviderName");
				this.OnProviderNameChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderSName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string ProviderSName
	{
		get
		{
			return this._ProviderSName;
		}
		set
		{
			if ((this._ProviderSName != value))
			{
				this.OnProviderSNameChanging(value);
				this.SendPropertyChanging();
				this._ProviderSName = value;
				this.SendPropertyChanged("ProviderSName");
				this.OnProviderSNameChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderEmail", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string ProviderEmail
	{
		get
		{
			return this._ProviderEmail;
		}
		set
		{
			if ((this._ProviderEmail != value))
			{
				this.OnProviderEmailChanging(value);
				this.SendPropertyChanging();
				this._ProviderEmail = value;
				this.SendPropertyChanged("ProviderEmail");
				this.OnProviderEmailChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderPhones", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
	public string ProviderPhones
	{
		get
		{
			return this._ProviderPhones;
		}
		set
		{
			if ((this._ProviderPhones != value))
			{
				this.OnProviderPhonesChanging(value);
				this.SendPropertyChanging();
				this._ProviderPhones = value;
				this.SendPropertyChanged("ProviderPhones");
				this.OnProviderPhonesChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderFaxes", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
	public string ProviderFaxes
	{
		get
		{
			return this._ProviderFaxes;
		}
		set
		{
			if ((this._ProviderFaxes != value))
			{
				this.OnProviderFaxesChanging(value);
				this.SendPropertyChanging();
				this._ProviderFaxes = value;
				this.SendPropertyChanged("ProviderFaxes");
				this.OnProviderFaxesChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderMobiles", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
	public string ProviderMobiles
	{
		get
		{
			return this._ProviderMobiles;
		}
		set
		{
			if ((this._ProviderMobiles != value))
			{
				this.OnProviderMobilesChanging(value);
				this.SendPropertyChanging();
				this._ProviderMobiles = value;
				this.SendPropertyChanged("ProviderMobiles");
				this.OnProviderMobilesChanged();
			}
		}
	}
	
	[Column(Storage="_ProviderPostalAddress", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string ProviderPostalAddress
	{
		get
		{
			return this._ProviderPostalAddress;
		}
		set
		{
			if ((this._ProviderPostalAddress != value))
			{
				this.OnProviderPostalAddressChanging(value);
				this.SendPropertyChanging();
				this._ProviderPostalAddress = value;
				this.SendPropertyChanged("ProviderPostalAddress");
				this.OnProviderPostalAddressChanged();
			}
		}
	}
	
	[Association(Name="tblProvider_tblWhAsset", Storage="_tblWhAssets", ThisKey="ProviderID", OtherKey="AssetProviderID")]
	public EntitySet<tblWhAsset> tblWhAssets
	{
		get
		{
			return this._tblWhAssets;
		}
		set
		{
			this._tblWhAssets.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblWhAssets(tblWhAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblProvider = this;
	}
	
	private void detach_tblWhAssets(tblWhAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblProvider = null;
	}
}

[Table(Name="dbo.tblAssetCategory")]
public partial class tblAssetCategory : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _AssetCategoryID;
	
	private string _AssetCategoryDescription;
	
	private EntitySet<tblWhAsset> _tblWhAssets;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnAssetCategoryIDChanging(int value);
    partial void OnAssetCategoryIDChanged();
    partial void OnAssetCategoryDescriptionChanging(string value);
    partial void OnAssetCategoryDescriptionChanged();
    #endregion
	
	public tblAssetCategory()
	{
		this._tblWhAssets = new EntitySet<tblWhAsset>(new Action<tblWhAsset>(this.attach_tblWhAssets), new Action<tblWhAsset>(this.detach_tblWhAssets));
		OnCreated();
	}
	
	[Column(Storage="_AssetCategoryID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int AssetCategoryID
	{
		get
		{
			return this._AssetCategoryID;
		}
		set
		{
			if ((this._AssetCategoryID != value))
			{
				this.OnAssetCategoryIDChanging(value);
				this.SendPropertyChanging();
				this._AssetCategoryID = value;
				this.SendPropertyChanged("AssetCategoryID");
				this.OnAssetCategoryIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetCategoryDescription", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetCategoryDescription
	{
		get
		{
			return this._AssetCategoryDescription;
		}
		set
		{
			if ((this._AssetCategoryDescription != value))
			{
				this.OnAssetCategoryDescriptionChanging(value);
				this.SendPropertyChanging();
				this._AssetCategoryDescription = value;
				this.SendPropertyChanged("AssetCategoryDescription");
				this.OnAssetCategoryDescriptionChanged();
			}
		}
	}
	
	[Association(Name="tblAssetCategory_tblWhAsset", Storage="_tblWhAssets", ThisKey="AssetCategoryID", OtherKey="AssetCategoryID")]
	public EntitySet<tblWhAsset> tblWhAssets
	{
		get
		{
			return this._tblWhAssets;
		}
		set
		{
			this._tblWhAssets.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblWhAssets(tblWhAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblAssetCategory = this;
	}
	
	private void detach_tblWhAssets(tblWhAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblAssetCategory = null;
	}
}

[Table(Name="dbo.tblWhAssets")]
public partial class tblWhAsset : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private int _AssetUnitID;
	
	private int _AssetCategoryID;
	
	private int _AssetProviderID;
	
	private double _AssetOrderPoint;
	
	private EntitySet<tblOrderDetail> _tblOrderDetails;
	
	private EntitySet<tblWhAssetsGe> _tblWhAssetsGes;
	
	private EntitySet<tblDeliverAssetsGe> _tblDeliverAssetsGes;
	
	private EntityRef<tblAssetCategory> _tblAssetCategory;
	
	private EntityRef<tblAssetUnit> _tblAssetUnit;
	
	private EntityRef<tblProvider> _tblProvider;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnAssetIDChanging(decimal value);
    partial void OnAssetIDChanged();
    partial void OnAssetNameChanging(string value);
    partial void OnAssetNameChanged();
    partial void OnAssetUnitIDChanging(int value);
    partial void OnAssetUnitIDChanged();
    partial void OnAssetCategoryIDChanging(int value);
    partial void OnAssetCategoryIDChanged();
    partial void OnAssetProviderIDChanging(int value);
    partial void OnAssetProviderIDChanged();
    partial void OnAssetOrderPointChanging(double value);
    partial void OnAssetOrderPointChanged();
    #endregion
	
	public tblWhAsset()
	{
		this._tblOrderDetails = new EntitySet<tblOrderDetail>(new Action<tblOrderDetail>(this.attach_tblOrderDetails), new Action<tblOrderDetail>(this.detach_tblOrderDetails));
		this._tblWhAssetsGes = new EntitySet<tblWhAssetsGe>(new Action<tblWhAssetsGe>(this.attach_tblWhAssetsGes), new Action<tblWhAssetsGe>(this.detach_tblWhAssetsGes));
		this._tblDeliverAssetsGes = new EntitySet<tblDeliverAssetsGe>(new Action<tblDeliverAssetsGe>(this.attach_tblDeliverAssetsGes), new Action<tblDeliverAssetsGe>(this.detach_tblDeliverAssetsGes));
		this._tblAssetCategory = default(EntityRef<tblAssetCategory>);
		this._tblAssetUnit = default(EntityRef<tblAssetUnit>);
		this._tblProvider = default(EntityRef<tblProvider>);
		OnCreated();
	}
	
	[Column(Storage="_AssetID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this.OnAssetIDChanging(value);
				this.SendPropertyChanging();
				this._AssetID = value;
				this.SendPropertyChanged("AssetID");
				this.OnAssetIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this.OnAssetNameChanging(value);
				this.SendPropertyChanging();
				this._AssetName = value;
				this.SendPropertyChanged("AssetName");
				this.OnAssetNameChanged();
			}
		}
	}
	
	[Column(Storage="_AssetUnitID", DbType="Int NOT NULL")]
	public int AssetUnitID
	{
		get
		{
			return this._AssetUnitID;
		}
		set
		{
			if ((this._AssetUnitID != value))
			{
				if (this._tblAssetUnit.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnAssetUnitIDChanging(value);
				this.SendPropertyChanging();
				this._AssetUnitID = value;
				this.SendPropertyChanged("AssetUnitID");
				this.OnAssetUnitIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetCategoryID", DbType="Int NOT NULL")]
	public int AssetCategoryID
	{
		get
		{
			return this._AssetCategoryID;
		}
		set
		{
			if ((this._AssetCategoryID != value))
			{
				if (this._tblAssetCategory.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnAssetCategoryIDChanging(value);
				this.SendPropertyChanging();
				this._AssetCategoryID = value;
				this.SendPropertyChanged("AssetCategoryID");
				this.OnAssetCategoryIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetProviderID", DbType="Int NOT NULL")]
	public int AssetProviderID
	{
		get
		{
			return this._AssetProviderID;
		}
		set
		{
			if ((this._AssetProviderID != value))
			{
				if (this._tblProvider.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnAssetProviderIDChanging(value);
				this.SendPropertyChanging();
				this._AssetProviderID = value;
				this.SendPropertyChanged("AssetProviderID");
				this.OnAssetProviderIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetOrderPoint", DbType="Float NOT NULL")]
	public double AssetOrderPoint
	{
		get
		{
			return this._AssetOrderPoint;
		}
		set
		{
			if ((this._AssetOrderPoint != value))
			{
				this.OnAssetOrderPointChanging(value);
				this.SendPropertyChanging();
				this._AssetOrderPoint = value;
				this.SendPropertyChanged("AssetOrderPoint");
				this.OnAssetOrderPointChanged();
			}
		}
	}
	
	[Association(Name="tblWhAsset_tblOrderDetail", Storage="_tblOrderDetails", ThisKey="AssetID", OtherKey="AssetID")]
	public EntitySet<tblOrderDetail> tblOrderDetails
	{
		get
		{
			return this._tblOrderDetails;
		}
		set
		{
			this._tblOrderDetails.Assign(value);
		}
	}
	
	[Association(Name="tblWhAsset_tblWhAssetsGe", Storage="_tblWhAssetsGes", ThisKey="AssetID", OtherKey="AssetID")]
	public EntitySet<tblWhAssetsGe> tblWhAssetsGes
	{
		get
		{
			return this._tblWhAssetsGes;
		}
		set
		{
			this._tblWhAssetsGes.Assign(value);
		}
	}
	
	[Association(Name="tblWhAsset_tblDeliverAssetsGe", Storage="_tblDeliverAssetsGes", ThisKey="AssetID", OtherKey="AssetID")]
	public EntitySet<tblDeliverAssetsGe> tblDeliverAssetsGes
	{
		get
		{
			return this._tblDeliverAssetsGes;
		}
		set
		{
			this._tblDeliverAssetsGes.Assign(value);
		}
	}
	
	[Association(Name="tblAssetCategory_tblWhAsset", Storage="_tblAssetCategory", ThisKey="AssetCategoryID", OtherKey="AssetCategoryID", IsForeignKey=true)]
	public tblAssetCategory tblAssetCategory
	{
		get
		{
			return this._tblAssetCategory.Entity;
		}
		set
		{
			tblAssetCategory previousValue = this._tblAssetCategory.Entity;
			if (((previousValue != value) 
						|| (this._tblAssetCategory.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblAssetCategory.Entity = null;
					previousValue.tblWhAssets.Remove(this);
				}
				this._tblAssetCategory.Entity = value;
				if ((value != null))
				{
					value.tblWhAssets.Add(this);
					this._AssetCategoryID = value.AssetCategoryID;
				}
				else
				{
					this._AssetCategoryID = default(int);
				}
				this.SendPropertyChanged("tblAssetCategory");
			}
		}
	}
	
	[Association(Name="tblAssetUnit_tblWhAsset", Storage="_tblAssetUnit", ThisKey="AssetUnitID", OtherKey="AssetUnitID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblAssetUnit tblAssetUnit
	{
		get
		{
			return this._tblAssetUnit.Entity;
		}
		set
		{
			tblAssetUnit previousValue = this._tblAssetUnit.Entity;
			if (((previousValue != value) 
						|| (this._tblAssetUnit.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblAssetUnit.Entity = null;
					previousValue.tblWhAssets.Remove(this);
				}
				this._tblAssetUnit.Entity = value;
				if ((value != null))
				{
					value.tblWhAssets.Add(this);
					this._AssetUnitID = value.AssetUnitID;
				}
				else
				{
					this._AssetUnitID = default(int);
				}
				this.SendPropertyChanged("tblAssetUnit");
			}
		}
	}
	
	[Association(Name="tblProvider_tblWhAsset", Storage="_tblProvider", ThisKey="AssetProviderID", OtherKey="ProviderID", IsForeignKey=true)]
	public tblProvider tblProvider
	{
		get
		{
			return this._tblProvider.Entity;
		}
		set
		{
			tblProvider previousValue = this._tblProvider.Entity;
			if (((previousValue != value) 
						|| (this._tblProvider.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblProvider.Entity = null;
					previousValue.tblWhAssets.Remove(this);
				}
				this._tblProvider.Entity = value;
				if ((value != null))
				{
					value.tblWhAssets.Add(this);
					this._AssetProviderID = value.ProviderID;
				}
				else
				{
					this._AssetProviderID = default(int);
				}
				this.SendPropertyChanged("tblProvider");
			}
		}
	}
	
	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));
		}
	}
	
	private void attach_tblOrderDetails(tblOrderDetail entity)
	{
		this.SendPropertyChanging();
		entity.tblWhAsset = this;
	}
	
	private void detach_tblOrderDetails(tblOrderDetail entity)
	{
		this.SendPropertyChanging();
		entity.tblWhAsset = null;
	}
	
	private void attach_tblWhAssetsGes(tblWhAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblWhAsset = this;
	}
	
	private void detach_tblWhAssetsGes(tblWhAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblWhAsset = null;
	}
	
	private void attach_tblDeliverAssetsGes(tblDeliverAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblWhAsset = this;
	}
	
	private void detach_tblDeliverAssetsGes(tblDeliverAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblWhAsset = null;
	}
}

[Table(Name="dbo.xtblAssetProviders")]
public partial class xtblAssetProvider
{
	
	private int _ProviderID;
	
	private string _NameSname;
	
	public xtblAssetProvider()
	{
	}
	
	[Column(Storage="_ProviderID", AutoSync=AutoSync.Always, DbType="Int NOT NULL IDENTITY", IsDbGenerated=true)]
	public int ProviderID
	{
		get
		{
			return this._ProviderID;
		}
		set
		{
			if ((this._ProviderID != value))
			{
				this._ProviderID = value;
			}
		}
	}
	
	[Column(Storage="_NameSname", DbType="NVarChar(334) NOT NULL", CanBeNull=false)]
	public string NameSname
	{
		get
		{
			return this._NameSname;
		}
		set
		{
			if ((this._NameSname != value))
			{
				this._NameSname = value;
			}
		}
	}
}

[Table(Name="dbo.tblOrders")]
public partial class tblOrder : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _OrderID;
	
	private string _UserName;
	
	private string _OrderDate;
	
	private bool _OrderClosedBit;
	
	private EntitySet<tblOrderDetail> _tblOrderDetails;
	
	private EntityRef<tblUser> _tblUser;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnOrderIDChanging(decimal value);
    partial void OnOrderIDChanged();
    partial void OnUserNameChanging(string value);
    partial void OnUserNameChanged();
    partial void OnOrderDateChanging(string value);
    partial void OnOrderDateChanged();
    partial void OnOrderClosedBitChanging(bool value);
    partial void OnOrderClosedBitChanged();
    #endregion
	
	public tblOrder()
	{
		this._tblOrderDetails = new EntitySet<tblOrderDetail>(new Action<tblOrderDetail>(this.attach_tblOrderDetails), new Action<tblOrderDetail>(this.detach_tblOrderDetails));
		this._tblUser = default(EntityRef<tblUser>);
		OnCreated();
	}
	
	[Column(Storage="_OrderID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this.OnOrderIDChanging(value);
				this.SendPropertyChanging();
				this._OrderID = value;
				this.SendPropertyChanged("OrderID");
				this.OnOrderIDChanged();
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				if (this._tblUser.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnUserNameChanging(value);
				this.SendPropertyChanging();
				this._UserName = value;
				this.SendPropertyChanged("UserName");
				this.OnUserNameChanged();
			}
		}
	}
	
	[Column(Storage="_OrderDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string OrderDate
	{
		get
		{
			return this._OrderDate;
		}
		set
		{
			if ((this._OrderDate != value))
			{
				this.OnOrderDateChanging(value);
				this.SendPropertyChanging();
				this._OrderDate = value;
				this.SendPropertyChanged("OrderDate");
				this.OnOrderDateChanged();
			}
		}
	}
	
	[Column(Storage="_OrderClosedBit", DbType="Bit NOT NULL")]
	public bool OrderClosedBit
	{
		get
		{
			return this._OrderClosedBit;
		}
		set
		{
			if ((this._OrderClosedBit != value))
			{
				this.OnOrderClosedBitChanging(value);
				this.SendPropertyChanging();
				this._OrderClosedBit = value;
				this.SendPropertyChanged("OrderClosedBit");
				this.OnOrderClosedBitChanged();
			}
		}
	}
	
	[Association(Name="tblOrder_tblOrderDetail", Storage="_tblOrderDetails", ThisKey="OrderID", OtherKey="OrderID")]
	public EntitySet<tblOrderDetail> tblOrderDetails
	{
		get
		{
			return this._tblOrderDetails;
		}
		set
		{
			this._tblOrderDetails.Assign(value);
		}
	}
	
	[Association(Name="tblUser_tblOrder", Storage="_tblUser", ThisKey="UserName", OtherKey="UserName", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblUser tblUser
	{
		get
		{
			return this._tblUser.Entity;
		}
		set
		{
			tblUser previousValue = this._tblUser.Entity;
			if (((previousValue != value) 
						|| (this._tblUser.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblUser.Entity = null;
					previousValue.tblOrders.Remove(this);
				}
				this._tblUser.Entity = value;
				if ((value != null))
				{
					value.tblOrders.Add(this);
					this._UserName = value.UserName;
				}
				else
				{
					this._UserName = default(string);
				}
				this.SendPropertyChanged("tblUser");
			}
		}
	}
	
	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));
		}
	}
	
	private void attach_tblOrderDetails(tblOrderDetail entity)
	{
		this.SendPropertyChanging();
		entity.tblOrder = this;
	}
	
	private void detach_tblOrderDetails(tblOrderDetail entity)
	{
		this.SendPropertyChanging();
		entity.tblOrder = null;
	}
}

[Table(Name="dbo.xtblOrders")]
public partial class xtblOrder
{
	
	private decimal _OrderID;
	
	private string _UserName;
	
	private string _OrderDate;
	
	private bool _OrderClosedBit;
	
	private string _OrderState;
	
	public xtblOrder()
	{
	}
	
	[Column(Storage="_OrderID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_OrderDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string OrderDate
	{
		get
		{
			return this._OrderDate;
		}
		set
		{
			if ((this._OrderDate != value))
			{
				this._OrderDate = value;
			}
		}
	}
	
	[Column(Storage="_OrderClosedBit", DbType="Bit NOT NULL")]
	public bool OrderClosedBit
	{
		get
		{
			return this._OrderClosedBit;
		}
		set
		{
			if ((this._OrderClosedBit != value))
			{
				this._OrderClosedBit = value;
			}
		}
	}
	
	[Column(Storage="_OrderState", DbType="VarChar(18) NOT NULL", CanBeNull=false)]
	public string OrderState
	{
		get
		{
			return this._OrderState;
		}
		set
		{
			if ((this._OrderState != value))
			{
				this._OrderState = value;
			}
		}
	}
}

[Table(Name="dbo.xtblOrdersCmb")]
public partial class xtblOrdersCmb
{
	
	private decimal _OrderID;
	
	private string _OrderDetailView;
	
	private string _OrderDate;
	
	private bool _OrderClosedBit;
	
	private string _OrderState;
	
	public xtblOrdersCmb()
	{
	}
	
	[Column(Storage="_OrderID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailView", DbType="NVarChar(226)")]
	public string OrderDetailView
	{
		get
		{
			return this._OrderDetailView;
		}
		set
		{
			if ((this._OrderDetailView != value))
			{
				this._OrderDetailView = value;
			}
		}
	}
	
	[Column(Storage="_OrderDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string OrderDate
	{
		get
		{
			return this._OrderDate;
		}
		set
		{
			if ((this._OrderDate != value))
			{
				this._OrderDate = value;
			}
		}
	}
	
	[Column(Storage="_OrderClosedBit", DbType="Bit NOT NULL")]
	public bool OrderClosedBit
	{
		get
		{
			return this._OrderClosedBit;
		}
		set
		{
			if ((this._OrderClosedBit != value))
			{
				this._OrderClosedBit = value;
			}
		}
	}
	
	[Column(Storage="_OrderState", DbType="VarChar(18) NOT NULL", CanBeNull=false)]
	public string OrderState
	{
		get
		{
			return this._OrderState;
		}
		set
		{
			if ((this._OrderState != value))
			{
				this._OrderState = value;
			}
		}
	}
}

[Table(Name="dbo.xtblOrderDetailsDrp")]
public partial class xtblOrderDetailsDrp
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	public xtblOrderDetailsDrp()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
}

[Table(Name="dbo.xtblUsersPurchedNotDeliver")]
public partial class xtblUsersPurchedNotDeliver
{
	
	private string _UserName;
	
	public xtblUsersPurchedNotDeliver()
	{
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
}

[Table(Name="dbo.xtblOrderDetailsPurcehdNotDelivered")]
public partial class xtblOrderDetailsPurcehdNotDelivered
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	private bool _TahvilBit;
	
	private string _UserName;
	
	public xtblOrderDetailsPurcehdNotDelivered()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this._TahvilBit = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
}

[Table(Name="dbo.tblDeliverdAssets")]
public partial class tblDeliverdAsset : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _DeliverID;
	
	private decimal _OrderDetailID;
	
	private string _UserName;
	
	private string _DeliverDate;
	
	private EntityRef<tblUser> _tblUser;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnDeliverIDChanging(decimal value);
    partial void OnDeliverIDChanged();
    partial void OnOrderDetailIDChanging(decimal value);
    partial void OnOrderDetailIDChanged();
    partial void OnUserNameChanging(string value);
    partial void OnUserNameChanged();
    partial void OnDeliverDateChanging(string value);
    partial void OnDeliverDateChanged();
    #endregion
	
	public tblDeliverdAsset()
	{
		this._tblUser = default(EntityRef<tblUser>);
		OnCreated();
	}
	
	[Column(Storage="_DeliverID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal DeliverID
	{
		get
		{
			return this._DeliverID;
		}
		set
		{
			if ((this._DeliverID != value))
			{
				this.OnDeliverIDChanging(value);
				this.SendPropertyChanging();
				this._DeliverID = value;
				this.SendPropertyChanged("DeliverID");
				this.OnDeliverIDChanged();
			}
		}
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this.OnOrderDetailIDChanging(value);
				this.SendPropertyChanging();
				this._OrderDetailID = value;
				this.SendPropertyChanged("OrderDetailID");
				this.OnOrderDetailIDChanged();
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				if (this._tblUser.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnUserNameChanging(value);
				this.SendPropertyChanging();
				this._UserName = value;
				this.SendPropertyChanged("UserName");
				this.OnUserNameChanged();
			}
		}
	}
	
	[Column(Storage="_DeliverDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DeliverDate
	{
		get
		{
			return this._DeliverDate;
		}
		set
		{
			if ((this._DeliverDate != value))
			{
				this.OnDeliverDateChanging(value);
				this.SendPropertyChanging();
				this._DeliverDate = value;
				this.SendPropertyChanged("DeliverDate");
				this.OnDeliverDateChanged();
			}
		}
	}
	
	[Association(Name="tblUser_tblDeliverdAsset", Storage="_tblUser", ThisKey="UserName", OtherKey="UserName", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblUser tblUser
	{
		get
		{
			return this._tblUser.Entity;
		}
		set
		{
			tblUser previousValue = this._tblUser.Entity;
			if (((previousValue != value) 
						|| (this._tblUser.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblUser.Entity = null;
					previousValue.tblDeliverdAssets.Remove(this);
				}
				this._tblUser.Entity = value;
				if ((value != null))
				{
					value.tblDeliverdAssets.Add(this);
					this._UserName = value.UserName;
				}
				else
				{
					this._UserName = default(string);
				}
				this.SendPropertyChanged("tblUser");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.tblOrderDetails")]
public partial class tblOrderDetail : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _OrderDetailID;
	
	private decimal _OrderID;
	
	private decimal _AssetID;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private bool _TahvilBit;
	
	private bool _MarjoeeBit;
	
	private EntityRef<tblOrder> _tblOrder;
	
	private EntityRef<tblWhAsset> _tblWhAsset;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnOrderDetailIDChanging(decimal value);
    partial void OnOrderDetailIDChanged();
    partial void OnOrderIDChanging(decimal value);
    partial void OnOrderIDChanged();
    partial void OnAssetIDChanging(decimal value);
    partial void OnAssetIDChanged();
    partial void OnAssetQuantityChanging(double value);
    partial void OnAssetQuantityChanged();
    partial void OnOrderDetailNotesChanging(string value);
    partial void OnOrderDetailNotesChanged();
    partial void OnPurchasedBitChanging(bool value);
    partial void OnPurchasedBitChanged();
    partial void OnTahvilBitChanging(bool value);
    partial void OnTahvilBitChanged();
    partial void OnMarjoeeBitChanging(bool value);
    partial void OnMarjoeeBitChanged();
    #endregion
	
	public tblOrderDetail()
	{
		this._tblOrder = default(EntityRef<tblOrder>);
		this._tblWhAsset = default(EntityRef<tblWhAsset>);
		OnCreated();
	}
	
	[Column(Storage="_OrderDetailID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this.OnOrderDetailIDChanging(value);
				this.SendPropertyChanging();
				this._OrderDetailID = value;
				this.SendPropertyChanged("OrderDetailID");
				this.OnOrderDetailIDChanged();
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				if (this._tblOrder.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnOrderIDChanging(value);
				this.SendPropertyChanging();
				this._OrderID = value;
				this.SendPropertyChanged("OrderID");
				this.OnOrderIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				if (this._tblWhAsset.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnAssetIDChanging(value);
				this.SendPropertyChanging();
				this._AssetID = value;
				this.SendPropertyChanged("AssetID");
				this.OnAssetIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this.OnAssetQuantityChanging(value);
				this.SendPropertyChanging();
				this._AssetQuantity = value;
				this.SendPropertyChanged("AssetQuantity");
				this.OnAssetQuantityChanged();
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this.OnOrderDetailNotesChanging(value);
				this.SendPropertyChanging();
				this._OrderDetailNotes = value;
				this.SendPropertyChanged("OrderDetailNotes");
				this.OnOrderDetailNotesChanged();
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this.OnPurchasedBitChanging(value);
				this.SendPropertyChanging();
				this._PurchasedBit = value;
				this.SendPropertyChanged("PurchasedBit");
				this.OnPurchasedBitChanged();
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this.OnTahvilBitChanging(value);
				this.SendPropertyChanging();
				this._TahvilBit = value;
				this.SendPropertyChanged("TahvilBit");
				this.OnTahvilBitChanged();
			}
		}
	}
	
	[Column(Storage="_MarjoeeBit", DbType="Bit NOT NULL")]
	public bool MarjoeeBit
	{
		get
		{
			return this._MarjoeeBit;
		}
		set
		{
			if ((this._MarjoeeBit != value))
			{
				this.OnMarjoeeBitChanging(value);
				this.SendPropertyChanging();
				this._MarjoeeBit = value;
				this.SendPropertyChanged("MarjoeeBit");
				this.OnMarjoeeBitChanged();
			}
		}
	}
	
	[Association(Name="tblOrder_tblOrderDetail", Storage="_tblOrder", ThisKey="OrderID", OtherKey="OrderID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblOrder tblOrder
	{
		get
		{
			return this._tblOrder.Entity;
		}
		set
		{
			tblOrder previousValue = this._tblOrder.Entity;
			if (((previousValue != value) 
						|| (this._tblOrder.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblOrder.Entity = null;
					previousValue.tblOrderDetails.Remove(this);
				}
				this._tblOrder.Entity = value;
				if ((value != null))
				{
					value.tblOrderDetails.Add(this);
					this._OrderID = value.OrderID;
				}
				else
				{
					this._OrderID = default(decimal);
				}
				this.SendPropertyChanged("tblOrder");
			}
		}
	}
	
	[Association(Name="tblWhAsset_tblOrderDetail", Storage="_tblWhAsset", ThisKey="AssetID", OtherKey="AssetID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblWhAsset tblWhAsset
	{
		get
		{
			return this._tblWhAsset.Entity;
		}
		set
		{
			tblWhAsset previousValue = this._tblWhAsset.Entity;
			if (((previousValue != value) 
						|| (this._tblWhAsset.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblWhAsset.Entity = null;
					previousValue.tblOrderDetails.Remove(this);
				}
				this._tblWhAsset.Entity = value;
				if ((value != null))
				{
					value.tblOrderDetails.Add(this);
					this._AssetID = value.AssetID;
				}
				else
				{
					this._AssetID = default(decimal);
				}
				this.SendPropertyChanged("tblWhAsset");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.tblMarjoee")]
public partial class tblMarjoee : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _MarjoeeRowID;
	
	private decimal _OrderDetailID;
	
	private int _StateID;
	
	private string _DateMarjoee;
	
	private string _MarjoeeNote;
	
	private EntityRef<tblAssetState> _tblAssetState;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnMarjoeeRowIDChanging(decimal value);
    partial void OnMarjoeeRowIDChanged();
    partial void OnOrderDetailIDChanging(decimal value);
    partial void OnOrderDetailIDChanged();
    partial void OnStateIDChanging(int value);
    partial void OnStateIDChanged();
    partial void OnDateMarjoeeChanging(string value);
    partial void OnDateMarjoeeChanged();
    partial void OnMarjoeeNoteChanging(string value);
    partial void OnMarjoeeNoteChanged();
    #endregion
	
	public tblMarjoee()
	{
		this._tblAssetState = default(EntityRef<tblAssetState>);
		OnCreated();
	}
	
	[Column(Storage="_MarjoeeRowID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal MarjoeeRowID
	{
		get
		{
			return this._MarjoeeRowID;
		}
		set
		{
			if ((this._MarjoeeRowID != value))
			{
				this.OnMarjoeeRowIDChanging(value);
				this.SendPropertyChanging();
				this._MarjoeeRowID = value;
				this.SendPropertyChanged("MarjoeeRowID");
				this.OnMarjoeeRowIDChanged();
			}
		}
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this.OnOrderDetailIDChanging(value);
				this.SendPropertyChanging();
				this._OrderDetailID = value;
				this.SendPropertyChanged("OrderDetailID");
				this.OnOrderDetailIDChanged();
			}
		}
	}
	
	[Column(Storage="_StateID", DbType="Int NOT NULL")]
	public int StateID
	{
		get
		{
			return this._StateID;
		}
		set
		{
			if ((this._StateID != value))
			{
				if (this._tblAssetState.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnStateIDChanging(value);
				this.SendPropertyChanging();
				this._StateID = value;
				this.SendPropertyChanged("StateID");
				this.OnStateIDChanged();
			}
		}
	}
	
	[Column(Storage="_DateMarjoee", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DateMarjoee
	{
		get
		{
			return this._DateMarjoee;
		}
		set
		{
			if ((this._DateMarjoee != value))
			{
				this.OnDateMarjoeeChanging(value);
				this.SendPropertyChanging();
				this._DateMarjoee = value;
				this.SendPropertyChanged("DateMarjoee");
				this.OnDateMarjoeeChanged();
			}
		}
	}
	
	[Column(Storage="_MarjoeeNote", DbType="NChar(500) NOT NULL", CanBeNull=false)]
	public string MarjoeeNote
	{
		get
		{
			return this._MarjoeeNote;
		}
		set
		{
			if ((this._MarjoeeNote != value))
			{
				this.OnMarjoeeNoteChanging(value);
				this.SendPropertyChanging();
				this._MarjoeeNote = value;
				this.SendPropertyChanged("MarjoeeNote");
				this.OnMarjoeeNoteChanged();
			}
		}
	}
	
	[Association(Name="tblAssetState_tblMarjoee", Storage="_tblAssetState", ThisKey="StateID", OtherKey="StateID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblAssetState tblAssetState
	{
		get
		{
			return this._tblAssetState.Entity;
		}
		set
		{
			tblAssetState previousValue = this._tblAssetState.Entity;
			if (((previousValue != value) 
						|| (this._tblAssetState.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblAssetState.Entity = null;
					previousValue.tblMarjoees.Remove(this);
				}
				this._tblAssetState.Entity = value;
				if ((value != null))
				{
					value.tblMarjoees.Add(this);
					this._StateID = value.StateID;
				}
				else
				{
					this._StateID = default(int);
				}
				this.SendPropertyChanged("tblAssetState");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.tblAssetState")]
public partial class tblAssetState : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _StateID;
	
	private string _StateDescription;
	
	private EntitySet<tblMarjoee> _tblMarjoees;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnStateIDChanging(int value);
    partial void OnStateIDChanged();
    partial void OnStateDescriptionChanging(string value);
    partial void OnStateDescriptionChanged();
    #endregion
	
	public tblAssetState()
	{
		this._tblMarjoees = new EntitySet<tblMarjoee>(new Action<tblMarjoee>(this.attach_tblMarjoees), new Action<tblMarjoee>(this.detach_tblMarjoees));
		OnCreated();
	}
	
	[Column(Storage="_StateID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int StateID
	{
		get
		{
			return this._StateID;
		}
		set
		{
			if ((this._StateID != value))
			{
				this.OnStateIDChanging(value);
				this.SendPropertyChanging();
				this._StateID = value;
				this.SendPropertyChanged("StateID");
				this.OnStateIDChanged();
			}
		}
	}
	
	[Column(Storage="_StateDescription", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
	public string StateDescription
	{
		get
		{
			return this._StateDescription;
		}
		set
		{
			if ((this._StateDescription != value))
			{
				this.OnStateDescriptionChanging(value);
				this.SendPropertyChanging();
				this._StateDescription = value;
				this.SendPropertyChanged("StateDescription");
				this.OnStateDescriptionChanged();
			}
		}
	}
	
	[Association(Name="tblAssetState_tblMarjoee", Storage="_tblMarjoees", ThisKey="StateID", OtherKey="StateID")]
	public EntitySet<tblMarjoee> tblMarjoees
	{
		get
		{
			return this._tblMarjoees;
		}
		set
		{
			this._tblMarjoees.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblMarjoees(tblMarjoee entity)
	{
		this.SendPropertyChanging();
		entity.tblAssetState = this;
	}
	
	private void detach_tblMarjoees(tblMarjoee entity)
	{
		this.SendPropertyChanging();
		entity.tblAssetState = null;
	}
}

[Table(Name="dbo.xtbOrderDetailPurchedDeliveredNotMarjoee")]
public partial class xtbOrderDetailPurchedDeliveredNotMarjoee
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	private bool _TahvilBit;
	
	private string _UserName;
	
	private bool _MarjoeeBit;
	
	public xtbOrderDetailPurchedDeliveredNotMarjoee()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this._TahvilBit = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_MarjoeeBit", DbType="Bit NOT NULL")]
	public bool MarjoeeBit
	{
		get
		{
			return this._MarjoeeBit;
		}
		set
		{
			if ((this._MarjoeeBit != value))
			{
				this._MarjoeeBit = value;
			}
		}
	}
}

[Table(Name="dbo.xtblUserPurchedDeliveredNotMarjoee")]
public partial class xtblUserPurchedDeliveredNotMarjoee
{
	
	private string _UserName;
	
	private bool _MarjoeeBit;
	
	public xtblUserPurchedDeliveredNotMarjoee()
	{
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_MarjoeeBit", DbType="Bit NOT NULL")]
	public bool MarjoeeBit
	{
		get
		{
			return this._MarjoeeBit;
		}
		set
		{
			if ((this._MarjoeeBit != value))
			{
				this._MarjoeeBit = value;
			}
		}
	}
}

[Table(Name="dbo.xtblNameAndFamily")]
public partial class xtblNameAndFamily
{
	
	private string _UserName;
	
	private string _Expr1;
	
	public xtblNameAndFamily()
	{
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_Expr1", DbType="NVarChar(326) NOT NULL", CanBeNull=false)]
	public string Expr1
	{
		get
		{
			return this._Expr1;
		}
		set
		{
			if ((this._Expr1 != value))
			{
				this._Expr1 = value;
			}
		}
	}
}

[Table(Name="dbo.xtblDeliverNameUser")]
public partial class xtblDeliverNameUser
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	private bool _TahvilBit;
	
	private string _UserName;
	
	private string _OrderDate;
	
	private string _DeliverDate;
	
	private decimal _AssetID;
	
	private string _NameSname;
	
	public xtblDeliverNameUser()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this._TahvilBit = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_OrderDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string OrderDate
	{
		get
		{
			return this._OrderDate;
		}
		set
		{
			if ((this._OrderDate != value))
			{
				this._OrderDate = value;
			}
		}
	}
	
	[Column(Storage="_DeliverDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DeliverDate
	{
		get
		{
			return this._DeliverDate;
		}
		set
		{
			if ((this._DeliverDate != value))
			{
				this._DeliverDate = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_NameSname", DbType="NVarChar(326) NOT NULL", CanBeNull=false)]
	public string NameSname
	{
		get
		{
			return this._NameSname;
		}
		set
		{
			if ((this._NameSname != value))
			{
				this._NameSname = value;
			}
		}
	}
}

[Table(Name="dbo.xtblMarjoeeHaDetails")]
public partial class xtblMarjoeeHaDetail
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	private bool _TahvilBit;
	
	private string _UserName;
	
	private bool _MarjoeeBit;
	
	private string _OrderDate;
	
	private int _StateID;
	
	private string _DateMarjoee;
	
	private string _StateDescription;
	
	private string _NameSname;
	
	private string _MarjoeeNote;
	
	public xtblMarjoeeHaDetail()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this._TahvilBit = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_MarjoeeBit", DbType="Bit NOT NULL")]
	public bool MarjoeeBit
	{
		get
		{
			return this._MarjoeeBit;
		}
		set
		{
			if ((this._MarjoeeBit != value))
			{
				this._MarjoeeBit = value;
			}
		}
	}
	
	[Column(Storage="_OrderDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string OrderDate
	{
		get
		{
			return this._OrderDate;
		}
		set
		{
			if ((this._OrderDate != value))
			{
				this._OrderDate = value;
			}
		}
	}
	
	[Column(Storage="_StateID", DbType="Int NOT NULL")]
	public int StateID
	{
		get
		{
			return this._StateID;
		}
		set
		{
			if ((this._StateID != value))
			{
				this._StateID = value;
			}
		}
	}
	
	[Column(Storage="_DateMarjoee", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DateMarjoee
	{
		get
		{
			return this._DateMarjoee;
		}
		set
		{
			if ((this._DateMarjoee != value))
			{
				this._DateMarjoee = value;
			}
		}
	}
	
	[Column(Storage="_StateDescription", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
	public string StateDescription
	{
		get
		{
			return this._StateDescription;
		}
		set
		{
			if ((this._StateDescription != value))
			{
				this._StateDescription = value;
			}
		}
	}
	
	[Column(Storage="_NameSname", DbType="NVarChar(326) NOT NULL", CanBeNull=false)]
	public string NameSname
	{
		get
		{
			return this._NameSname;
		}
		set
		{
			if ((this._NameSname != value))
			{
				this._NameSname = value;
			}
		}
	}
	
	[Column(Storage="_MarjoeeNote", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
	public string MarjoeeNote
	{
		get
		{
			return this._MarjoeeNote;
		}
		set
		{
			if ((this._MarjoeeNote != value))
			{
				this._MarjoeeNote = value;
			}
		}
	}
}

[Table(Name="dbo.xtblStokeAssets")]
public partial class xtblStokeAsset
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	private bool _TahvilBit;
	
	private string _UserName;
	
	private string _AssetCategoryDescription;
	
	private int _AssetCategoryID;
	
	public xtblStokeAsset()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this._TahvilBit = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
	
	[Column(Storage="_AssetCategoryDescription", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetCategoryDescription
	{
		get
		{
			return this._AssetCategoryDescription;
		}
		set
		{
			if ((this._AssetCategoryDescription != value))
			{
				this._AssetCategoryDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetCategoryID", DbType="Int NOT NULL")]
	public int AssetCategoryID
	{
		get
		{
			return this._AssetCategoryID;
		}
		set
		{
			if ((this._AssetCategoryID != value))
			{
				this._AssetCategoryID = value;
			}
		}
	}
}

[Table(Name="dbo.tblPuchOrders")]
public partial class tblPuchOrder : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _TahvilKalaID;
	
	private decimal _OrderDetailID;
	
	private int _WarwHouseID;
	
	private string _DeliverDate;
	
	private decimal _PriceVahed;
	
	private System.Nullable<decimal> _TotalPrice;
	
	private EntityRef<tblWareHouseName> _tblWareHouseName;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnTahvilKalaIDChanging(decimal value);
    partial void OnTahvilKalaIDChanged();
    partial void OnOrderDetailIDChanging(decimal value);
    partial void OnOrderDetailIDChanged();
    partial void OnWarwHouseIDChanging(int value);
    partial void OnWarwHouseIDChanged();
    partial void OnDeliverDateChanging(string value);
    partial void OnDeliverDateChanged();
    partial void OnPriceVahedChanging(decimal value);
    partial void OnPriceVahedChanged();
    partial void OnTotalPriceChanging(System.Nullable<decimal> value);
    partial void OnTotalPriceChanged();
    #endregion
	
	public tblPuchOrder()
	{
		this._tblWareHouseName = default(EntityRef<tblWareHouseName>);
		OnCreated();
	}
	
	[Column(Storage="_TahvilKalaID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal TahvilKalaID
	{
		get
		{
			return this._TahvilKalaID;
		}
		set
		{
			if ((this._TahvilKalaID != value))
			{
				this.OnTahvilKalaIDChanging(value);
				this.SendPropertyChanging();
				this._TahvilKalaID = value;
				this.SendPropertyChanged("TahvilKalaID");
				this.OnTahvilKalaIDChanged();
			}
		}
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this.OnOrderDetailIDChanging(value);
				this.SendPropertyChanging();
				this._OrderDetailID = value;
				this.SendPropertyChanged("OrderDetailID");
				this.OnOrderDetailIDChanged();
			}
		}
	}
	
	[Column(Storage="_WarwHouseID", DbType="Int NOT NULL", IsPrimaryKey=true)]
	public int WarwHouseID
	{
		get
		{
			return this._WarwHouseID;
		}
		set
		{
			if ((this._WarwHouseID != value))
			{
				if (this._tblWareHouseName.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnWarwHouseIDChanging(value);
				this.SendPropertyChanging();
				this._WarwHouseID = value;
				this.SendPropertyChanged("WarwHouseID");
				this.OnWarwHouseIDChanged();
			}
		}
	}
	
	[Column(Storage="_DeliverDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DeliverDate
	{
		get
		{
			return this._DeliverDate;
		}
		set
		{
			if ((this._DeliverDate != value))
			{
				this.OnDeliverDateChanging(value);
				this.SendPropertyChanging();
				this._DeliverDate = value;
				this.SendPropertyChanged("DeliverDate");
				this.OnDeliverDateChanged();
			}
		}
	}
	
	[Column(Storage="_PriceVahed", DbType="Decimal(18,0) NOT NULL")]
	public decimal PriceVahed
	{
		get
		{
			return this._PriceVahed;
		}
		set
		{
			if ((this._PriceVahed != value))
			{
				this.OnPriceVahedChanging(value);
				this.SendPropertyChanging();
				this._PriceVahed = value;
				this.SendPropertyChanged("PriceVahed");
				this.OnPriceVahedChanged();
			}
		}
	}
	
	[Column(Storage="_TotalPrice", DbType="Decimal(18,0)")]
	public System.Nullable<decimal> TotalPrice
	{
		get
		{
			return this._TotalPrice;
		}
		set
		{
			if ((this._TotalPrice != value))
			{
				this.OnTotalPriceChanging(value);
				this.SendPropertyChanging();
				this._TotalPrice = value;
				this.SendPropertyChanged("TotalPrice");
				this.OnTotalPriceChanged();
			}
		}
	}
	
	[Association(Name="tblWareHouseName_tblPuchOrder", Storage="_tblWareHouseName", ThisKey="WarwHouseID", OtherKey="WarwHouseID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblWareHouseName tblWareHouseName
	{
		get
		{
			return this._tblWareHouseName.Entity;
		}
		set
		{
			tblWareHouseName previousValue = this._tblWareHouseName.Entity;
			if (((previousValue != value) 
						|| (this._tblWareHouseName.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblWareHouseName.Entity = null;
					previousValue.tblPuchOrders.Remove(this);
				}
				this._tblWareHouseName.Entity = value;
				if ((value != null))
				{
					value.tblPuchOrders.Add(this);
					this._WarwHouseID = value.WarwHouseID;
				}
				else
				{
					this._WarwHouseID = default(int);
				}
				this.SendPropertyChanged("tblWareHouseName");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.tblCompany")]
public partial class tblCompany : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _CompanyID;
	
	private string _CompanyName;
	
	private string _CompanyManagerName;
	
	private string _CompanyTell;
	
	private string _CompanyFax;
	
	private string _CompanyWebSite;
	
	private string _CompanyEmailAddress;
	
	private string _CompanyAddress;
	
	private EntitySet<tblProject> _tblProjects;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnCompanyIDChanging(decimal value);
    partial void OnCompanyIDChanged();
    partial void OnCompanyNameChanging(string value);
    partial void OnCompanyNameChanged();
    partial void OnCompanyManagerNameChanging(string value);
    partial void OnCompanyManagerNameChanged();
    partial void OnCompanyTellChanging(string value);
    partial void OnCompanyTellChanged();
    partial void OnCompanyFaxChanging(string value);
    partial void OnCompanyFaxChanged();
    partial void OnCompanyWebSiteChanging(string value);
    partial void OnCompanyWebSiteChanged();
    partial void OnCompanyEmailAddressChanging(string value);
    partial void OnCompanyEmailAddressChanged();
    partial void OnCompanyAddressChanging(string value);
    partial void OnCompanyAddressChanged();
    #endregion
	
	public tblCompany()
	{
		this._tblProjects = new EntitySet<tblProject>(new Action<tblProject>(this.attach_tblProjects), new Action<tblProject>(this.detach_tblProjects));
		OnCreated();
	}
	
	[Column(Storage="_CompanyID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public decimal CompanyID
	{
		get
		{
			return this._CompanyID;
		}
		set
		{
			if ((this._CompanyID != value))
			{
				this.OnCompanyIDChanging(value);
				this.SendPropertyChanging();
				this._CompanyID = value;
				this.SendPropertyChanged("CompanyID");
				this.OnCompanyIDChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyName", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
	public string CompanyName
	{
		get
		{
			return this._CompanyName;
		}
		set
		{
			if ((this._CompanyName != value))
			{
				this.OnCompanyNameChanging(value);
				this.SendPropertyChanging();
				this._CompanyName = value;
				this.SendPropertyChanged("CompanyName");
				this.OnCompanyNameChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyManagerName", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
	public string CompanyManagerName
	{
		get
		{
			return this._CompanyManagerName;
		}
		set
		{
			if ((this._CompanyManagerName != value))
			{
				this.OnCompanyManagerNameChanging(value);
				this.SendPropertyChanging();
				this._CompanyManagerName = value;
				this.SendPropertyChanged("CompanyManagerName");
				this.OnCompanyManagerNameChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyTell", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string CompanyTell
	{
		get
		{
			return this._CompanyTell;
		}
		set
		{
			if ((this._CompanyTell != value))
			{
				this.OnCompanyTellChanging(value);
				this.SendPropertyChanging();
				this._CompanyTell = value;
				this.SendPropertyChanged("CompanyTell");
				this.OnCompanyTellChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyFax", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string CompanyFax
	{
		get
		{
			return this._CompanyFax;
		}
		set
		{
			if ((this._CompanyFax != value))
			{
				this.OnCompanyFaxChanging(value);
				this.SendPropertyChanging();
				this._CompanyFax = value;
				this.SendPropertyChanged("CompanyFax");
				this.OnCompanyFaxChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyWebSite", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string CompanyWebSite
	{
		get
		{
			return this._CompanyWebSite;
		}
		set
		{
			if ((this._CompanyWebSite != value))
			{
				this.OnCompanyWebSiteChanging(value);
				this.SendPropertyChanging();
				this._CompanyWebSite = value;
				this.SendPropertyChanged("CompanyWebSite");
				this.OnCompanyWebSiteChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyEmailAddress", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string CompanyEmailAddress
	{
		get
		{
			return this._CompanyEmailAddress;
		}
		set
		{
			if ((this._CompanyEmailAddress != value))
			{
				this.OnCompanyEmailAddressChanging(value);
				this.SendPropertyChanging();
				this._CompanyEmailAddress = value;
				this.SendPropertyChanged("CompanyEmailAddress");
				this.OnCompanyEmailAddressChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyAddress", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string CompanyAddress
	{
		get
		{
			return this._CompanyAddress;
		}
		set
		{
			if ((this._CompanyAddress != value))
			{
				this.OnCompanyAddressChanging(value);
				this.SendPropertyChanging();
				this._CompanyAddress = value;
				this.SendPropertyChanged("CompanyAddress");
				this.OnCompanyAddressChanged();
			}
		}
	}
	
	[Association(Name="tblCompany_tblProject", Storage="_tblProjects", ThisKey="CompanyID", OtherKey="CompanyID")]
	public EntitySet<tblProject> tblProjects
	{
		get
		{
			return this._tblProjects;
		}
		set
		{
			this._tblProjects.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblProjects(tblProject entity)
	{
		this.SendPropertyChanging();
		entity.tblCompany = this;
	}
	
	private void detach_tblProjects(tblProject entity)
	{
		this.SendPropertyChanging();
		entity.tblCompany = null;
	}
}

[Table(Name="dbo.tblProjectAssetDetail")]
public partial class tblProjectAssetDetail : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _PARowCount;
	
	private decimal _ProjectID;
	
	private decimal _OrderdetailID;
	
	private string _DateTahvil;
	
	private string _UserName;
	
	private string _UseCase;
	
	private string _Note;
	
	private EntityRef<tblProject> _tblProject;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnPARowCountChanging(decimal value);
    partial void OnPARowCountChanged();
    partial void OnProjectIDChanging(decimal value);
    partial void OnProjectIDChanged();
    partial void OnOrderdetailIDChanging(decimal value);
    partial void OnOrderdetailIDChanged();
    partial void OnDateTahvilChanging(string value);
    partial void OnDateTahvilChanged();
    partial void OnUserNameChanging(string value);
    partial void OnUserNameChanged();
    partial void OnUseCaseChanging(string value);
    partial void OnUseCaseChanged();
    partial void OnNoteChanging(string value);
    partial void OnNoteChanged();
    #endregion
	
	public tblProjectAssetDetail()
	{
		this._tblProject = default(EntityRef<tblProject>);
		OnCreated();
	}
	
	[Column(Storage="_PARowCount", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal PARowCount
	{
		get
		{
			return this._PARowCount;
		}
		set
		{
			if ((this._PARowCount != value))
			{
				this.OnPARowCountChanging(value);
				this.SendPropertyChanging();
				this._PARowCount = value;
				this.SendPropertyChanged("PARowCount");
				this.OnPARowCountChanged();
			}
		}
	}
	
	[Column(Storage="_ProjectID", DbType="Decimal(18,0) NOT NULL")]
	public decimal ProjectID
	{
		get
		{
			return this._ProjectID;
		}
		set
		{
			if ((this._ProjectID != value))
			{
				if (this._tblProject.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnProjectIDChanging(value);
				this.SendPropertyChanging();
				this._ProjectID = value;
				this.SendPropertyChanged("ProjectID");
				this.OnProjectIDChanged();
			}
		}
	}
	
	[Column(Storage="_OrderdetailID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal OrderdetailID
	{
		get
		{
			return this._OrderdetailID;
		}
		set
		{
			if ((this._OrderdetailID != value))
			{
				this.OnOrderdetailIDChanging(value);
				this.SendPropertyChanging();
				this._OrderdetailID = value;
				this.SendPropertyChanged("OrderdetailID");
				this.OnOrderdetailIDChanged();
			}
		}
	}
	
	[Column(Storage="_DateTahvil", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DateTahvil
	{
		get
		{
			return this._DateTahvil;
		}
		set
		{
			if ((this._DateTahvil != value))
			{
				this.OnDateTahvilChanging(value);
				this.SendPropertyChanging();
				this._DateTahvil = value;
				this.SendPropertyChanged("DateTahvil");
				this.OnDateTahvilChanged();
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this.OnUserNameChanging(value);
				this.SendPropertyChanging();
				this._UserName = value;
				this.SendPropertyChanged("UserName");
				this.OnUserNameChanged();
			}
		}
	}
	
	[Column(Storage="_UseCase", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UseCase
	{
		get
		{
			return this._UseCase;
		}
		set
		{
			if ((this._UseCase != value))
			{
				this.OnUseCaseChanging(value);
				this.SendPropertyChanging();
				this._UseCase = value;
				this.SendPropertyChanged("UseCase");
				this.OnUseCaseChanged();
			}
		}
	}
	
	[Column(Storage="_Note", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string Note
	{
		get
		{
			return this._Note;
		}
		set
		{
			if ((this._Note != value))
			{
				this.OnNoteChanging(value);
				this.SendPropertyChanging();
				this._Note = value;
				this.SendPropertyChanged("Note");
				this.OnNoteChanged();
			}
		}
	}
	
	[Association(Name="tblProject_tblProjectAssetDetail", Storage="_tblProject", ThisKey="ProjectID", OtherKey="ProjectID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblProject tblProject
	{
		get
		{
			return this._tblProject.Entity;
		}
		set
		{
			tblProject previousValue = this._tblProject.Entity;
			if (((previousValue != value) 
						|| (this._tblProject.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblProject.Entity = null;
					previousValue.tblProjectAssetDetails.Remove(this);
				}
				this._tblProject.Entity = value;
				if ((value != null))
				{
					value.tblProjectAssetDetails.Add(this);
					this._ProjectID = value.ProjectID;
				}
				else
				{
					this._ProjectID = default(decimal);
				}
				this.SendPropertyChanged("tblProject");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.xtblDefineCompany")]
public partial class xtblDefineCompany
{
	
	private decimal _CompanyID;
	
	private string _DefineCompany;
	
	public xtblDefineCompany()
	{
	}
	
	[Column(Storage="_CompanyID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal CompanyID
	{
		get
		{
			return this._CompanyID;
		}
		set
		{
			if ((this._CompanyID != value))
			{
				this._CompanyID = value;
			}
		}
	}
	
	[Column(Storage="_DefineCompany", DbType="NVarChar(677) NOT NULL", CanBeNull=false)]
	public string DefineCompany
	{
		get
		{
			return this._DefineCompany;
		}
		set
		{
			if ((this._DefineCompany != value))
			{
				this._DefineCompany = value;
			}
		}
	}
}

[Table(Name="dbo.tblProject")]
public partial class tblProject : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _ProjectID;
	
	private decimal _CompanyID;
	
	private string _ProjectDescription;
	
	private string _DateSefaresh;
	
	private string _DateTahvil;
	
	private System.Nullable<bool> _CloseBit;
	
	private EntitySet<tblProjectAssetDetail> _tblProjectAssetDetails;
	
	private EntityRef<tblCompany> _tblCompany;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnProjectIDChanging(decimal value);
    partial void OnProjectIDChanged();
    partial void OnCompanyIDChanging(decimal value);
    partial void OnCompanyIDChanged();
    partial void OnProjectDescriptionChanging(string value);
    partial void OnProjectDescriptionChanged();
    partial void OnDateSefareshChanging(string value);
    partial void OnDateSefareshChanged();
    partial void OnDateTahvilChanging(string value);
    partial void OnDateTahvilChanged();
    partial void OnCloseBitChanging(System.Nullable<bool> value);
    partial void OnCloseBitChanged();
    #endregion
	
	public tblProject()
	{
		this._tblProjectAssetDetails = new EntitySet<tblProjectAssetDetail>(new Action<tblProjectAssetDetail>(this.attach_tblProjectAssetDetails), new Action<tblProjectAssetDetail>(this.detach_tblProjectAssetDetails));
		this._tblCompany = default(EntityRef<tblCompany>);
		OnCreated();
	}
	
	[Column(Storage="_ProjectID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public decimal ProjectID
	{
		get
		{
			return this._ProjectID;
		}
		set
		{
			if ((this._ProjectID != value))
			{
				this.OnProjectIDChanging(value);
				this.SendPropertyChanging();
				this._ProjectID = value;
				this.SendPropertyChanged("ProjectID");
				this.OnProjectIDChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyID", DbType="Decimal(18,0) NOT NULL")]
	public decimal CompanyID
	{
		get
		{
			return this._CompanyID;
		}
		set
		{
			if ((this._CompanyID != value))
			{
				if (this._tblCompany.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnCompanyIDChanging(value);
				this.SendPropertyChanging();
				this._CompanyID = value;
				this.SendPropertyChanged("CompanyID");
				this.OnCompanyIDChanged();
			}
		}
	}
	
	[Column(Storage="_ProjectDescription", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
	public string ProjectDescription
	{
		get
		{
			return this._ProjectDescription;
		}
		set
		{
			if ((this._ProjectDescription != value))
			{
				this.OnProjectDescriptionChanging(value);
				this.SendPropertyChanging();
				this._ProjectDescription = value;
				this.SendPropertyChanged("ProjectDescription");
				this.OnProjectDescriptionChanged();
			}
		}
	}
	
	[Column(Storage="_DateSefaresh", DbType="NVarChar(10)")]
	public string DateSefaresh
	{
		get
		{
			return this._DateSefaresh;
		}
		set
		{
			if ((this._DateSefaresh != value))
			{
				this.OnDateSefareshChanging(value);
				this.SendPropertyChanging();
				this._DateSefaresh = value;
				this.SendPropertyChanged("DateSefaresh");
				this.OnDateSefareshChanged();
			}
		}
	}
	
	[Column(Storage="_DateTahvil", DbType="NVarChar(10)")]
	public string DateTahvil
	{
		get
		{
			return this._DateTahvil;
		}
		set
		{
			if ((this._DateTahvil != value))
			{
				this.OnDateTahvilChanging(value);
				this.SendPropertyChanging();
				this._DateTahvil = value;
				this.SendPropertyChanged("DateTahvil");
				this.OnDateTahvilChanged();
			}
		}
	}
	
	[Column(Storage="_CloseBit", DbType="Bit")]
	public System.Nullable<bool> CloseBit
	{
		get
		{
			return this._CloseBit;
		}
		set
		{
			if ((this._CloseBit != value))
			{
				this.OnCloseBitChanging(value);
				this.SendPropertyChanging();
				this._CloseBit = value;
				this.SendPropertyChanged("CloseBit");
				this.OnCloseBitChanged();
			}
		}
	}
	
	[Association(Name="tblProject_tblProjectAssetDetail", Storage="_tblProjectAssetDetails", ThisKey="ProjectID", OtherKey="ProjectID")]
	public EntitySet<tblProjectAssetDetail> tblProjectAssetDetails
	{
		get
		{
			return this._tblProjectAssetDetails;
		}
		set
		{
			this._tblProjectAssetDetails.Assign(value);
		}
	}
	
	[Association(Name="tblCompany_tblProject", Storage="_tblCompany", ThisKey="CompanyID", OtherKey="CompanyID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblCompany tblCompany
	{
		get
		{
			return this._tblCompany.Entity;
		}
		set
		{
			tblCompany previousValue = this._tblCompany.Entity;
			if (((previousValue != value) 
						|| (this._tblCompany.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblCompany.Entity = null;
					previousValue.tblProjects.Remove(this);
				}
				this._tblCompany.Entity = value;
				if ((value != null))
				{
					value.tblProjects.Add(this);
					this._CompanyID = value.CompanyID;
				}
				else
				{
					this._CompanyID = default(decimal);
				}
				this.SendPropertyChanged("tblCompany");
			}
		}
	}
	
	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));
		}
	}
	
	private void attach_tblProjectAssetDetails(tblProjectAssetDetail entity)
	{
		this.SendPropertyChanging();
		entity.tblProject = this;
	}
	
	private void detach_tblProjectAssetDetails(tblProjectAssetDetail entity)
	{
		this.SendPropertyChanging();
		entity.tblProject = null;
	}
}

[Table(Name="dbo.xtblOrderDetailPurAndNotTahvil")]
public partial class xtblOrderDetailPurAndNotTahvil
{
	
	private decimal _OrderDetailID;
	
	private string _OrderDetailDescription;
	
	private decimal _AssetID;
	
	private string _AssetName;
	
	private double _AssetQuantity;
	
	private string _OrderDetailNotes;
	
	private bool _PurchasedBit;
	
	private string _AssetUnitDescrition;
	
	private decimal _OrderID;
	
	private bool _TahvilBit;
	
	private string _UserName;
	
	public xtblOrderDetailPurAndNotTahvil()
	{
	}
	
	[Column(Storage="_OrderDetailID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderDetailID
	{
		get
		{
			return this._OrderDetailID;
		}
		set
		{
			if ((this._OrderDetailID != value))
			{
				this._OrderDetailID = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailDescription", DbType="NVarChar(317)")]
	public string OrderDetailDescription
	{
		get
		{
			return this._OrderDetailDescription;
		}
		set
		{
			if ((this._OrderDetailDescription != value))
			{
				this._OrderDetailDescription = value;
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string AssetName
	{
		get
		{
			return this._AssetName;
		}
		set
		{
			if ((this._AssetName != value))
			{
				this._AssetName = value;
			}
		}
	}
	
	[Column(Storage="_AssetQuantity", DbType="Float NOT NULL")]
	public double AssetQuantity
	{
		get
		{
			return this._AssetQuantity;
		}
		set
		{
			if ((this._AssetQuantity != value))
			{
				this._AssetQuantity = value;
			}
		}
	}
	
	[Column(Storage="_OrderDetailNotes", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string OrderDetailNotes
	{
		get
		{
			return this._OrderDetailNotes;
		}
		set
		{
			if ((this._OrderDetailNotes != value))
			{
				this._OrderDetailNotes = value;
			}
		}
	}
	
	[Column(Storage="_PurchasedBit", DbType="Bit NOT NULL")]
	public bool PurchasedBit
	{
		get
		{
			return this._PurchasedBit;
		}
		set
		{
			if ((this._PurchasedBit != value))
			{
				this._PurchasedBit = value;
			}
		}
	}
	
	[Column(Storage="_AssetUnitDescrition", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
	public string AssetUnitDescrition
	{
		get
		{
			return this._AssetUnitDescrition;
		}
		set
		{
			if ((this._AssetUnitDescrition != value))
			{
				this._AssetUnitDescrition = value;
			}
		}
	}
	
	[Column(Storage="_OrderID", DbType="Decimal(18,0) NOT NULL")]
	public decimal OrderID
	{
		get
		{
			return this._OrderID;
		}
		set
		{
			if ((this._OrderID != value))
			{
				this._OrderID = value;
			}
		}
	}
	
	[Column(Storage="_TahvilBit", DbType="Bit NOT NULL")]
	public bool TahvilBit
	{
		get
		{
			return this._TahvilBit;
		}
		set
		{
			if ((this._TahvilBit != value))
			{
				this._TahvilBit = value;
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this._UserName = value;
			}
		}
	}
}

[Table(Name="dbo.tblWhAssetsGe")]
public partial class tblWhAssetsGe : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _TahvilKalaID;
	
	private decimal _AssetID;
	
	private int _WarwHouseID;
	
	private string _DeliverDate;
	
	private double _Quantity;
	
	private decimal _PriceVahed;
	
	private decimal _TotalPrice;
	
	private EntityRef<tblWareHouseName> _tblWareHouseName;
	
	private EntityRef<tblWhAsset> _tblWhAsset;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnTahvilKalaIDChanging(decimal value);
    partial void OnTahvilKalaIDChanged();
    partial void OnAssetIDChanging(decimal value);
    partial void OnAssetIDChanged();
    partial void OnWarwHouseIDChanging(int value);
    partial void OnWarwHouseIDChanged();
    partial void OnDeliverDateChanging(string value);
    partial void OnDeliverDateChanged();
    partial void OnQuantityChanging(double value);
    partial void OnQuantityChanged();
    partial void OnPriceVahedChanging(decimal value);
    partial void OnPriceVahedChanged();
    partial void OnTotalPriceChanging(decimal value);
    partial void OnTotalPriceChanged();
    #endregion
	
	public tblWhAssetsGe()
	{
		this._tblWareHouseName = default(EntityRef<tblWareHouseName>);
		this._tblWhAsset = default(EntityRef<tblWhAsset>);
		OnCreated();
	}
	
	[Column(Storage="_TahvilKalaID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal TahvilKalaID
	{
		get
		{
			return this._TahvilKalaID;
		}
		set
		{
			if ((this._TahvilKalaID != value))
			{
				this.OnTahvilKalaIDChanging(value);
				this.SendPropertyChanging();
				this._TahvilKalaID = value;
				this.SendPropertyChanged("TahvilKalaID");
				this.OnTahvilKalaIDChanged();
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				if (this._tblWhAsset.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnAssetIDChanging(value);
				this.SendPropertyChanging();
				this._AssetID = value;
				this.SendPropertyChanged("AssetID");
				this.OnAssetIDChanged();
			}
		}
	}
	
	[Column(Storage="_WarwHouseID", DbType="Int NOT NULL", IsPrimaryKey=true)]
	public int WarwHouseID
	{
		get
		{
			return this._WarwHouseID;
		}
		set
		{
			if ((this._WarwHouseID != value))
			{
				if (this._tblWareHouseName.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnWarwHouseIDChanging(value);
				this.SendPropertyChanging();
				this._WarwHouseID = value;
				this.SendPropertyChanged("WarwHouseID");
				this.OnWarwHouseIDChanged();
			}
		}
	}
	
	[Column(Storage="_DeliverDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
	public string DeliverDate
	{
		get
		{
			return this._DeliverDate;
		}
		set
		{
			if ((this._DeliverDate != value))
			{
				this.OnDeliverDateChanging(value);
				this.SendPropertyChanging();
				this._DeliverDate = value;
				this.SendPropertyChanged("DeliverDate");
				this.OnDeliverDateChanged();
			}
		}
	}
	
	[Column(Storage="_Quantity", DbType="Float NOT NULL", IsPrimaryKey=true)]
	public double Quantity
	{
		get
		{
			return this._Quantity;
		}
		set
		{
			if ((this._Quantity != value))
			{
				this.OnQuantityChanging(value);
				this.SendPropertyChanging();
				this._Quantity = value;
				this.SendPropertyChanged("Quantity");
				this.OnQuantityChanged();
			}
		}
	}
	
	[Column(Storage="_PriceVahed", DbType="Decimal(18,0) NOT NULL")]
	public decimal PriceVahed
	{
		get
		{
			return this._PriceVahed;
		}
		set
		{
			if ((this._PriceVahed != value))
			{
				this.OnPriceVahedChanging(value);
				this.SendPropertyChanging();
				this._PriceVahed = value;
				this.SendPropertyChanged("PriceVahed");
				this.OnPriceVahedChanged();
			}
		}
	}
	
	[Column(Storage="_TotalPrice", DbType="Decimal(18,0) NOT NULL")]
	public decimal TotalPrice
	{
		get
		{
			return this._TotalPrice;
		}
		set
		{
			if ((this._TotalPrice != value))
			{
				this.OnTotalPriceChanging(value);
				this.SendPropertyChanging();
				this._TotalPrice = value;
				this.SendPropertyChanged("TotalPrice");
				this.OnTotalPriceChanged();
			}
		}
	}
	
	[Association(Name="tblWareHouseName_tblWhAssetsGe", Storage="_tblWareHouseName", ThisKey="WarwHouseID", OtherKey="WarwHouseID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblWareHouseName tblWareHouseName
	{
		get
		{
			return this._tblWareHouseName.Entity;
		}
		set
		{
			tblWareHouseName previousValue = this._tblWareHouseName.Entity;
			if (((previousValue != value) 
						|| (this._tblWareHouseName.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblWareHouseName.Entity = null;
					previousValue.tblWhAssetsGes.Remove(this);
				}
				this._tblWareHouseName.Entity = value;
				if ((value != null))
				{
					value.tblWhAssetsGes.Add(this);
					this._WarwHouseID = value.WarwHouseID;
				}
				else
				{
					this._WarwHouseID = default(int);
				}
				this.SendPropertyChanged("tblWareHouseName");
			}
		}
	}
	
	[Association(Name="tblWhAsset_tblWhAssetsGe", Storage="_tblWhAsset", ThisKey="AssetID", OtherKey="AssetID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblWhAsset tblWhAsset
	{
		get
		{
			return this._tblWhAsset.Entity;
		}
		set
		{
			tblWhAsset previousValue = this._tblWhAsset.Entity;
			if (((previousValue != value) 
						|| (this._tblWhAsset.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblWhAsset.Entity = null;
					previousValue.tblWhAssetsGes.Remove(this);
				}
				this._tblWhAsset.Entity = value;
				if ((value != null))
				{
					value.tblWhAssetsGes.Add(this);
					this._AssetID = value.AssetID;
				}
				else
				{
					this._AssetID = default(decimal);
				}
				this.SendPropertyChanged("tblWhAsset");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.xtblAssetInfoDrp")]
public partial class xtblAssetInfoDrp
{
	
	private decimal _AssetID;
	
	private string _AssetsInfo;
	
	public xtblAssetInfoDrp()
	{
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetsInfo", DbType="NVarChar(389) NOT NULL", CanBeNull=false)]
	public string AssetsInfo
	{
		get
		{
			return this._AssetsInfo;
		}
		set
		{
			if ((this._AssetsInfo != value))
			{
				this._AssetsInfo = value;
			}
		}
	}
}

[Table(Name="dbo.xtblAssetsAndWarwHouse")]
public partial class xtblAssetsAndWarwHouse
{
	
	private decimal _AssetID;
	
	private string _AssetsAndWarwHouse;
	
	public xtblAssetsAndWarwHouse()
	{
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_AssetsAndWarwHouse", DbType="NVarChar(279)")]
	public string AssetsAndWarwHouse
	{
		get
		{
			return this._AssetsAndWarwHouse;
		}
		set
		{
			if ((this._AssetsAndWarwHouse != value))
			{
				this._AssetsAndWarwHouse = value;
			}
		}
	}
}

[Table(Name="dbo.tblDeliverAssetsGe")]
public partial class tblDeliverAssetsGe : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private decimal _DAGRowID;
	
	private decimal _CodeGhabz;
	
	private decimal _AssetID;
	
	private string _UserName;
	
	private string _DeliverDate;
	
	private double _Quantity;
	
	private string _UseCase;
	
	private EntityRef<tblWhAsset> _tblWhAsset;
	
	private EntityRef<tblUser> _tblUser;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnDAGRowIDChanging(decimal value);
    partial void OnDAGRowIDChanged();
    partial void OnCodeGhabzChanging(decimal value);
    partial void OnCodeGhabzChanged();
    partial void OnAssetIDChanging(decimal value);
    partial void OnAssetIDChanged();
    partial void OnUserNameChanging(string value);
    partial void OnUserNameChanged();
    partial void OnDeliverDateChanging(string value);
    partial void OnDeliverDateChanged();
    partial void OnQuantityChanging(double value);
    partial void OnQuantityChanged();
    partial void OnUseCaseChanging(string value);
    partial void OnUseCaseChanged();
    #endregion
	
	public tblDeliverAssetsGe()
	{
		this._tblWhAsset = default(EntityRef<tblWhAsset>);
		this._tblUser = default(EntityRef<tblUser>);
		OnCreated();
	}
	
	[Column(Storage="_DAGRowID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
	public decimal DAGRowID
	{
		get
		{
			return this._DAGRowID;
		}
		set
		{
			if ((this._DAGRowID != value))
			{
				this.OnDAGRowIDChanging(value);
				this.SendPropertyChanging();
				this._DAGRowID = value;
				this.SendPropertyChanged("DAGRowID");
				this.OnDAGRowIDChanged();
			}
		}
	}
	
	[Column(Storage="_CodeGhabz", DbType="Decimal(18,0) NOT NULL", IsPrimaryKey=true)]
	public decimal CodeGhabz
	{
		get
		{
			return this._CodeGhabz;
		}
		set
		{
			if ((this._CodeGhabz != value))
			{
				this.OnCodeGhabzChanging(value);
				this.SendPropertyChanging();
				this._CodeGhabz = value;
				this.SendPropertyChanged("CodeGhabz");
				this.OnCodeGhabzChanged();
			}
		}
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				if (this._tblWhAsset.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnAssetIDChanging(value);
				this.SendPropertyChanging();
				this._AssetID = value;
				this.SendPropertyChanged("AssetID");
				this.OnAssetIDChanged();
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				if (this._tblUser.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnUserNameChanging(value);
				this.SendPropertyChanging();
				this._UserName = value;
				this.SendPropertyChanged("UserName");
				this.OnUserNameChanged();
			}
		}
	}
	
	[Column(Storage="_DeliverDate", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string DeliverDate
	{
		get
		{
			return this._DeliverDate;
		}
		set
		{
			if ((this._DeliverDate != value))
			{
				this.OnDeliverDateChanging(value);
				this.SendPropertyChanging();
				this._DeliverDate = value;
				this.SendPropertyChanged("DeliverDate");
				this.OnDeliverDateChanged();
			}
		}
	}
	
	[Column(Storage="_Quantity", DbType="Float NOT NULL", IsPrimaryKey=true)]
	public double Quantity
	{
		get
		{
			return this._Quantity;
		}
		set
		{
			if ((this._Quantity != value))
			{
				this.OnQuantityChanging(value);
				this.SendPropertyChanging();
				this._Quantity = value;
				this.SendPropertyChanged("Quantity");
				this.OnQuantityChanged();
			}
		}
	}
	
	[Column(Storage="_UseCase", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string UseCase
	{
		get
		{
			return this._UseCase;
		}
		set
		{
			if ((this._UseCase != value))
			{
				this.OnUseCaseChanging(value);
				this.SendPropertyChanging();
				this._UseCase = value;
				this.SendPropertyChanged("UseCase");
				this.OnUseCaseChanged();
			}
		}
	}
	
	[Association(Name="tblWhAsset_tblDeliverAssetsGe", Storage="_tblWhAsset", ThisKey="AssetID", OtherKey="AssetID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblWhAsset tblWhAsset
	{
		get
		{
			return this._tblWhAsset.Entity;
		}
		set
		{
			tblWhAsset previousValue = this._tblWhAsset.Entity;
			if (((previousValue != value) 
						|| (this._tblWhAsset.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblWhAsset.Entity = null;
					previousValue.tblDeliverAssetsGes.Remove(this);
				}
				this._tblWhAsset.Entity = value;
				if ((value != null))
				{
					value.tblDeliverAssetsGes.Add(this);
					this._AssetID = value.AssetID;
				}
				else
				{
					this._AssetID = default(decimal);
				}
				this.SendPropertyChanged("tblWhAsset");
			}
		}
	}
	
	[Association(Name="tblUser_tblDeliverAssetsGe", Storage="_tblUser", ThisKey="UserName", OtherKey="UserName", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
	public tblUser tblUser
	{
		get
		{
			return this._tblUser.Entity;
		}
		set
		{
			tblUser previousValue = this._tblUser.Entity;
			if (((previousValue != value) 
						|| (this._tblUser.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblUser.Entity = null;
					previousValue.tblDeliverAssetsGes.Remove(this);
				}
				this._tblUser.Entity = value;
				if ((value != null))
				{
					value.tblDeliverAssetsGes.Add(this);
					this._UserName = value.UserName;
				}
				else
				{
					this._UserName = default(string);
				}
				this.SendPropertyChanged("tblUser");
			}
		}
	}
	
	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));
		}
	}
}

[Table(Name="dbo.xtblMojodiAssetsGe")]
public partial class xtblMojodiAssetsGe
{
	
	private decimal _AssetID;
	
	private System.Nullable<double> _Mogodi;
	
	public xtblMojodiAssetsGe()
	{
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_Mogodi", DbType="Float")]
	public System.Nullable<double> Mogodi
	{
		get
		{
			return this._Mogodi;
		}
		set
		{
			if ((this._Mogodi != value))
			{
				this._Mogodi = value;
			}
		}
	}
}

[Table(Name="dbo.tblUserTypes")]
public partial class tblUserType : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _UserTypeID;
	
	private string _UserTypeDescription;
	
	private EntitySet<tblUser> _tblUsers;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnUserTypeIDChanging(int value);
    partial void OnUserTypeIDChanged();
    partial void OnUserTypeDescriptionChanging(string value);
    partial void OnUserTypeDescriptionChanged();
    #endregion
	
	public tblUserType()
	{
		this._tblUsers = new EntitySet<tblUser>(new Action<tblUser>(this.attach_tblUsers), new Action<tblUser>(this.detach_tblUsers));
		OnCreated();
	}
	
	[Column(Storage="_UserTypeID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int UserTypeID
	{
		get
		{
			return this._UserTypeID;
		}
		set
		{
			if ((this._UserTypeID != value))
			{
				this.OnUserTypeIDChanging(value);
				this.SendPropertyChanging();
				this._UserTypeID = value;
				this.SendPropertyChanged("UserTypeID");
				this.OnUserTypeIDChanged();
			}
		}
	}
	
	[Column(Storage="_UserTypeDescription", DbType="NVarChar(1000) NOT NULL", CanBeNull=false)]
	public string UserTypeDescription
	{
		get
		{
			return this._UserTypeDescription;
		}
		set
		{
			if ((this._UserTypeDescription != value))
			{
				this.OnUserTypeDescriptionChanging(value);
				this.SendPropertyChanging();
				this._UserTypeDescription = value;
				this.SendPropertyChanged("UserTypeDescription");
				this.OnUserTypeDescriptionChanged();
			}
		}
	}
	
	[Association(Name="tblUserType_tblUser", Storage="_tblUsers", ThisKey="UserTypeID", OtherKey="UserTypeID")]
	public EntitySet<tblUser> tblUsers
	{
		get
		{
			return this._tblUsers;
		}
		set
		{
			this._tblUsers.Assign(value);
		}
	}
	
	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));
		}
	}
	
	private void attach_tblUsers(tblUser entity)
	{
		this.SendPropertyChanging();
		entity.tblUserType = this;
	}
	
	private void detach_tblUsers(tblUser entity)
	{
		this.SendPropertyChanging();
		entity.tblUserType = null;
	}
}

[Table(Name="dbo.tblUsers")]
public partial class tblUser : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private long _RowID;
	
	private string _UserName;
	
	private string _UsersPswa;
	
	private int _UserTypeID;
	
	private string _RegDateSH;
	
	private System.DateTime _RegDateDt;
	
	private string _EmailOfUser;
	
	private string _WebSiteOfUser;
	
	private string _PhonesOfUser;
	
	private string _MobilesOfUser;
	
	private string _NotesDesc;
	
	private string _NameOfUser;
	
	private string _SnameOfUser;
	
	private System.Nullable<int> _CompanyUnitID;
	
	private System.Nullable<bool> _UserIsActive;
	
	private EntitySet<tblLog> _tblLogs;
	
	private EntitySet<tblOrder> _tblOrders;
	
	private EntitySet<tblDeliverdAsset> _tblDeliverdAssets;
	
	private EntitySet<tblDeliverAssetsGe> _tblDeliverAssetsGes;
	
	private EntityRef<tblCompanyUnit> _tblCompanyUnit;
	
	private EntityRef<tblUserType> _tblUserType;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnRowIDChanging(long value);
    partial void OnRowIDChanged();
    partial void OnUserNameChanging(string value);
    partial void OnUserNameChanged();
    partial void OnUsersPswaChanging(string value);
    partial void OnUsersPswaChanged();
    partial void OnUserTypeIDChanging(int value);
    partial void OnUserTypeIDChanged();
    partial void OnRegDateSHChanging(string value);
    partial void OnRegDateSHChanged();
    partial void OnRegDateDtChanging(System.DateTime value);
    partial void OnRegDateDtChanged();
    partial void OnEmailOfUserChanging(string value);
    partial void OnEmailOfUserChanged();
    partial void OnWebSiteOfUserChanging(string value);
    partial void OnWebSiteOfUserChanged();
    partial void OnPhonesOfUserChanging(string value);
    partial void OnPhonesOfUserChanged();
    partial void OnMobilesOfUserChanging(string value);
    partial void OnMobilesOfUserChanged();
    partial void OnNotesDescChanging(string value);
    partial void OnNotesDescChanged();
    partial void OnNameOfUserChanging(string value);
    partial void OnNameOfUserChanged();
    partial void OnSnameOfUserChanging(string value);
    partial void OnSnameOfUserChanged();
    partial void OnCompanyUnitIDChanging(System.Nullable<int> value);
    partial void OnCompanyUnitIDChanged();
    partial void OnUserIsActiveChanging(System.Nullable<bool> value);
    partial void OnUserIsActiveChanged();
    #endregion
	
	public tblUser()
	{
		this._tblLogs = new EntitySet<tblLog>(new Action<tblLog>(this.attach_tblLogs), new Action<tblLog>(this.detach_tblLogs));
		this._tblOrders = new EntitySet<tblOrder>(new Action<tblOrder>(this.attach_tblOrders), new Action<tblOrder>(this.detach_tblOrders));
		this._tblDeliverdAssets = new EntitySet<tblDeliverdAsset>(new Action<tblDeliverdAsset>(this.attach_tblDeliverdAssets), new Action<tblDeliverdAsset>(this.detach_tblDeliverdAssets));
		this._tblDeliverAssetsGes = new EntitySet<tblDeliverAssetsGe>(new Action<tblDeliverAssetsGe>(this.attach_tblDeliverAssetsGes), new Action<tblDeliverAssetsGe>(this.detach_tblDeliverAssetsGes));
		this._tblCompanyUnit = default(EntityRef<tblCompanyUnit>);
		this._tblUserType = default(EntityRef<tblUserType>);
		OnCreated();
	}
	
	[Column(Storage="_RowID", AutoSync=AutoSync.Always, DbType="BigInt NOT NULL IDENTITY", IsDbGenerated=true)]
	public long RowID
	{
		get
		{
			return this._RowID;
		}
		set
		{
			if ((this._RowID != value))
			{
				this.OnRowIDChanging(value);
				this.SendPropertyChanging();
				this._RowID = value;
				this.SendPropertyChanged("RowID");
				this.OnRowIDChanged();
			}
		}
	}
	
	[Column(Storage="_UserName", DbType="NVarChar(150) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
	public string UserName
	{
		get
		{
			return this._UserName;
		}
		set
		{
			if ((this._UserName != value))
			{
				this.OnUserNameChanging(value);
				this.SendPropertyChanging();
				this._UserName = value;
				this.SendPropertyChanged("UserName");
				this.OnUserNameChanged();
			}
		}
	}
	
	[Column(Storage="_UsersPswa", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string UsersPswa
	{
		get
		{
			return this._UsersPswa;
		}
		set
		{
			if ((this._UsersPswa != value))
			{
				this.OnUsersPswaChanging(value);
				this.SendPropertyChanging();
				this._UsersPswa = value;
				this.SendPropertyChanged("UsersPswa");
				this.OnUsersPswaChanged();
			}
		}
	}
	
	[Column(Storage="_UserTypeID", DbType="Int NOT NULL")]
	public int UserTypeID
	{
		get
		{
			return this._UserTypeID;
		}
		set
		{
			if ((this._UserTypeID != value))
			{
				if (this._tblUserType.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnUserTypeIDChanging(value);
				this.SendPropertyChanging();
				this._UserTypeID = value;
				this.SendPropertyChanged("UserTypeID");
				this.OnUserTypeIDChanged();
			}
		}
	}
	
	[Column(Storage="_RegDateSH", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
	public string RegDateSH
	{
		get
		{
			return this._RegDateSH;
		}
		set
		{
			if ((this._RegDateSH != value))
			{
				this.OnRegDateSHChanging(value);
				this.SendPropertyChanging();
				this._RegDateSH = value;
				this.SendPropertyChanged("RegDateSH");
				this.OnRegDateSHChanged();
			}
		}
	}
	
	[Column(Storage="_RegDateDt", DbType="DateTime NOT NULL")]
	public System.DateTime RegDateDt
	{
		get
		{
			return this._RegDateDt;
		}
		set
		{
			if ((this._RegDateDt != value))
			{
				this.OnRegDateDtChanging(value);
				this.SendPropertyChanging();
				this._RegDateDt = value;
				this.SendPropertyChanged("RegDateDt");
				this.OnRegDateDtChanged();
			}
		}
	}
	
	[Column(Storage="_EmailOfUser", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
	public string EmailOfUser
	{
		get
		{
			return this._EmailOfUser;
		}
		set
		{
			if ((this._EmailOfUser != value))
			{
				this.OnEmailOfUserChanging(value);
				this.SendPropertyChanging();
				this._EmailOfUser = value;
				this.SendPropertyChanged("EmailOfUser");
				this.OnEmailOfUserChanged();
			}
		}
	}
	
	[Column(Storage="_WebSiteOfUser", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
	public string WebSiteOfUser
	{
		get
		{
			return this._WebSiteOfUser;
		}
		set
		{
			if ((this._WebSiteOfUser != value))
			{
				this.OnWebSiteOfUserChanging(value);
				this.SendPropertyChanging();
				this._WebSiteOfUser = value;
				this.SendPropertyChanged("WebSiteOfUser");
				this.OnWebSiteOfUserChanged();
			}
		}
	}
	
	[Column(Storage="_PhonesOfUser", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string PhonesOfUser
	{
		get
		{
			return this._PhonesOfUser;
		}
		set
		{
			if ((this._PhonesOfUser != value))
			{
				this.OnPhonesOfUserChanging(value);
				this.SendPropertyChanging();
				this._PhonesOfUser = value;
				this.SendPropertyChanged("PhonesOfUser");
				this.OnPhonesOfUserChanged();
			}
		}
	}
	
	[Column(Storage="_MobilesOfUser", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
	public string MobilesOfUser
	{
		get
		{
			return this._MobilesOfUser;
		}
		set
		{
			if ((this._MobilesOfUser != value))
			{
				this.OnMobilesOfUserChanging(value);
				this.SendPropertyChanging();
				this._MobilesOfUser = value;
				this.SendPropertyChanged("MobilesOfUser");
				this.OnMobilesOfUserChanged();
			}
		}
	}
	
	[Column(Storage="_NotesDesc", DbType="NVarChar(2500) NOT NULL", CanBeNull=false)]
	public string NotesDesc
	{
		get
		{
			return this._NotesDesc;
		}
		set
		{
			if ((this._NotesDesc != value))
			{
				this.OnNotesDescChanging(value);
				this.SendPropertyChanging();
				this._NotesDesc = value;
				this.SendPropertyChanged("NotesDesc");
				this.OnNotesDescChanged();
			}
		}
	}
	
	[Column(Storage="_NameOfUser", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string NameOfUser
	{
		get
		{
			return this._NameOfUser;
		}
		set
		{
			if ((this._NameOfUser != value))
			{
				this.OnNameOfUserChanging(value);
				this.SendPropertyChanging();
				this._NameOfUser = value;
				this.SendPropertyChanged("NameOfUser");
				this.OnNameOfUserChanged();
			}
		}
	}
	
	[Column(Storage="_SnameOfUser", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string SnameOfUser
	{
		get
		{
			return this._SnameOfUser;
		}
		set
		{
			if ((this._SnameOfUser != value))
			{
				this.OnSnameOfUserChanging(value);
				this.SendPropertyChanging();
				this._SnameOfUser = value;
				this.SendPropertyChanged("SnameOfUser");
				this.OnSnameOfUserChanged();
			}
		}
	}
	
	[Column(Storage="_CompanyUnitID", DbType="Int")]
	public System.Nullable<int> CompanyUnitID
	{
		get
		{
			return this._CompanyUnitID;
		}
		set
		{
			if ((this._CompanyUnitID != value))
			{
				if (this._tblCompanyUnit.HasLoadedOrAssignedValue)
				{
					throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
				}
				this.OnCompanyUnitIDChanging(value);
				this.SendPropertyChanging();
				this._CompanyUnitID = value;
				this.SendPropertyChanged("CompanyUnitID");
				this.OnCompanyUnitIDChanged();
			}
		}
	}
	
	[Column(Storage="_UserIsActive", DbType="Bit")]
	public System.Nullable<bool> UserIsActive
	{
		get
		{
			return this._UserIsActive;
		}
		set
		{
			if ((this._UserIsActive != value))
			{
				this.OnUserIsActiveChanging(value);
				this.SendPropertyChanging();
				this._UserIsActive = value;
				this.SendPropertyChanged("UserIsActive");
				this.OnUserIsActiveChanged();
			}
		}
	}
	
	[Association(Name="tblUser_tblLog", Storage="_tblLogs", ThisKey="UserName", OtherKey="LogedUserName")]
	public EntitySet<tblLog> tblLogs
	{
		get
		{
			return this._tblLogs;
		}
		set
		{
			this._tblLogs.Assign(value);
		}
	}
	
	[Association(Name="tblUser_tblOrder", Storage="_tblOrders", ThisKey="UserName", OtherKey="UserName")]
	public EntitySet<tblOrder> tblOrders
	{
		get
		{
			return this._tblOrders;
		}
		set
		{
			this._tblOrders.Assign(value);
		}
	}
	
	[Association(Name="tblUser_tblDeliverdAsset", Storage="_tblDeliverdAssets", ThisKey="UserName", OtherKey="UserName")]
	public EntitySet<tblDeliverdAsset> tblDeliverdAssets
	{
		get
		{
			return this._tblDeliverdAssets;
		}
		set
		{
			this._tblDeliverdAssets.Assign(value);
		}
	}
	
	[Association(Name="tblUser_tblDeliverAssetsGe", Storage="_tblDeliverAssetsGes", ThisKey="UserName", OtherKey="UserName")]
	public EntitySet<tblDeliverAssetsGe> tblDeliverAssetsGes
	{
		get
		{
			return this._tblDeliverAssetsGes;
		}
		set
		{
			this._tblDeliverAssetsGes.Assign(value);
		}
	}
	
	[Association(Name="tblCompanyUnit_tblUser", Storage="_tblCompanyUnit", ThisKey="CompanyUnitID", OtherKey="CompanyUnitID", IsForeignKey=true, DeleteRule="CASCADE")]
	public tblCompanyUnit tblCompanyUnit
	{
		get
		{
			return this._tblCompanyUnit.Entity;
		}
		set
		{
			tblCompanyUnit previousValue = this._tblCompanyUnit.Entity;
			if (((previousValue != value) 
						|| (this._tblCompanyUnit.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblCompanyUnit.Entity = null;
					previousValue.tblUsers.Remove(this);
				}
				this._tblCompanyUnit.Entity = value;
				if ((value != null))
				{
					value.tblUsers.Add(this);
					this._CompanyUnitID = value.CompanyUnitID;
				}
				else
				{
					this._CompanyUnitID = default(Nullable<int>);
				}
				this.SendPropertyChanged("tblCompanyUnit");
			}
		}
	}
	
	[Association(Name="tblUserType_tblUser", Storage="_tblUserType", ThisKey="UserTypeID", OtherKey="UserTypeID", IsForeignKey=true)]
	public tblUserType tblUserType
	{
		get
		{
			return this._tblUserType.Entity;
		}
		set
		{
			tblUserType previousValue = this._tblUserType.Entity;
			if (((previousValue != value) 
						|| (this._tblUserType.HasLoadedOrAssignedValue == false)))
			{
				this.SendPropertyChanging();
				if ((previousValue != null))
				{
					this._tblUserType.Entity = null;
					previousValue.tblUsers.Remove(this);
				}
				this._tblUserType.Entity = value;
				if ((value != null))
				{
					value.tblUsers.Add(this);
					this._UserTypeID = value.UserTypeID;
				}
				else
				{
					this._UserTypeID = default(int);
				}
				this.SendPropertyChanged("tblUserType");
			}
		}
	}
	
	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));
		}
	}
	
	private void attach_tblLogs(tblLog entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = this;
	}
	
	private void detach_tblLogs(tblLog entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = null;
	}
	
	private void attach_tblOrders(tblOrder entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = this;
	}
	
	private void detach_tblOrders(tblOrder entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = null;
	}
	
	private void attach_tblDeliverdAssets(tblDeliverdAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = this;
	}
	
	private void detach_tblDeliverdAssets(tblDeliverdAsset entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = null;
	}
	
	private void attach_tblDeliverAssetsGes(tblDeliverAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = this;
	}
	
	private void detach_tblDeliverAssetsGes(tblDeliverAssetsGe entity)
	{
		this.SendPropertyChanging();
		entity.tblUser = null;
	}
}

[Table(Name="dbo.xtlDrpMandeh")]
public partial class xtlDrpMandeh
{
	
	private decimal _AssetID;
	
	private string _Mandeh;
	
	public xtlDrpMandeh()
	{
	}
	
	[Column(Storage="_AssetID", DbType="Decimal(18,0) NOT NULL")]
	public decimal AssetID
	{
		get
		{
			return this._AssetID;
		}
		set
		{
			if ((this._AssetID != value))
			{
				this._AssetID = value;
			}
		}
	}
	
	[Column(Storage="_Mandeh", DbType="NVarChar(284)")]
	public string Mandeh
	{
		get
		{
			return this._Mandeh;
		}
		set
		{
			if ((this._Mandeh != value))
			{
				this._Mandeh = value;
			}
		}
	}
}

[Table(Name="dbo.tblPagePermision")]
public partial class tblPagePermision : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _PageID;
	
	private string _PageName;
	
	private string _PageTitle;
	
	private bool _IsAdmin;
	
	private bool _IsOperator;
	
	private bool _IsOdderUser;
	
	private System.Nullable<bool> _NoteLogedOK;
	
	private System.Nullable<double> _SortPermID;
	
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnPageIDChanging(int value);
    partial void OnPageIDChanged();
    partial void OnPageNameChanging(string value);
    partial void OnPageNameChanged();
    partial void OnPageTitleChanging(string value);
    partial void OnPageTitleChanged();
    partial void OnIsAdminChanging(bool value);
    partial void OnIsAdminChanged();
    partial void OnIsOperatorChanging(bool value);
    partial void OnIsOperatorChanged();
    partial void OnIsOdderUserChanging(bool value);
    partial void OnIsOdderUserChanged();
    partial void OnNoteLogedOKChanging(System.Nullable<bool> value);
    partial void OnNoteLogedOKChanged();
    partial void OnSortPermIDChanging(System.Nullable<double> value);
    partial void OnSortPermIDChanged();
    #endregion
	
	public tblPagePermision()
	{
		OnCreated();
	}
	
	[Column(Storage="_PageID", AutoSync=AutoSync.Always, DbType="Int NOT NULL IDENTITY", IsDbGenerated=true)]
	public int PageID
	{
		get
		{
			return this._PageID;
		}
		set
		{
			if ((this._PageID != value))
			{
				this.OnPageIDChanging(value);
				this.SendPropertyChanging();
				this._PageID = value;
				this.SendPropertyChanged("PageID");
				this.OnPageIDChanged();
			}
		}
	}
	
	[Column(Storage="_PageName", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
	public string PageName
	{
		get
		{
			return this._PageName;
		}
		set
		{
			if ((this._PageName != value))
			{
				this.OnPageNameChanging(value);
				this.SendPropertyChanging();
				this._PageName = value;
				this.SendPropertyChanged("PageName");
				this.OnPageNameChanged();
			}
		}
	}
	
	[Column(Storage="_PageTitle", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
	public string PageTitle
	{
		get
		{
			return this._PageTitle;
		}
		set
		{
			if ((this._PageTitle != value))
			{
				this.OnPageTitleChanging(value);
				this.SendPropertyChanging();
				this._PageTitle = value;
				this.SendPropertyChanged("PageTitle");
				this.OnPageTitleChanged();
			}
		}
	}
	
	[Column(Storage="_IsAdmin", DbType="Bit NOT NULL")]
	public bool IsAdmin
	{
		get
		{
			return this._IsAdmin;
		}
		set
		{
			if ((this._IsAdmin != value))
			{
				this.OnIsAdminChanging(value);
				this.SendPropertyChanging();
				this._IsAdmin = value;
				this.SendPropertyChanged("IsAdmin");
				this.OnIsAdminChanged();
			}
		}
	}
	
	[Column(Storage="_IsOperator", DbType="Bit NOT NULL")]
	public bool IsOperator
	{
		get
		{
			return this._IsOperator;
		}
		set
		{
			if ((this._IsOperator != value))
			{
				this.OnIsOperatorChanging(value);
				this.SendPropertyChanging();
				this._IsOperator = value;
				this.SendPropertyChanged("IsOperator");
				this.OnIsOperatorChanged();
			}
		}
	}
	
	[Column(Storage="_IsOdderUser", DbType="Bit NOT NULL")]
	public bool IsOdderUser
	{
		get
		{
			return this._IsOdderUser;
		}
		set
		{
			if ((this._IsOdderUser != value))
			{
				this.OnIsOdderUserChanging(value);
				this.SendPropertyChanging();
				this._IsOdderUser = value;
				this.SendPropertyChanged("IsOdderUser");
				this.OnIsOdderUserChanged();
			}
		}
	}
	
	[Column(Storage="_NoteLogedOK", DbType="Bit")]
	public System.Nullable<bool> NoteLogedOK
	{
		get
		{
			return this._NoteLogedOK;
		}
		set
		{
			if ((this._NoteLogedOK != value))
			{
				this.OnNoteLogedOKChanging(value);
				this.SendPropertyChanging();
				this._NoteLogedOK = value;
				this.SendPropertyChanged("NoteLogedOK");
				this.OnNoteLogedOKChanged();
			}
		}
	}
	
	[Column(Storage="_SortPermID", DbType="Float")]
	public System.Nullable<double> SortPermID
	{
		get
		{
			return this._SortPermID;
		}
		set
		{
			if ((this._SortPermID != value))
			{
				this.OnSortPermIDChanging(value);
				this.SendPropertyChanging();
				this._SortPermID = value;
				this.SendPropertyChanged("SortPermID");
				this.OnSortPermIDChanged();
			}
		}
	}
	
	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
