#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.3603 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace SilverlightApplication1.Web { 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="Database1")] public partial class DataClasses1DataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void Insertkoerad(koerad instance); partial void Updatekoerad(koerad instance); partial void Deletekoerad(koerad instance); #endregion public DataClasses1DataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["Database1ConnectionString"].ConnectionString, mappingSource) { OnCreated(); } public DataClasses1DataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public DataClasses1DataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public DataClasses1DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public DataClasses1DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table koerads { get { return this.GetTable(); } } } [Table(Name="dbo.koerad")] public partial class koerad : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private int _id; private string _koeranimi; 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 OnkoeranimiChanging(string value); partial void OnkoeranimiChanged(); partial void OnsynniaastaChanging(int value); partial void OnsynniaastaChanged(); #endregion public koerad() { 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="_koeranimi", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] public string koeranimi { get { return this._koeranimi; } set { if ((this._koeranimi != value)) { this.OnkoeranimiChanging(value); this.SendPropertyChanging(); this._koeranimi = value; this.SendPropertyChanged("koeranimi"); this.OnkoeranimiChanged(); } } } [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