#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 Dictionery_proj
{
	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="Dictionery")]
	public partial class LSC_DictioneryDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void InserttblDictionery(tblDictionery instance);
    partial void UpdatetblDictionery(tblDictionery instance);
    partial void DeletetblDictionery(tblDictionery instance);
    #endregion
		
		public LSC_DictioneryDataContext() : 
				base(global::Dictionery_proj.Properties.Settings.Default.DictioneryConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_DictioneryDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_DictioneryDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_DictioneryDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public LSC_DictioneryDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public System.Data.Linq.Table<tblDictionery> tblDictioneries
		{
			get
			{
				return this.GetTable<tblDictionery>();
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblDictionery")]
	public partial class tblDictionery : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _DicId;
		
		private string _DicLoghatEnglish;
		
		private string _DicLoghatFarci;
		
		private string _DicSynonym;
		
    #region Extensibility Method Definitions
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OnDicIdChanging(int value);
    partial void OnDicIdChanged();
    partial void OnDicLoghatEnglishChanging(string value);
    partial void OnDicLoghatEnglishChanged();
    partial void OnDicLoghatFarciChanging(string value);
    partial void OnDicLoghatFarciChanged();
    partial void OnDicSynonymChanging(string value);
    partial void OnDicSynonymChanged();
    #endregion
		
		public tblDictionery()
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DicId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
		public int DicId
		{
			get
			{
				return this._DicId;
			}
			set
			{
				if ((this._DicId != value))
				{
					this.OnDicIdChanging(value);
					this.SendPropertyChanging();
					this._DicId = value;
					this.SendPropertyChanged("DicId");
					this.OnDicIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DicLoghatEnglish", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string DicLoghatEnglish
		{
			get
			{
				return this._DicLoghatEnglish;
			}
			set
			{
				if ((this._DicLoghatEnglish != value))
				{
					this.OnDicLoghatEnglishChanging(value);
					this.SendPropertyChanging();
					this._DicLoghatEnglish = value;
					this.SendPropertyChanged("DicLoghatEnglish");
					this.OnDicLoghatEnglishChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DicLoghatFarci", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
		public string DicLoghatFarci
		{
			get
			{
				return this._DicLoghatFarci;
			}
			set
			{
				if ((this._DicLoghatFarci != value))
				{
					this.OnDicLoghatFarciChanging(value);
					this.SendPropertyChanging();
					this._DicLoghatFarci = value;
					this.SendPropertyChanged("DicLoghatFarci");
					this.OnDicLoghatFarciChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DicSynonym", DbType="NVarChar(50)")]
		public string DicSynonym
		{
			get
			{
				return this._DicSynonym;
			}
			set
			{
				if ((this._DicSynonym != value))
				{
					this.OnDicSynonymChanging(value);
					this.SendPropertyChanging();
					this._DicSynonym = value;
					this.SendPropertyChanged("DicSynonym");
					this.OnDicSynonymChanged();
				}
			}
		}
		
		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
