#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.18444 // // 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="aspnet-WebSite3-d91cb2e4-be80-4f07-8baf-d63aa0b7ed72")] 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 Insertkylastused(kylastused instance); partial void Updatekylastused(kylastused instance); partial void Deletekylastused(kylastused instance); #endregion public DataClassesDataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["aspnet_WebSite3_d91cb2e4_be80_4f07_8baf_d63aa0b7ed72ConnectionString"].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 kylastuseds { get { return this.GetTable(); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.kylastused")] public partial class kylastused : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _Id; private string _knimi; private System.Nullable _aeg; #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 OnknimiChanging(string value); partial void OnknimiChanged(); partial void OnaegChanging(System.Nullable value); partial void OnaegChanged(); #endregion public kylastused() { 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="_knimi", DbType="NChar(10)")] public string knimi { get { return this._knimi; } set { if ((this._knimi != value)) { this.OnknimiChanging(value); this.SendPropertyChanging(); this._knimi = value; this.SendPropertyChanged("knimi"); this.OnknimiChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_aeg", DbType="DateTime")] public System.Nullable aeg { get { return this._aeg; } set { if ((this._aeg != value)) { this.OnaegChanging(value); this.SendPropertyChanging(); this._aeg = value; this.SendPropertyChanged("aeg"); this.OnaegChanged(); } } } 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