#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace rakendus1 { 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; [System.Data.Linq.Mapping.DatabaseAttribute(Name="lastebaas")] public partial class LasteKlassidDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void Insertlapsed(lapsed instance); partial void Updatelapsed(lapsed instance); partial void Deletelapsed(lapsed instance); #endregion public LasteKlassidDataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["lastebaasConnectionString"].ConnectionString, mappingSource) { OnCreated(); } public LasteKlassidDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public LasteKlassidDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public LasteKlassidDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public LasteKlassidDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table lapseds { get { return this.GetTable(); } } } [Table(Name="dbo.lapsed")] public partial class lapsed : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _id; private string _eesnimi; private int _synniaasta; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnidChanging(int value); partial void OnidChanged(); partial void OneesnimiChanging(string value); partial void OneesnimiChanged(); partial void OnsynniaastaChanging(int value); partial void OnsynniaastaChanged(); #endregion public lapsed() { OnCreated(); } [Column(Storage="_id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] public int id { get { return this._id; } set { if ((this._id != value)) { this.OnidChanging(value); this.SendPropertyChanging(); this._id = value; this.SendPropertyChanged("id"); this.OnidChanged(); } } } [Column(Storage="_eesnimi", DbType="VarChar(50) NOT NULL", CanBeNull=false)] public string eesnimi { get { return this._eesnimi; } set { if ((this._eesnimi != value)) { this.OneesnimiChanging(value); this.SendPropertyChanging(); this._eesnimi = value; this.SendPropertyChanged("eesnimi"); this.OneesnimiChanged(); } } } [Column(Storage="_synniaasta", DbType="Int NOT NULL")] public int synniaasta { get { return this._synniaasta; } set { if ((this._synniaasta != value)) { this.OnsynniaastaChanging(value); this.SendPropertyChanging(); this._synniaasta = value; this.SendPropertyChanged("synniaasta"); this.OnsynniaastaChanged(); } } } 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