#pragma warning disable 1591
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
//
// 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 uudised2DataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void Insertuudised(uudised instance);
partial void Updateuudised(uudised instance);
partial void Deleteuudised(uudised instance);
#endregion
public uudised2DataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString, mappingSource)
{
OnCreated();
}
public uudised2DataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public uudised2DataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public uudised2DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public uudised2DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table uudiseds
{
get
{
return this.GetTable();
}
}
public System.Data.Linq.Table Class1s
{
get
{
return this.GetTable();
}
}
[Function(Name="dbo.YxUudis", IsComposable=true)]
public IQueryable YxUudis([Parameter(DbType="Int")] System.Nullable kood)
{
return this.CreateMethodCallQuery(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), kood);
}
}
[Table(Name="dbo.uudised")]
public partial class uudised : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _kood;
private string _pealkiri;
private string _kirjeldus;
private System.DateTime _kuup;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnkoodChanging(int value);
partial void OnkoodChanged();
partial void OnpealkiriChanging(string value);
partial void OnpealkiriChanged();
partial void OnkirjeldusChanging(string value);
partial void OnkirjeldusChanged();
partial void OnkuupChanging(System.DateTime value);
partial void OnkuupChanged();
#endregion
public uudised()
{
OnCreated();
}
[Column(Storage="_kood", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int kood
{
get
{
return this._kood;
}
set
{
if ((this._kood != value))
{
this.OnkoodChanging(value);
this.SendPropertyChanging();
this._kood = value;
this.SendPropertyChanged("kood");
this.OnkoodChanged();
}
}
}
[Column(Storage="_pealkiri", DbType="NVarChar(50)")]
public string pealkiri
{
get
{
return this._pealkiri;
}
set
{
if ((this._pealkiri != value))
{
this.OnpealkiriChanging(value);
this.SendPropertyChanging();
this._pealkiri = value;
this.SendPropertyChanged("pealkiri");
this.OnpealkiriChanged();
}
}
}
[Column(Storage="_kirjeldus", DbType="NVarChar(500)")]
public string kirjeldus
{
get
{
return this._kirjeldus;
}
set
{
if ((this._kirjeldus != value))
{
this.OnkirjeldusChanging(value);
this.SendPropertyChanging();
this._kirjeldus = value;
this.SendPropertyChanged("kirjeldus");
this.OnkirjeldusChanged();
}
}
}
[Column(Storage="_kuup", DbType="DateTime NOT NULL")]
public System.DateTime kuup
{
get
{
return this._kuup;
}
set
{
if ((this._kuup != value))
{
this.OnkuupChanging(value);
this.SendPropertyChanging();
this._kuup = value;
this.SendPropertyChanged("kuup");
this.OnkuupChanged();
}
}
}
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));
}
}
}
[Table(Name="")]
public partial class Class1
{
private int _kood;
public Class1()
{
}
[Column(Storage="_kood")]
public int kood
{
get
{
return this._kood;
}
set
{
if ((this._kood != value))
{
this._kood = value;
}
}
}
}
#pragma warning restore 1591