Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma warning disable 1591
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.239
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace OndernemersAward.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;
- [global::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 InsertMedia(Media instance);
- partial void UpdateMedia(Media instance);
- partial void DeleteMedia(Media instance);
- partial void InsertInschrijvingen(Inschrijvingen instance);
- partial void UpdateInschrijvingen(Inschrijvingen instance);
- partial void DeleteInschrijvingen(Inschrijvingen instance);
- partial void InsertBedrijven(Bedrijven instance);
- partial void UpdateBedrijven(Bedrijven instance);
- partial void DeleteBedrijven(Bedrijven instance);
- partial void InsertAdmin(Admin instance);
- partial void UpdateAdmin(Admin instance);
- partial void DeleteAdmin(Admin 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<Media> Medias
- {
- get
- {
- return this.GetTable<Media>();
- }
- }
- public System.Data.Linq.Table<Inschrijvingen> Inschrijvingens
- {
- get
- {
- return this.GetTable<Inschrijvingen>();
- }
- }
- public System.Data.Linq.Table<Bedrijven> Bedrijvens
- {
- get
- {
- return this.GetTable<Bedrijven>();
- }
- }
- public System.Data.Linq.Table<Admin> Admins
- {
- get
- {
- return this.GetTable<Admin>();
- }
- }
- }
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Media")]
- public partial class Media : INotifyPropertyChanging, INotifyPropertyChanged
- {
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
- private int _id;
- private string _naam;
- private string _url;
- #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 OnnaamChanging(string value);
- partial void OnnaamChanged();
- partial void OnurlChanging(string value);
- partial void OnurlChanged();
- #endregion
- public Media()
- {
- OnCreated();
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(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();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string naam
- {
- get
- {
- return this._naam;
- }
- set
- {
- if ((this._naam != value))
- {
- this.OnnaamChanging(value);
- this.SendPropertyChanging();
- this._naam = value;
- this.SendPropertyChanged("naam");
- this.OnnaamChanged();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_url", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string url
- {
- get
- {
- return this._url;
- }
- set
- {
- if ((this._url != value))
- {
- this.OnurlChanging(value);
- this.SendPropertyChanging();
- this._url = value;
- this.SendPropertyChanged("url");
- this.OnurlChanged();
- }
- }
- }
- 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));
- }
- }
- }
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Inschrijvingen")]
- public partial class Inschrijvingen : INotifyPropertyChanging, INotifyPropertyChanged
- {
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
- private int _id;
- private string _naam;
- private string _voornaam;
- private string _email;
- #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 OnnaamChanging(string value);
- partial void OnnaamChanged();
- partial void OnvoornaamChanging(string value);
- partial void OnvoornaamChanged();
- partial void OnemailChanging(string value);
- partial void OnemailChanged();
- #endregion
- public Inschrijvingen()
- {
- OnCreated();
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(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();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string naam
- {
- get
- {
- return this._naam;
- }
- set
- {
- if ((this._naam != value))
- {
- this.OnnaamChanging(value);
- this.SendPropertyChanging();
- this._naam = value;
- this.SendPropertyChanged("naam");
- this.OnnaamChanged();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_voornaam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string voornaam
- {
- get
- {
- return this._voornaam;
- }
- set
- {
- if ((this._voornaam != value))
- {
- this.OnvoornaamChanging(value);
- this.SendPropertyChanging();
- this._voornaam = value;
- this.SendPropertyChanged("voornaam");
- this.OnvoornaamChanged();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_email", DbType="VarChar(MAX)")]
- public string email
- {
- get
- {
- return this._email;
- }
- set
- {
- if ((this._email != value))
- {
- this.OnemailChanging(value);
- this.SendPropertyChanging();
- this._email = value;
- this.SendPropertyChanged("email");
- this.OnemailChanged();
- }
- }
- }
- 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));
- }
- }
- }
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Bedrijven")]
- public partial class Bedrijven : INotifyPropertyChanging, INotifyPropertyChanged
- {
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
- private int _id;
- private string _naam;
- private string _beschrijving;
- private System.Nullable<int> _rank;
- #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 OnnaamChanging(string value);
- partial void OnnaamChanged();
- partial void OnbeschrijvingChanging(string value);
- partial void OnbeschrijvingChanged();
- partial void OnrankChanging(System.Nullable<int> value);
- partial void OnrankChanged();
- #endregion
- public Bedrijven()
- {
- OnCreated();
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(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();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string naam
- {
- get
- {
- return this._naam;
- }
- set
- {
- if ((this._naam != value))
- {
- this.OnnaamChanging(value);
- this.SendPropertyChanging();
- this._naam = value;
- this.SendPropertyChanged("naam");
- this.OnnaamChanged();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_beschrijving", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string beschrijving
- {
- get
- {
- return this._beschrijving;
- }
- set
- {
- if ((this._beschrijving != value))
- {
- this.OnbeschrijvingChanging(value);
- this.SendPropertyChanging();
- this._beschrijving = value;
- this.SendPropertyChanged("beschrijving");
- this.OnbeschrijvingChanged();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_rank", DbType="Int")]
- public System.Nullable<int> rank
- {
- get
- {
- return this._rank;
- }
- set
- {
- if ((this._rank != value))
- {
- this.OnrankChanging(value);
- this.SendPropertyChanging();
- this._rank = value;
- this.SendPropertyChanged("rank");
- this.OnrankChanged();
- }
- }
- }
- 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));
- }
- }
- }
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Admin")]
- public partial class Admin : INotifyPropertyChanging, INotifyPropertyChanged
- {
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
- private int _id;
- private string _login;
- private string _wachtwoord;
- #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 OnloginChanging(string value);
- partial void OnloginChanged();
- partial void OnwachtwoordChanging(string value);
- partial void OnwachtwoordChanged();
- #endregion
- public Admin()
- {
- OnCreated();
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(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();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_login", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string login
- {
- get
- {
- return this._login;
- }
- set
- {
- if ((this._login != value))
- {
- this.OnloginChanging(value);
- this.SendPropertyChanging();
- this._login = value;
- this.SendPropertyChanged("login");
- this.OnloginChanged();
- }
- }
- }
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_wachtwoord", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
- public string wachtwoord
- {
- get
- {
- return this._wachtwoord;
- }
- set
- {
- if ((this._wachtwoord != value))
- {
- this.OnwachtwoordChanging(value);
- this.SendPropertyChanging();
- this._wachtwoord = value;
- this.SendPropertyChanged("wachtwoord");
- this.OnwachtwoordChanged();
- }
- }
- }
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement