#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     Ce code a été généré par un outil.
//     Version du runtime :4.0.30319.42000
//
//     Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
//     le code est régénéré.
// </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;



[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Banca")]
public partial class DataClassesBancaDataContext : System.Data.Linq.DataContext
{
	
	private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
	
  #region Définitions de méthodes d'extensibilité
  partial void OnCreated();
  partial void Insertcompte(compte instance);
  partial void Updatecompte(compte instance);
  partial void Deletecompte(compte instance);
  #endregion
	
	public DataClassesBancaDataContext() : 
			base(global::System.Configuration.ConfigurationManager.ConnectionStrings["BancaConnectionString1"].ConnectionString, mappingSource)
	{
		OnCreated();
	}
	
	public DataClassesBancaDataContext(string connection) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public DataClassesBancaDataContext(System.Data.IDbConnection connection) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public DataClassesBancaDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public DataClassesBancaDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
			base(connection, mappingSource)
	{
		OnCreated();
	}
	
	public System.Data.Linq.Table<compte> compte
	{
		get
		{
			return this.GetTable<compte>();
		}
	}
}

[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.compte")]
public partial class compte : INotifyPropertyChanging, INotifyPropertyChanged
{
	
	private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
	
	private int _id_compte;
	
	private string _titulaire;
	
	private System.Nullable<decimal> _solde;
	
    #region Définitions de méthodes d'extensibilité
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void Onid_compteChanging(int value);
    partial void Onid_compteChanged();
    partial void OntitulaireChanging(string value);
    partial void OntitulaireChanged();
    partial void OnsoldeChanging(System.Nullable<decimal> value);
    partial void OnsoldeChanged();
    #endregion
	
	public compte()
	{
		OnCreated();
	}
	
	[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id_compte", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
	public int id_compte
	{
		get
		{
			return this._id_compte;
		}
		set
		{
			if ((this._id_compte != value))
			{
				this.Onid_compteChanging(value);
				this.SendPropertyChanging();
				this._id_compte = value;
				this.SendPropertyChanged("id_compte");
				this.Onid_compteChanged();
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_titulaire", DbType="VarChar(50)")]
	public string titulaire
	{
		get
		{
			return this._titulaire;
		}
		set
		{
			if ((this._titulaire != value))
			{
				this.OntitulaireChanging(value);
				this.SendPropertyChanging();
				this._titulaire = value;
				this.SendPropertyChanged("titulaire");
				this.OntitulaireChanged();
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_solde", DbType="Decimal(18,2)")]
	public System.Nullable<decimal> solde
	{
		get
		{
			return this._solde;
		}
		set
		{
			if ((this._solde != value))
			{
				this.OnsoldeChanging(value);
				this.SendPropertyChanging();
				this._solde = value;
				this.SendPropertyChanged("solde");
				this.OnsoldeChanged();
			}
		}
	}
	
	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
