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

namespace RadioLogy
{
	using System.Data.Linq;
	using System.Data.Linq.Mapping;
	using System.Data;
	using System.Collections.Generic;
	using System.Reflection;
	using System.Linq;
	using System.Linq.Expressions;
	using System.ComponentModel;
	using System;
	
	
	[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="RadioLogyDB")]
	public partial class LSC_RadioLogyDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void InserttblBimar(tblBimar instance);
    partial void UpdatetblBimar(tblBimar instance);
    partial void DeletetblBimar(tblBimar instance);
    partial void InserttblUserType(tblUserType instance);
    partial void UpdatetblUserType(tblUserType instance);
    partial void DeletetblUserType(tblUserType instance);
    partial void InserttblBimehType(tblBimehType instance);
    partial void UpdatetblBimehType(tblBimehType instance);
    partial void DeletetblBimehType(tblBimehType instance);
    partial void InserttblLog(tblLog instance);
    partial void UpdatetblLog(tblLog instance);
    partial void DeletetblLog(tblLog instance);
    partial void InserttblPaziresh(tblPaziresh instance);
    partial void UpdatetblPaziresh(tblPaziresh instance);
    partial void DeletetblPaziresh(tblPaziresh instance);
    partial void InserttblRadioLogyPic(tblRadioLogyPic instance);
    partial void UpdatetblRadioLogyPic(tblRadioLogyPic instance);
    partial void DeletetblRadioLogyPic(tblRadioLogyPic instance);
    partial void InserttblRadioLogyServiceType(tblRadioLogyServiceType instance);
    partial void UpdatetblRadioLogyServiceType(tblRadioLogyServiceType instance);
    partial void DeletetblRadioLogyServiceType(tblRadioLogyServiceType instance);
    partial void InserttblUser(tblUser instance);
    partial void UpdatetblUser(tblUser instance);
    partial void DeletetblUser(tblUser instance);
    #endregion
		
		public LSC_RadioLogyDataContext() : 
				base(global::RadioLogy.Properties.Settings.Default.RadioLogyDBConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_RadioLogyDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_RadioLogyDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_RadioLogyDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_RadioLogyDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public System.Data.Linq.Table<tblBimar> tblBimars
		{
			get
			{
				return this.GetTable<tblBimar>();
			}
		}
		
		public System.Data.Linq.Table<tblUserType> tblUserTypes
		{
			get
			{
				return this.GetTable<tblUserType>();
			}
		}
		
		public System.Data.Linq.Table<tblBimehType> tblBimehTypes
		{
			get
			{
				return this.GetTable<tblBimehType>();
			}
		}
		
		public System.Data.Linq.Table<tblLog> tblLogs
		{
			get
			{
				return this.GetTable<tblLog>();
			}
		}
		
		public System.Data.Linq.Table<tblPaziresh> tblPazireshes
		{
			get
			{
				return this.GetTable<tblPaziresh>();
			}
		}
		
		public System.Data.Linq.Table<tblRadioLogyPic> tblRadioLogyPics
		{
			get
			{
				return this.GetTable<tblRadioLogyPic>();
			}
		}
		
		public System.Data.Linq.Table<tblRadioLogyServiceType> tblRadioLogyServiceTypes
		{
			get
			{
				return this.GetTable<tblRadioLogyServiceType>();
			}
		}
		
		public System.Data.Linq.Table<tblUser> tblUsers
		{
			get
			{
				return this.GetTable<tblUser>();
			}
		}
		
		public System.Data.Linq.Table<xtblBimar> xtblBimars
		{
			get
			{
				return this.GetTable<xtblBimar>();
			}
		}
		
		public System.Data.Linq.Table<xtblPaziresh> xtblPazireshes
		{
			get
			{
				return this.GetTable<xtblPaziresh>();
			}
		}
		
		public System.Data.Linq.Table<xtblnumberPaziresh> xtblnumberPazireshes
		{
			get
			{
				return this.GetTable<xtblnumberPaziresh>();
			}
		}
		
		public System.Data.Linq.Table<xtblBimarInfo> xtblBimarInfos
		{
			get
			{
				return this.GetTable<xtblBimarInfo>();
			}
		}
		
		public System.Data.Linq.Table<xtblPazireshReport> xtblPazireshReports
		{
			get
			{
				return this.GetTable<xtblPazireshReport>();
			}
		}
		
		public System.Data.Linq.Table<xtblPictureRadioLogy> xtblPictureRadioLogies
		{
			get
			{
				return this.GetTable<xtblPictureRadioLogy>();
			}
		}
		
		public System.Data.Linq.Table<xtblUsersInformation> xtblUsersInformations
		{
			get
			{
				return this.GetTable<xtblUsersInformation>();
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblBimar")]
	public partial class tblBimar : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private decimal _BimarID;
		
		private string _BimarName;
		
		private string _BimarFamily;
		
		private string _DateOzviatSH;
		
		private string _BimarTell;
		
		private string _BimarMobail;
		
		private string _BimarAddress;
		
		private bool _BimarIsActive;
		
		private EntitySet<tblPaziresh> _tblPazireshes;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnBimarIDChanging(decimal value);
    partial void OnBimarIDChanged();
    partial void OnBimarNameChanging(string value);
    partial void OnBimarNameChanged();
    partial void OnBimarFamilyChanging(string value);
    partial void OnBimarFamilyChanged();
    partial void OnDateOzviatSHChanging(string value);
    partial void OnDateOzviatSHChanged();
    partial void OnBimarTellChanging(string value);
    partial void OnBimarTellChanged();
    partial void OnBimarMobailChanging(string value);
    partial void OnBimarMobailChanged();
    partial void OnBimarAddressChanging(string value);
    partial void OnBimarAddressChanged();
    partial void OnBimarIsActiveChanging(bool value);
    partial void OnBimarIsActiveChanged();
    #endregion
		
		public tblBimar()
		{
			this._tblPazireshes = new EntitySet<tblPaziresh>(new Action<tblPaziresh>(this.attach_tblPazireshes), new Action<tblPaziresh>(this.detach_tblPazireshes));
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public decimal BimarID
		{
			get
			{
				return this._BimarID;
			}
			set
			{
				if ((this._BimarID != value))
				{
					this.OnBimarIDChanging(value);
					this.SendPropertyChanging();
					this._BimarID = value;
					this.SendPropertyChanged("BimarID");
					this.OnBimarIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string BimarName
		{
			get
			{
				return this._BimarName;
			}
			set
			{
				if ((this._BimarName != value))
				{
					this.OnBimarNameChanging(value);
					this.SendPropertyChanging();
					this._BimarName = value;
					this.SendPropertyChanged("BimarName");
					this.OnBimarNameChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarFamily", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string BimarFamily
		{
			get
			{
				return this._BimarFamily;
			}
			set
			{
				if ((this._BimarFamily != value))
				{
					this.OnBimarFamilyChanging(value);
					this.SendPropertyChanging();
					this._BimarFamily = value;
					this.SendPropertyChanged("BimarFamily");
					this.OnBimarFamilyChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateOzviatSH", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
		public string DateOzviatSH
		{
			get
			{
				return this._DateOzviatSH;
			}
			set
			{
				if ((this._DateOzviatSH != value))
				{
					this.OnDateOzviatSHChanging(value);
					this.SendPropertyChanging();
					this._DateOzviatSH = value;
					this.SendPropertyChanged("DateOzviatSH");
					this.OnDateOzviatSHChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarTell", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
		public string BimarTell
		{
			get
			{
				return this._BimarTell;
			}
			set
			{
				if ((this._BimarTell != value))
				{
					this.OnBimarTellChanging(value);
					this.SendPropertyChanging();
					this._BimarTell = value;
					this.SendPropertyChanged("BimarTell");
					this.OnBimarTellChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarMobail", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
		public string BimarMobail
		{
			get
			{
				return this._BimarMobail;
			}
			set
			{
				if ((this._BimarMobail != value))
				{
					this.OnBimarMobailChanging(value);
					this.SendPropertyChanging();
					this._BimarMobail = value;
					this.SendPropertyChanged("BimarMobail");
					this.OnBimarMobailChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarAddress", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
		public string BimarAddress
		{
			get
			{
				return this._BimarAddress;
			}
			set
			{
				if ((this._BimarAddress != value))
				{
					this.OnBimarAddressChanging(value);
					this.SendPropertyChanging();
					this._BimarAddress = value;
					this.SendPropertyChanged("BimarAddress");
					this.OnBimarAddressChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarIsActive", DbType="Bit NOT NULL")]
		public bool BimarIsActive
		{
			get
			{
				return this._BimarIsActive;
			}
			set
			{
				if ((this._BimarIsActive != value))
				{
					this.OnBimarIsActiveChanging(value);
					this.SendPropertyChanging();
					this._BimarIsActive = value;
					this.SendPropertyChanged("BimarIsActive");
					this.OnBimarIsActiveChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblBimar_tblPaziresh", Storage="_tblPazireshes", ThisKey="BimarID", OtherKey="BimarID")]
		public EntitySet<tblPaziresh> tblPazireshes
		{
			get
			{
				return this._tblPazireshes;
			}
			set
			{
				this._tblPazireshes.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_tblPazireshes(tblPaziresh entity)
		{
			this.SendPropertyChanging();
			entity.tblBimar = this;
		}
		
		private void detach_tblPazireshes(tblPaziresh entity)
		{
			this.SendPropertyChanging();
			entity.tblBimar = null;
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblUserTypes")]
	public partial class tblUserType : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _UserTypeID;
		
		private string _UsersTypeDescription;
		
		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 OnUsersTypeDescriptionChanging(string value);
    partial void OnUsersTypeDescriptionChanged();
    #endregion
		
		public tblUserType()
		{
			this._tblUsers = new EntitySet<tblUser>(new Action<tblUser>(this.attach_tblUsers), new Action<tblUser>(this.detach_tblUsers));
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(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();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersTypeDescription", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersTypeDescription
		{
			get
			{
				return this._UsersTypeDescription;
			}
			set
			{
				if ((this._UsersTypeDescription != value))
				{
					this.OnUsersTypeDescriptionChanging(value);
					this.SendPropertyChanging();
					this._UsersTypeDescription = value;
					this.SendPropertyChanged("UsersTypeDescription");
					this.OnUsersTypeDescriptionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(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;
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblBimehTypes")]
	public partial class tblBimehType : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _BimehTypeID;
		
		private string _BimehDescription;
		
		private EntitySet<tblPaziresh> _tblPazireshes;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnBimehTypeIDChanging(int value);
    partial void OnBimehTypeIDChanged();
    partial void OnBimehDescriptionChanging(string value);
    partial void OnBimehDescriptionChanged();
    #endregion
		
		public tblBimehType()
		{
			this._tblPazireshes = new EntitySet<tblPaziresh>(new Action<tblPaziresh>(this.attach_tblPazireshes), new Action<tblPaziresh>(this.detach_tblPazireshes));
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimehTypeID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int BimehTypeID
		{
			get
			{
				return this._BimehTypeID;
			}
			set
			{
				if ((this._BimehTypeID != value))
				{
					this.OnBimehTypeIDChanging(value);
					this.SendPropertyChanging();
					this._BimehTypeID = value;
					this.SendPropertyChanged("BimehTypeID");
					this.OnBimehTypeIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimehDescription", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
		public string BimehDescription
		{
			get
			{
				return this._BimehDescription;
			}
			set
			{
				if ((this._BimehDescription != value))
				{
					this.OnBimehDescriptionChanging(value);
					this.SendPropertyChanging();
					this._BimehDescription = value;
					this.SendPropertyChanged("BimehDescription");
					this.OnBimehDescriptionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblBimehType_tblPaziresh", Storage="_tblPazireshes", ThisKey="BimehTypeID", OtherKey="BimehTypeID")]
		public EntitySet<tblPaziresh> tblPazireshes
		{
			get
			{
				return this._tblPazireshes;
			}
			set
			{
				this._tblPazireshes.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_tblPazireshes(tblPaziresh entity)
		{
			this.SendPropertyChanging();
			entity.tblBimehType = this;
		}
		
		private void detach_tblPazireshes(tblPaziresh entity)
		{
			this.SendPropertyChanging();
			entity.tblBimehType = null;
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblLogs")]
	public partial class tblLog : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private decimal _LogID;
		
		private System.DateTime _LogDateTime;
		
		private string _LogDescription;
		
		private string _UsersName;
		
		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 OnLogDateTimeChanging(System.DateTime value);
    partial void OnLogDateTimeChanged();
    partial void OnLogDescriptionChanging(string value);
    partial void OnLogDescriptionChanged();
    partial void OnUsersNameChanging(string value);
    partial void OnUsersNameChanged();
    #endregion
		
		public tblLog()
		{
			this._tblUser = default(EntityRef<tblUser>);
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(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();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LogDateTime", DbType="DateTime NOT NULL")]
		public System.DateTime LogDateTime
		{
			get
			{
				return this._LogDateTime;
			}
			set
			{
				if ((this._LogDateTime != value))
				{
					this.OnLogDateTimeChanging(value);
					this.SendPropertyChanging();
					this._LogDateTime = value;
					this.SendPropertyChanged("LogDateTime");
					this.OnLogDateTimeChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LogDescription", DbType="NVarChar(250) 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();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersName
		{
			get
			{
				return this._UsersName;
			}
			set
			{
				if ((this._UsersName != value))
				{
					if (this._tblUser.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnUsersNameChanging(value);
					this.SendPropertyChanging();
					this._UsersName = value;
					this.SendPropertyChanged("UsersName");
					this.OnUsersNameChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblUser_tblLog", Storage="_tblUser", ThisKey="UsersName", OtherKey="UsersName", 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._UsersName = value.UsersName;
					}
					else
					{
						this._UsersName = 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));
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblPaziresh")]
	public partial class tblPaziresh : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private decimal _PazireshID;
		
		private decimal _BimarID;
		
		private string _BimaryDescription;
		
		private string _PazireshDateSh;
		
		private int _BimehTypeID;
		
		private int _ServiceTypeID;
		
		private decimal _HaggeVisit;
		
		private EntitySet<tblRadioLogyPic> _tblRadioLogyPics;
		
		private EntityRef<tblBimar> _tblBimar;
		
		private EntityRef<tblBimehType> _tblBimehType;
		
		private EntityRef<tblRadioLogyServiceType> _tblRadioLogyServiceType;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnPazireshIDChanging(decimal value);
    partial void OnPazireshIDChanged();
    partial void OnBimarIDChanging(decimal value);
    partial void OnBimarIDChanged();
    partial void OnBimaryDescriptionChanging(string value);
    partial void OnBimaryDescriptionChanged();
    partial void OnPazireshDateShChanging(string value);
    partial void OnPazireshDateShChanged();
    partial void OnBimehTypeIDChanging(int value);
    partial void OnBimehTypeIDChanged();
    partial void OnServiceTypeIDChanging(int value);
    partial void OnServiceTypeIDChanged();
    partial void OnHaggeVisitChanging(decimal value);
    partial void OnHaggeVisitChanged();
    #endregion
		
		public tblPaziresh()
		{
			this._tblRadioLogyPics = new EntitySet<tblRadioLogyPic>(new Action<tblRadioLogyPic>(this.attach_tblRadioLogyPics), new Action<tblRadioLogyPic>(this.detach_tblRadioLogyPics));
			this._tblBimar = default(EntityRef<tblBimar>);
			this._tblBimehType = default(EntityRef<tblBimehType>);
			this._tblRadioLogyServiceType = default(EntityRef<tblRadioLogyServiceType>);
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public decimal PazireshID
		{
			get
			{
				return this._PazireshID;
			}
			set
			{
				if ((this._PazireshID != value))
				{
					this.OnPazireshIDChanging(value);
					this.SendPropertyChanging();
					this._PazireshID = value;
					this.SendPropertyChanged("PazireshID");
					this.OnPazireshIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarID", DbType="Decimal(18,0) NOT NULL")]
		public decimal BimarID
		{
			get
			{
				return this._BimarID;
			}
			set
			{
				if ((this._BimarID != value))
				{
					if (this._tblBimar.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnBimarIDChanging(value);
					this.SendPropertyChanging();
					this._BimarID = value;
					this.SendPropertyChanged("BimarID");
					this.OnBimarIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimaryDescription", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
		public string BimaryDescription
		{
			get
			{
				return this._BimaryDescription;
			}
			set
			{
				if ((this._BimaryDescription != value))
				{
					this.OnBimaryDescriptionChanging(value);
					this.SendPropertyChanging();
					this._BimaryDescription = value;
					this.SendPropertyChanged("BimaryDescription");
					this.OnBimaryDescriptionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshDateSh", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
		public string PazireshDateSh
		{
			get
			{
				return this._PazireshDateSh;
			}
			set
			{
				if ((this._PazireshDateSh != value))
				{
					this.OnPazireshDateShChanging(value);
					this.SendPropertyChanging();
					this._PazireshDateSh = value;
					this.SendPropertyChanged("PazireshDateSh");
					this.OnPazireshDateShChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimehTypeID", DbType="Int NOT NULL")]
		public int BimehTypeID
		{
			get
			{
				return this._BimehTypeID;
			}
			set
			{
				if ((this._BimehTypeID != value))
				{
					if (this._tblBimehType.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnBimehTypeIDChanging(value);
					this.SendPropertyChanging();
					this._BimehTypeID = value;
					this.SendPropertyChanged("BimehTypeID");
					this.OnBimehTypeIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ServiceTypeID", DbType="Int NOT NULL")]
		public int ServiceTypeID
		{
			get
			{
				return this._ServiceTypeID;
			}
			set
			{
				if ((this._ServiceTypeID != value))
				{
					if (this._tblRadioLogyServiceType.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnServiceTypeIDChanging(value);
					this.SendPropertyChanging();
					this._ServiceTypeID = value;
					this.SendPropertyChanged("ServiceTypeID");
					this.OnServiceTypeIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HaggeVisit", DbType="Decimal(18,0) NOT NULL")]
		public decimal HaggeVisit
		{
			get
			{
				return this._HaggeVisit;
			}
			set
			{
				if ((this._HaggeVisit != value))
				{
					this.OnHaggeVisitChanging(value);
					this.SendPropertyChanging();
					this._HaggeVisit = value;
					this.SendPropertyChanged("HaggeVisit");
					this.OnHaggeVisitChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblPaziresh_tblRadioLogyPic", Storage="_tblRadioLogyPics", ThisKey="PazireshID", OtherKey="PazireshID")]
		public EntitySet<tblRadioLogyPic> tblRadioLogyPics
		{
			get
			{
				return this._tblRadioLogyPics;
			}
			set
			{
				this._tblRadioLogyPics.Assign(value);
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblBimar_tblPaziresh", Storage="_tblBimar", ThisKey="BimarID", OtherKey="BimarID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
		public tblBimar tblBimar
		{
			get
			{
				return this._tblBimar.Entity;
			}
			set
			{
				tblBimar previousValue = this._tblBimar.Entity;
				if (((previousValue != value) 
							|| (this._tblBimar.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._tblBimar.Entity = null;
						previousValue.tblPazireshes.Remove(this);
					}
					this._tblBimar.Entity = value;
					if ((value != null))
					{
						value.tblPazireshes.Add(this);
						this._BimarID = value.BimarID;
					}
					else
					{
						this._BimarID = default(decimal);
					}
					this.SendPropertyChanged("tblBimar");
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblBimehType_tblPaziresh", Storage="_tblBimehType", ThisKey="BimehTypeID", OtherKey="BimehTypeID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
		public tblBimehType tblBimehType
		{
			get
			{
				return this._tblBimehType.Entity;
			}
			set
			{
				tblBimehType previousValue = this._tblBimehType.Entity;
				if (((previousValue != value) 
							|| (this._tblBimehType.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._tblBimehType.Entity = null;
						previousValue.tblPazireshes.Remove(this);
					}
					this._tblBimehType.Entity = value;
					if ((value != null))
					{
						value.tblPazireshes.Add(this);
						this._BimehTypeID = value.BimehTypeID;
					}
					else
					{
						this._BimehTypeID = default(int);
					}
					this.SendPropertyChanged("tblBimehType");
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblRadioLogyServiceType_tblPaziresh", Storage="_tblRadioLogyServiceType", ThisKey="ServiceTypeID", OtherKey="ServiceTypeID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
		public tblRadioLogyServiceType tblRadioLogyServiceType
		{
			get
			{
				return this._tblRadioLogyServiceType.Entity;
			}
			set
			{
				tblRadioLogyServiceType previousValue = this._tblRadioLogyServiceType.Entity;
				if (((previousValue != value) 
							|| (this._tblRadioLogyServiceType.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._tblRadioLogyServiceType.Entity = null;
						previousValue.tblPazireshes.Remove(this);
					}
					this._tblRadioLogyServiceType.Entity = value;
					if ((value != null))
					{
						value.tblPazireshes.Add(this);
						this._ServiceTypeID = value.ServiceTypeID;
					}
					else
					{
						this._ServiceTypeID = default(int);
					}
					this.SendPropertyChanged("tblRadioLogyServiceType");
				}
			}
		}
		
		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_tblRadioLogyPics(tblRadioLogyPic entity)
		{
			this.SendPropertyChanging();
			entity.tblPaziresh = this;
		}
		
		private void detach_tblRadioLogyPics(tblRadioLogyPic entity)
		{
			this.SendPropertyChanging();
			entity.tblPaziresh = null;
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblRadioLogyPics")]
	public partial class tblRadioLogyPic : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private decimal _RadPicID;
		
		private decimal _PazireshID;
		
		private string _RadPicDescription;
		
		private string _RadiologOperator;
		
		private string _DateOfActPicSH;
		
		private EntityRef<tblPaziresh> _tblPaziresh;
		
		private EntityRef<tblUser> _tblUser;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnRadPicIDChanging(decimal value);
    partial void OnRadPicIDChanged();
    partial void OnPazireshIDChanging(decimal value);
    partial void OnPazireshIDChanged();
    partial void OnRadPicDescriptionChanging(string value);
    partial void OnRadPicDescriptionChanged();
    partial void OnRadiologOperatorChanging(string value);
    partial void OnRadiologOperatorChanged();
    partial void OnDateOfActPicSHChanging(string value);
    partial void OnDateOfActPicSHChanged();
    #endregion
		
		public tblRadioLogyPic()
		{
			this._tblPaziresh = default(EntityRef<tblPaziresh>);
			this._tblUser = default(EntityRef<tblUser>);
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadPicID", AutoSync=AutoSync.OnInsert, DbType="Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public decimal RadPicID
		{
			get
			{
				return this._RadPicID;
			}
			set
			{
				if ((this._RadPicID != value))
				{
					this.OnRadPicIDChanging(value);
					this.SendPropertyChanging();
					this._RadPicID = value;
					this.SendPropertyChanged("RadPicID");
					this.OnRadPicIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshID", DbType="Decimal(18,0) NOT NULL")]
		public decimal PazireshID
		{
			get
			{
				return this._PazireshID;
			}
			set
			{
				if ((this._PazireshID != value))
				{
					if (this._tblPaziresh.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnPazireshIDChanging(value);
					this.SendPropertyChanging();
					this._PazireshID = value;
					this.SendPropertyChanged("PazireshID");
					this.OnPazireshIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadPicDescription", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
		public string RadPicDescription
		{
			get
			{
				return this._RadPicDescription;
			}
			set
			{
				if ((this._RadPicDescription != value))
				{
					this.OnRadPicDescriptionChanging(value);
					this.SendPropertyChanging();
					this._RadPicDescription = value;
					this.SendPropertyChanged("RadPicDescription");
					this.OnRadPicDescriptionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadiologOperator", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string RadiologOperator
		{
			get
			{
				return this._RadiologOperator;
			}
			set
			{
				if ((this._RadiologOperator != value))
				{
					if (this._tblUser.HasLoadedOrAssignedValue)
					{
						throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
					}
					this.OnRadiologOperatorChanging(value);
					this.SendPropertyChanging();
					this._RadiologOperator = value;
					this.SendPropertyChanged("RadiologOperator");
					this.OnRadiologOperatorChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateOfActPicSH", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
		public string DateOfActPicSH
		{
			get
			{
				return this._DateOfActPicSH;
			}
			set
			{
				if ((this._DateOfActPicSH != value))
				{
					this.OnDateOfActPicSHChanging(value);
					this.SendPropertyChanging();
					this._DateOfActPicSH = value;
					this.SendPropertyChanged("DateOfActPicSH");
					this.OnDateOfActPicSHChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblPaziresh_tblRadioLogyPic", Storage="_tblPaziresh", ThisKey="PazireshID", OtherKey="PazireshID", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
		public tblPaziresh tblPaziresh
		{
			get
			{
				return this._tblPaziresh.Entity;
			}
			set
			{
				tblPaziresh previousValue = this._tblPaziresh.Entity;
				if (((previousValue != value) 
							|| (this._tblPaziresh.HasLoadedOrAssignedValue == false)))
				{
					this.SendPropertyChanging();
					if ((previousValue != null))
					{
						this._tblPaziresh.Entity = null;
						previousValue.tblRadioLogyPics.Remove(this);
					}
					this._tblPaziresh.Entity = value;
					if ((value != null))
					{
						value.tblRadioLogyPics.Add(this);
						this._PazireshID = value.PazireshID;
					}
					else
					{
						this._PazireshID = default(decimal);
					}
					this.SendPropertyChanged("tblPaziresh");
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblUser_tblRadioLogyPic", Storage="_tblUser", ThisKey="RadiologOperator", OtherKey="UsersName", 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.tblRadioLogyPics.Remove(this);
					}
					this._tblUser.Entity = value;
					if ((value != null))
					{
						value.tblRadioLogyPics.Add(this);
						this._RadiologOperator = value.UsersName;
					}
					else
					{
						this._RadiologOperator = 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));
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblRadioLogyServiceType")]
	public partial class tblRadioLogyServiceType : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _ServiceTypeID;
		
		private string _ServiceTypeDescription;
		
		private EntitySet<tblPaziresh> _tblPazireshes;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnServiceTypeIDChanging(int value);
    partial void OnServiceTypeIDChanged();
    partial void OnServiceTypeDescriptionChanging(string value);
    partial void OnServiceTypeDescriptionChanged();
    #endregion
		
		public tblRadioLogyServiceType()
		{
			this._tblPazireshes = new EntitySet<tblPaziresh>(new Action<tblPaziresh>(this.attach_tblPazireshes), new Action<tblPaziresh>(this.detach_tblPazireshes));
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ServiceTypeID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int ServiceTypeID
		{
			get
			{
				return this._ServiceTypeID;
			}
			set
			{
				if ((this._ServiceTypeID != value))
				{
					this.OnServiceTypeIDChanging(value);
					this.SendPropertyChanging();
					this._ServiceTypeID = value;
					this.SendPropertyChanged("ServiceTypeID");
					this.OnServiceTypeIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ServiceTypeDescription", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
		public string ServiceTypeDescription
		{
			get
			{
				return this._ServiceTypeDescription;
			}
			set
			{
				if ((this._ServiceTypeDescription != value))
				{
					this.OnServiceTypeDescriptionChanging(value);
					this.SendPropertyChanging();
					this._ServiceTypeDescription = value;
					this.SendPropertyChanged("ServiceTypeDescription");
					this.OnServiceTypeDescriptionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblRadioLogyServiceType_tblPaziresh", Storage="_tblPazireshes", ThisKey="ServiceTypeID", OtherKey="ServiceTypeID")]
		public EntitySet<tblPaziresh> tblPazireshes
		{
			get
			{
				return this._tblPazireshes;
			}
			set
			{
				this._tblPazireshes.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_tblPazireshes(tblPaziresh entity)
		{
			this.SendPropertyChanging();
			entity.tblRadioLogyServiceType = this;
		}
		
		private void detach_tblPazireshes(tblPaziresh entity)
		{
			this.SendPropertyChanging();
			entity.tblRadioLogyServiceType = null;
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblUsers")]
	public partial class tblUser : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _UsersID;
		
		private string _UsersName;
		
		private string _UsersPass;
		
		private string _UserFName;
		
		private string _UsersSName;
		
		private int _UserTypeID;
		
		private string _UserTell;
		
		private string _UserMobail;
		
		private bool _UserBanBit;
		
		private EntitySet<tblLog> _tblLogs;
		
		private EntitySet<tblRadioLogyPic> _tblRadioLogyPics;
		
		private EntityRef<tblUserType> _tblUserType;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnUsersIDChanging(int value);
    partial void OnUsersIDChanged();
    partial void OnUsersNameChanging(string value);
    partial void OnUsersNameChanged();
    partial void OnUsersPassChanging(string value);
    partial void OnUsersPassChanged();
    partial void OnUserFNameChanging(string value);
    partial void OnUserFNameChanged();
    partial void OnUsersSNameChanging(string value);
    partial void OnUsersSNameChanged();
    partial void OnUserTypeIDChanging(int value);
    partial void OnUserTypeIDChanged();
    partial void OnUserTellChanging(string value);
    partial void OnUserTellChanged();
    partial void OnUserMobailChanging(string value);
    partial void OnUserMobailChanged();
    partial void OnUserBanBitChanging(bool value);
    partial void OnUserBanBitChanged();
    #endregion
		
		public tblUser()
		{
			this._tblLogs = new EntitySet<tblLog>(new Action<tblLog>(this.attach_tblLogs), new Action<tblLog>(this.detach_tblLogs));
			this._tblRadioLogyPics = new EntitySet<tblRadioLogyPic>(new Action<tblRadioLogyPic>(this.attach_tblRadioLogyPics), new Action<tblRadioLogyPic>(this.detach_tblRadioLogyPics));
			this._tblUserType = default(EntityRef<tblUserType>);
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersID", AutoSync=AutoSync.Always, DbType="Int NOT NULL IDENTITY", IsDbGenerated=true)]
		public int UsersID
		{
			get
			{
				return this._UsersID;
			}
			set
			{
				if ((this._UsersID != value))
				{
					this.OnUsersIDChanging(value);
					this.SendPropertyChanging();
					this._UsersID = value;
					this.SendPropertyChanged("UsersID");
					this.OnUsersIDChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersName", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
		public string UsersName
		{
			get
			{
				return this._UsersName;
			}
			set
			{
				if ((this._UsersName != value))
				{
					this.OnUsersNameChanging(value);
					this.SendPropertyChanging();
					this._UsersName = value;
					this.SendPropertyChanged("UsersName");
					this.OnUsersNameChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersPass", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersPass
		{
			get
			{
				return this._UsersPass;
			}
			set
			{
				if ((this._UsersPass != value))
				{
					this.OnUsersPassChanging(value);
					this.SendPropertyChanging();
					this._UsersPass = value;
					this.SendPropertyChanged("UsersPass");
					this.OnUsersPassChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserFName", DbType="NVarChar(50)")]
		public string UserFName
		{
			get
			{
				return this._UserFName;
			}
			set
			{
				if ((this._UserFName != value))
				{
					this.OnUserFNameChanging(value);
					this.SendPropertyChanging();
					this._UserFName = value;
					this.SendPropertyChanged("UserFName");
					this.OnUserFNameChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersSName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersSName
		{
			get
			{
				return this._UsersSName;
			}
			set
			{
				if ((this._UsersSName != value))
				{
					this.OnUsersSNameChanging(value);
					this.SendPropertyChanging();
					this._UsersSName = value;
					this.SendPropertyChanged("UsersSName");
					this.OnUsersSNameChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(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();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTell", DbType="NVarChar(150)")]
		public string UserTell
		{
			get
			{
				return this._UserTell;
			}
			set
			{
				if ((this._UserTell != value))
				{
					this.OnUserTellChanging(value);
					this.SendPropertyChanging();
					this._UserTell = value;
					this.SendPropertyChanged("UserTell");
					this.OnUserTellChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserMobail", DbType="NVarChar(150)")]
		public string UserMobail
		{
			get
			{
				return this._UserMobail;
			}
			set
			{
				if ((this._UserMobail != value))
				{
					this.OnUserMobailChanging(value);
					this.SendPropertyChanging();
					this._UserMobail = value;
					this.SendPropertyChanged("UserMobail");
					this.OnUserMobailChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserBanBit", DbType="Bit NOT NULL")]
		public bool UserBanBit
		{
			get
			{
				return this._UserBanBit;
			}
			set
			{
				if ((this._UserBanBit != value))
				{
					this.OnUserBanBitChanging(value);
					this.SendPropertyChanging();
					this._UserBanBit = value;
					this.SendPropertyChanged("UserBanBit");
					this.OnUserBanBitChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblUser_tblLog", Storage="_tblLogs", ThisKey="UsersName", OtherKey="UsersName")]
		public EntitySet<tblLog> tblLogs
		{
			get
			{
				return this._tblLogs;
			}
			set
			{
				this._tblLogs.Assign(value);
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(Name="tblUser_tblRadioLogyPic", Storage="_tblRadioLogyPics", ThisKey="UsersName", OtherKey="RadiologOperator")]
		public EntitySet<tblRadioLogyPic> tblRadioLogyPics
		{
			get
			{
				return this._tblRadioLogyPics;
			}
			set
			{
				this._tblRadioLogyPics.Assign(value);
			}
		}
		
		[global::System.Data.Linq.Mapping.AssociationAttribute(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_tblRadioLogyPics(tblRadioLogyPic entity)
		{
			this.SendPropertyChanging();
			entity.tblUser = this;
		}
		
		private void detach_tblRadioLogyPics(tblRadioLogyPic entity)
		{
			this.SendPropertyChanging();
			entity.tblUser = null;
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblBimar")]
	public partial class xtblBimar
	{
		
		private decimal _BimarID;
		
		private string _Expr1;
		
		public xtblBimar()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
		public decimal BimarID
		{
			get
			{
				return this._BimarID;
			}
			set
			{
				if ((this._BimarID != value))
				{
					this._BimarID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(101) NOT NULL", CanBeNull=false)]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblPaziresh")]
	public partial class xtblPaziresh
	{
		
		private string _Expr1;
		
		private decimal _PazireshID;
		
		public xtblPaziresh()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(309)")]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
		public decimal PazireshID
		{
			get
			{
				return this._PazireshID;
			}
			set
			{
				if ((this._PazireshID != value))
				{
					this._PazireshID = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblnumberPaziresh")]
	public partial class xtblnumberPaziresh
	{
		
		private decimal _Expr1;
		
		private decimal _BimarID;
		
		private string _NameSname;
		
		private decimal _PazireshID;
		
		private string _RadPicDescription;
		
		private string _RadiologOperator;
		
		private string _Expr2;
		
		public xtblnumberPaziresh()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="Decimal(18,0) NOT NULL")]
		public decimal Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarID", DbType="Decimal(18,0) NOT NULL")]
		public decimal BimarID
		{
			get
			{
				return this._BimarID;
			}
			set
			{
				if ((this._BimarID != value))
				{
					this._BimarID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NameSname", DbType="NVarChar(168)")]
		public string NameSname
		{
			get
			{
				return this._NameSname;
			}
			set
			{
				if ((this._NameSname != value))
				{
					this._NameSname = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshID", DbType="Decimal(18,0) NOT NULL")]
		public decimal PazireshID
		{
			get
			{
				return this._PazireshID;
			}
			set
			{
				if ((this._PazireshID != value))
				{
					this._PazireshID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadPicDescription", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
		public string RadPicDescription
		{
			get
			{
				return this._RadPicDescription;
			}
			set
			{
				if ((this._RadPicDescription != value))
				{
					this._RadPicDescription = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadiologOperator", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string RadiologOperator
		{
			get
			{
				return this._RadiologOperator;
			}
			set
			{
				if ((this._RadiologOperator != value))
				{
					this._RadiologOperator = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr2", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
		public string Expr2
		{
			get
			{
				return this._Expr2;
			}
			set
			{
				if ((this._Expr2 != value))
				{
					this._Expr2 = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblBimarInfo")]
	public partial class xtblBimarInfo
	{
		
		private string _Expr1;
		
		private decimal _BimarID;
		
		public xtblBimarInfo()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(146)")]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimarID", AutoSync=AutoSync.Always, DbType="Decimal(18,0) NOT NULL IDENTITY", IsDbGenerated=true)]
		public decimal BimarID
		{
			get
			{
				return this._BimarID;
			}
			set
			{
				if ((this._BimarID != value))
				{
					this._BimarID = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblPazireshReport")]
	public partial class xtblPazireshReport
	{
		
		private string _Expr1;
		
		private string _BimehDescription;
		
		private string _ServiceTypeDescription;
		
		private decimal _PazireshID;
		
		private string _BimaryDescription;
		
		private string _PazireshDateSh;
		
		private decimal _HaggeVisit;
		
		public xtblPazireshReport()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Expr1", DbType="NVarChar(101) NOT NULL", CanBeNull=false)]
		public string Expr1
		{
			get
			{
				return this._Expr1;
			}
			set
			{
				if ((this._Expr1 != value))
				{
					this._Expr1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimehDescription", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
		public string BimehDescription
		{
			get
			{
				return this._BimehDescription;
			}
			set
			{
				if ((this._BimehDescription != value))
				{
					this._BimehDescription = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ServiceTypeDescription", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
		public string ServiceTypeDescription
		{
			get
			{
				return this._ServiceTypeDescription;
			}
			set
			{
				if ((this._ServiceTypeDescription != value))
				{
					this._ServiceTypeDescription = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshID", DbType="Decimal(18,0) NOT NULL")]
		public decimal PazireshID
		{
			get
			{
				return this._PazireshID;
			}
			set
			{
				if ((this._PazireshID != value))
				{
					this._PazireshID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BimaryDescription", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
		public string BimaryDescription
		{
			get
			{
				return this._BimaryDescription;
			}
			set
			{
				if ((this._BimaryDescription != value))
				{
					this._BimaryDescription = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PazireshDateSh", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
		public string PazireshDateSh
		{
			get
			{
				return this._PazireshDateSh;
			}
			set
			{
				if ((this._PazireshDateSh != value))
				{
					this._PazireshDateSh = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HaggeVisit", DbType="Decimal(18,0) NOT NULL")]
		public decimal HaggeVisit
		{
			get
			{
				return this._HaggeVisit;
			}
			set
			{
				if ((this._HaggeVisit != value))
				{
					this._HaggeVisit = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblPictureRadioLogy")]
	public partial class xtblPictureRadioLogy
	{
		
		private decimal _RadPicID;
		
		private string _RadPicDescription;
		
		private string _RadiologOperator;
		
		private string _DateOfActPicSH;
		
		private string _Information;
		
		public xtblPictureRadioLogy()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadPicID", DbType="Decimal(18,0) NOT NULL")]
		public decimal RadPicID
		{
			get
			{
				return this._RadPicID;
			}
			set
			{
				if ((this._RadPicID != value))
				{
					this._RadPicID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadPicDescription", DbType="NVarChar(250) NOT NULL", CanBeNull=false)]
		public string RadPicDescription
		{
			get
			{
				return this._RadPicDescription;
			}
			set
			{
				if ((this._RadPicDescription != value))
				{
					this._RadPicDescription = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RadiologOperator", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string RadiologOperator
		{
			get
			{
				return this._RadiologOperator;
			}
			set
			{
				if ((this._RadiologOperator != value))
				{
					this._RadiologOperator = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateOfActPicSH", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
		public string DateOfActPicSH
		{
			get
			{
				return this._DateOfActPicSH;
			}
			set
			{
				if ((this._DateOfActPicSH != value))
				{
					this._DateOfActPicSH = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Information", DbType="NVarChar(169)")]
		public string Information
		{
			get
			{
				return this._Information;
			}
			set
			{
				if ((this._Information != value))
				{
					this._Information = value;
				}
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.xtblUsersInformation")]
	public partial class xtblUsersInformation
	{
		
		private int _UsersID;
		
		private string _UsersName;
		
		private string _UserFName;
		
		private string _UsersPass;
		
		private string _UsersSName;
		
		private int _UserTypeID;
		
		private string _UserTell;
		
		private string _UserMobail;
		
		private bool _UserBanBit;
		
		private string _UsersTypeDescription;
		
		public xtblUsersInformation()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersID", DbType="Int NOT NULL")]
		public int UsersID
		{
			get
			{
				return this._UsersID;
			}
			set
			{
				if ((this._UsersID != value))
				{
					this._UsersID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersName
		{
			get
			{
				return this._UsersName;
			}
			set
			{
				if ((this._UsersName != value))
				{
					this._UsersName = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserFName", DbType="NVarChar(50)")]
		public string UserFName
		{
			get
			{
				return this._UserFName;
			}
			set
			{
				if ((this._UserFName != value))
				{
					this._UserFName = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersPass", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersPass
		{
			get
			{
				return this._UsersPass;
			}
			set
			{
				if ((this._UsersPass != value))
				{
					this._UsersPass = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersSName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersSName
		{
			get
			{
				return this._UsersSName;
			}
			set
			{
				if ((this._UsersSName != value))
				{
					this._UsersSName = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTypeID", DbType="Int NOT NULL")]
		public int UserTypeID
		{
			get
			{
				return this._UserTypeID;
			}
			set
			{
				if ((this._UserTypeID != value))
				{
					this._UserTypeID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTell", DbType="NVarChar(150)")]
		public string UserTell
		{
			get
			{
				return this._UserTell;
			}
			set
			{
				if ((this._UserTell != value))
				{
					this._UserTell = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserMobail", DbType="NVarChar(150)")]
		public string UserMobail
		{
			get
			{
				return this._UserMobail;
			}
			set
			{
				if ((this._UserMobail != value))
				{
					this._UserMobail = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserBanBit", DbType="Bit NOT NULL")]
		public bool UserBanBit
		{
			get
			{
				return this._UserBanBit;
			}
			set
			{
				if ((this._UserBanBit != value))
				{
					this._UserBanBit = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsersTypeDescription", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string UsersTypeDescription
		{
			get
			{
				return this._UsersTypeDescription;
			}
			set
			{
				if ((this._UsersTypeDescription != value))
				{
					this._UsersTypeDescription = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
