#pragma warning disable 1591
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// 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="Tickets")]
public partial class TicketsDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertSeat(Seat instance);
partial void UpdateSeat(Seat instance);
partial void DeleteSeat(Seat instance);
#endregion
public TicketsDataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["TicketsConnectionString"].ConnectionString, mappingSource)
{
OnCreated();
}
public TicketsDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public TicketsDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public TicketsDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public TicketsDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table Seats
{
get
{
return this.GetTable();
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Seats")]
public partial class Seat : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Number;
private string _Type;
private string _Class;
private System.Nullable _Taken;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnNumberChanging(string value);
partial void OnNumberChanged();
partial void OnTypeChanging(string value);
partial void OnTypeChanged();
partial void OnClassChanging(string value);
partial void OnClassChanged();
partial void OnTakenChanging(System.Nullable value);
partial void OnTakenChanged();
#endregion
public Seat()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Number", DbType="VarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string Number
{
get
{
return this._Number;
}
set
{
if ((this._Number != value))
{
this.OnNumberChanging(value);
this.SendPropertyChanging();
this._Number = value;
this.SendPropertyChanged("Number");
this.OnNumberChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="VarChar(50)")]
public string Type
{
get
{
return this._Type;
}
set
{
if ((this._Type != value))
{
this.OnTypeChanging(value);
this.SendPropertyChanging();
this._Type = value;
this.SendPropertyChanged("Type");
this.OnTypeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Class", DbType="VarChar(50)")]
public string Class
{
get
{
return this._Class;
}
set
{
if ((this._Class != value))
{
this.OnClassChanging(value);
this.SendPropertyChanging();
this._Class = value;
this.SendPropertyChanged("Class");
this.OnClassChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Taken", DbType="Bit")]
public System.Nullable Taken
{
get
{
return this._Taken;
}
set
{
if ((this._Taken != value))
{
this.OnTakenChanging(value);
this.SendPropertyChanging();
this._Taken = value;
this.SendPropertyChanged("Taken");
this.OnTakenChanged();
}
}
}
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