#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.
//
//------------------------------------------------------------------------------
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="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["DatabaseConnectionString"].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();
}
}
}
[Table(Name="dbo.isikud")]
public partial class isikud : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _id;
private string _eesnimi;
private int _x;
private int _y;
#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 OnxChanging(int value);
partial void OnxChanged();
partial void OnyChanging(int value);
partial void OnyChanged();
#endregion
public isikud()
{
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="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();
}
}
}
[Column(Storage="_x", DbType="Int NOT NULL")]
public int x
{
get
{
return this._x;
}
set
{
if ((this._x != value))
{
this.OnxChanging(value);
this.SendPropertyChanging();
this._x = value;
this.SendPropertyChanged("x");
this.OnxChanged();
}
}
}
[Column(Storage="_y", DbType="Int NOT NULL")]
public int y
{
get
{
return this._y;
}
set
{
if ((this._y != value))
{
this.OnyChanging(value);
this.SendPropertyChanging();
this._y = value;
this.SendPropertyChanged("y");
this.OnyChanged();
}
}
}
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