#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="poebaas")] public partial class suvalineDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void Insertpakkumised(pakkumised instance); partial void Updatepakkumised(pakkumised instance); partial void Deletepakkumised(pakkumised instance); #endregion public suvalineDataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["poebaasConnectionString1"].ConnectionString, mappingSource) { OnCreated(); } public suvalineDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public suvalineDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public suvalineDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public suvalineDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table pakkumiseds { get { return this.GetTable(); } } } [Table(Name="dbo.pakkumised")] public partial class pakkumised : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _id; private string _nimetus; private decimal _hind; #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 OnnimetusChanging(string value); partial void OnnimetusChanged(); partial void OnhindChanging(decimal value); partial void OnhindChanged(); #endregion public pakkumised() { 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="_nimetus", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] public string nimetus { get { return this._nimetus; } set { if ((this._nimetus != value)) { this.OnnimetusChanging(value); this.SendPropertyChanging(); this._nimetus = value; this.SendPropertyChanged("nimetus"); this.OnnimetusChanged(); } } } [Column(Storage="_hind", DbType="Money NOT NULL")] public decimal hind { get { return this._hind; } set { if ((this._hind != value)) { this.OnhindChanging(value); this.SendPropertyChanging(); this._hind = value; this.SendPropertyChanged("hind"); this.OnhindChanged(); } } } 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