#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.1434 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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="veebipoebaas")] public partial class kasutajadDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void Insertkasutajad(kasutajad instance); partial void Updatekasutajad(kasutajad instance); partial void Deletekasutajad(kasutajad instance); #endregion public kasutajadDataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["veebipoebaasConnectionString"].ConnectionString, mappingSource) { OnCreated(); } public kasutajadDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public kasutajadDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public kasutajadDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public kasutajadDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table kasutajads { get { return this.GetTable(); } } } [Table(Name="dbo.kasutajad")] public partial class kasutajad : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private string _kasutajanimi; private string _parool; private string _epost; private string _aadress; private System.Nullable _tase; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnkasutajanimiChanging(string value); partial void OnkasutajanimiChanged(); partial void OnparoolChanging(string value); partial void OnparoolChanged(); partial void OnepostChanging(string value); partial void OnepostChanged(); partial void OnaadressChanging(string value); partial void OnaadressChanged(); partial void OntaseChanging(System.Nullable value); partial void OntaseChanged(); #endregion public kasutajad() { OnCreated(); } [Column(Storage="_kasutajanimi", DbType="VarChar(20) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] public string kasutajanimi { get { return this._kasutajanimi; } set { if ((this._kasutajanimi != value)) { this.OnkasutajanimiChanging(value); this.SendPropertyChanging(); this._kasutajanimi = value; this.SendPropertyChanged("kasutajanimi"); this.OnkasutajanimiChanged(); } } } [Column(Storage="_parool", DbType="VarChar(32) NOT NULL", CanBeNull=false)] public string parool { get { return this._parool; } set { if ((this._parool != value)) { this.OnparoolChanging(value); this.SendPropertyChanging(); this._parool = value; this.SendPropertyChanged("parool"); this.OnparoolChanged(); } } } [Column(Storage="_epost", DbType="VarChar(32) NOT NULL", CanBeNull=false)] public string epost { get { return this._epost; } set { if ((this._epost != value)) { this.OnepostChanging(value); this.SendPropertyChanging(); this._epost = value; this.SendPropertyChanged("epost"); this.OnepostChanged(); } } } [Column(Storage="_aadress", DbType="VarChar(255) NOT NULL", CanBeNull=false)] public string aadress { get { return this._aadress; } set { if ((this._aadress != value)) { this.OnaadressChanging(value); this.SendPropertyChanging(); this._aadress = value; this.SendPropertyChanged("aadress"); this.OnaadressChanged(); } } } [Column(Storage="_tase", DbType="Int")] public System.Nullable tase { get { return this._tase; } set { if ((this._tase != value)) { this.OntaseChanging(value); this.SendPropertyChanging(); this._tase = value; this.SendPropertyChanged("tase"); this.OntaseChanged(); } } } 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