#pragma warning disable 1591 //------------------------------------------------------------------------------ // // 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. // //------------------------------------------------------------------------------ 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="Database")] public partial class DataClassesDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void Insertisikud(isikud instance); partial void Updateisikud(isikud instance); partial void Deleteisikud(isikud instance); #endregion public DataClassesDataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DatabaseConnectionString1"].ConnectionString, mappingSource) { OnCreated(); } public DataClassesDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public DataClassesDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table isikuds { get { return this.GetTable(); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.isikud")] public partial class isikud : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _id; private string _eesnimi; private string _perekonnanimi; 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 OnperekonnanimiChanging(string value); partial void OnperekonnanimiChanged(); partial void OnsynniaastaChanging(int value); partial void OnsynniaastaChanged(); #endregion public isikud() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(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(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_eesnimi", DbType="NVarChar(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(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_perekonnanimi", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] public string perekonnanimi { get { return this._perekonnanimi; } set { if ((this._perekonnanimi != value)) { this.OnperekonnanimiChanging(value); this.SendPropertyChanging(); this._perekonnanimi = value; this.SendPropertyChanged("perekonnanimi"); this.OnperekonnanimiChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(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