#pragma warning disable 1591
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace Persistence
{
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;
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 InsertHeuristicLabUser(HeuristicLabUser instance);
partial void UpdateHeuristicLabUser(HeuristicLabUser instance);
partial void DeleteHeuristicLabUser(HeuristicLabUser instance);
partial void InsertHeuristicLabAbstractRole(HeuristicLabAbstractRole instance);
partial void UpdateHeuristicLabAbstractRole(HeuristicLabAbstractRole instance);
partial void DeleteHeuristicLabAbstractRole(HeuristicLabAbstractRole instance);
#endregion
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 HeuristicLabUsers
{
get
{
return this.GetTable();
}
}
public System.Data.Linq.Table HeuristicLabAbstractRoles
{
get
{
return this.GetTable();
}
}
}
[Table(Name="")]
public partial class HeuristicLabUser : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private long _id = default(long);
private string _UserName = default(string);
private string _Password;
private System.DateTime _LastPasswordChangedDate = default(System.DateTime);
private string _PasswordQuestion = default(string);
private string _PasswordAnswer;
private string _Email;
private string _Comment;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnPasswordChanging(string value);
partial void OnPasswordChanged();
partial void OnPasswordAnswerChanging(string value);
partial void OnPasswordAnswerChanged();
partial void OnEmailChanging(string value);
partial void OnEmailChanged();
partial void OnCommentChanging(string value);
partial void OnCommentChanged();
#endregion
public HeuristicLabUser()
{
OnCreated();
}
[Column(Name="id", Storage="_id", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
public long ID
{
get
{
return this._id;
}
}
[Column(Storage="_UserName", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
public override string UserName
{
get
{
return this._UserName;
}
}
[Column(Storage="_Password", CanBeNull=false)]
public string Password
{
get
{
return this._Password;
}
set
{
if ((this._Password != value))
{
this.OnPasswordChanging(value);
this.SendPropertyChanging();
this._Password = value;
this.SendPropertyChanged("Password");
this.OnPasswordChanged();
}
}
}
[Column(Storage="_LastPasswordChangedDate", UpdateCheck=UpdateCheck.Never)]
public override System.DateTime LastPasswordChangedDate
{
get
{
return this._LastPasswordChangedDate;
}
}
[Column(Storage="_PasswordQuestion", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
public override string PasswordQuestion
{
get
{
return this._PasswordQuestion;
}
}
[Column(Storage="_PasswordAnswer", CanBeNull=false)]
public string PasswordAnswer
{
get
{
return this._PasswordAnswer;
}
set
{
if ((this._PasswordAnswer != value))
{
this.OnPasswordAnswerChanging(value);
this.SendPropertyChanging();
this._PasswordAnswer = value;
this.SendPropertyChanged("PasswordAnswer");
this.OnPasswordAnswerChanged();
}
}
}
[Column(Storage="_Email", CanBeNull=false)]
public override string Email
{
get
{
return this._Email;
}
set
{
if ((this._Email != value))
{
this.OnEmailChanging(value);
this.SendPropertyChanging();
this._Email = value;
this.SendPropertyChanged("Email");
this.OnEmailChanged();
}
}
}
[Column(Storage="_Comment", CanBeNull=false)]
public override string Comment
{
get
{
return this._Comment;
}
set
{
if ((this._Comment != value))
{
this.OnCommentChanging(value);
this.SendPropertyChanging();
this._Comment = value;
this.SendPropertyChanged("Comment");
this.OnCommentChanged();
}
}
}
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="")]
[InheritanceMapping(Code="false", Type=typeof(HeuristicLabRole), IsDefault=true)]
[InheritanceMapping(Code="true", Type=typeof(HeuristicLabPermissionRole))]
public abstract partial class HeuristicLabAbstractRole : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private long _ID = default(long);
private string _roleName;
private long _parentRoleID;
private bool _RoleType;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnRoleNameChanging(string value);
partial void OnRoleNameChanged();
partial void OnParentRoleIDChanging(long value);
partial void OnParentRoleIDChanged();
partial void OnIsPermissionChanging(bool value);
partial void OnIsPermissionChanged();
#endregion
public HeuristicLabAbstractRole()
{
OnCreated();
}
[Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
public long ID
{
get
{
return this._ID;
}
}
[Column(Name="roleName", Storage="_roleName", CanBeNull=false)]
public string RoleName
{
get
{
return this._roleName;
}
set
{
if ((this._roleName != value))
{
this.OnRoleNameChanging(value);
this.SendPropertyChanging();
this._roleName = value;
this.SendPropertyChanged("RoleName");
this.OnRoleNameChanged();
}
}
}
[Column(Name="parentRoleID", Storage="_parentRoleID")]
public long ParentRoleID
{
get
{
return this._parentRoleID;
}
set
{
if ((this._parentRoleID != value))
{
this.OnParentRoleIDChanging(value);
this.SendPropertyChanging();
this._parentRoleID = value;
this.SendPropertyChanged("ParentRoleID");
this.OnParentRoleIDChanged();
}
}
}
[Column(Name="RoleType", Storage="_RoleType", IsDiscriminator=true)]
public bool IsPermission
{
get
{
return this._RoleType;
}
set
{
if ((this._RoleType != value))
{
this.OnIsPermissionChanging(value);
this.SendPropertyChanging();
this._RoleType = value;
this.SendPropertyChanged("IsPermission");
this.OnIsPermissionChanged();
}
}
}
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));
}
}
}
public partial class HeuristicLabRole : HeuristicLabAbstractRole
{
private string _DummyField1;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnDummyField1Changing(string value);
partial void OnDummyField1Changed();
#endregion
public HeuristicLabRole()
{
OnCreated();
}
[Column(Storage="_DummyField1", CanBeNull=false)]
public string DummyField1
{
get
{
return this._DummyField1;
}
set
{
if ((this._DummyField1 != value))
{
this.OnDummyField1Changing(value);
this.SendPropertyChanging();
this._DummyField1 = value;
this.SendPropertyChanged("DummyField1");
this.OnDummyField1Changed();
}
}
}
}
public partial class HeuristicLabPermissionRole : HeuristicLabAbstractRole
{
private string _DummyField2;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnDummyField2Changing(string value);
partial void OnDummyField2Changed();
#endregion
public HeuristicLabPermissionRole()
{
OnCreated();
}
[Column(Storage="_DummyField2", CanBeNull=false)]
public string DummyField2
{
get
{
return this._DummyField2;
}
set
{
if ((this._DummyField2 != value))
{
this.OnDummyField2Changing(value);
this.SendPropertyChanging();
this._DummyField2 = value;
this.SendPropertyChanged("DummyField2");
this.OnDummyField2Changed();
}
}
}
}
}
#pragma warning restore 1591