#pragma warning disable 1591
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace HeuristicLab.Services.Access.DataAccess
{
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="HeuristicLab.Authentication")]
public partial class ASPNETAuthenticationDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void Insertaspnet_Application(aspnet_Application instance);
partial void Updateaspnet_Application(aspnet_Application instance);
partial void Deleteaspnet_Application(aspnet_Application instance);
partial void Insertaspnet_Membership(aspnet_Membership instance);
partial void Updateaspnet_Membership(aspnet_Membership instance);
partial void Deleteaspnet_Membership(aspnet_Membership instance);
partial void Insertaspnet_Role(aspnet_Role instance);
partial void Updateaspnet_Role(aspnet_Role instance);
partial void Deleteaspnet_Role(aspnet_Role instance);
partial void Insertaspnet_User(aspnet_User instance);
partial void Updateaspnet_User(aspnet_User instance);
partial void Deleteaspnet_User(aspnet_User instance);
partial void Insertaspnet_UsersInRole(aspnet_UsersInRole instance);
partial void Updateaspnet_UsersInRole(aspnet_UsersInRole instance);
partial void Deleteaspnet_UsersInRole(aspnet_UsersInRole instance);
#endregion
public ASPNETAuthenticationDataContext() :
base(global::HeuristicLab.Services.Access.DataAccess.Properties.Settings.Default.HeuristicLab_AuthenticationConnectionString, mappingSource)
{
OnCreated();
}
public ASPNETAuthenticationDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ASPNETAuthenticationDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ASPNETAuthenticationDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public ASPNETAuthenticationDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table aspnet_Applications
{
get
{
return this.GetTable();
}
}
public System.Data.Linq.Table aspnet_Memberships
{
get
{
return this.GetTable();
}
}
public System.Data.Linq.Table aspnet_Roles
{
get
{
return this.GetTable();
}
}
public System.Data.Linq.Table aspnet_Users
{
get
{
return this.GetTable();
}
}
public System.Data.Linq.Table aspnet_UsersInRoles
{
get
{
return this.GetTable();
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Applications")]
public partial class aspnet_Application : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ApplicationName;
private string _LoweredApplicationName;
private System.Guid _ApplicationId;
private string _Description;
private EntitySet _aspnet_Memberships;
private EntitySet _aspnet_Roles;
private EntitySet _aspnet_Users;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnApplicationNameChanging(string value);
partial void OnApplicationNameChanged();
partial void OnLoweredApplicationNameChanging(string value);
partial void OnLoweredApplicationNameChanged();
partial void OnApplicationIdChanging(System.Guid value);
partial void OnApplicationIdChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
#endregion
public aspnet_Application()
{
this._aspnet_Memberships = new EntitySet(new Action(this.attach_aspnet_Memberships), new Action(this.detach_aspnet_Memberships));
this._aspnet_Roles = new EntitySet(new Action(this.attach_aspnet_Roles), new Action(this.detach_aspnet_Roles));
this._aspnet_Users = new EntitySet(new Action(this.attach_aspnet_Users), new Action(this.detach_aspnet_Users));
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string ApplicationName
{
get
{
return this._ApplicationName;
}
set
{
if ((this._ApplicationName != value))
{
this.OnApplicationNameChanging(value);
this.SendPropertyChanging();
this._ApplicationName = value;
this.SendPropertyChanged("ApplicationName");
this.OnApplicationNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredApplicationName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string LoweredApplicationName
{
get
{
return this._LoweredApplicationName;
}
set
{
if ((this._LoweredApplicationName != value))
{
this.OnLoweredApplicationNameChanging(value);
this.SendPropertyChanging();
this._LoweredApplicationName = value;
this.SendPropertyChanged("LoweredApplicationName");
this.OnLoweredApplicationNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid ApplicationId
{
get
{
return this._ApplicationId;
}
set
{
if ((this._ApplicationId != value))
{
this.OnApplicationIdChanging(value);
this.SendPropertyChanging();
this._ApplicationId = value;
this.SendPropertyChanged("ApplicationId");
this.OnApplicationIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(256)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Membership", Storage="_aspnet_Memberships", ThisKey="ApplicationId", OtherKey="ApplicationId")]
public EntitySet aspnet_Memberships
{
get
{
return this._aspnet_Memberships;
}
set
{
this._aspnet_Memberships.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Role", Storage="_aspnet_Roles", ThisKey="ApplicationId", OtherKey="ApplicationId")]
public EntitySet aspnet_Roles
{
get
{
return this._aspnet_Roles;
}
set
{
this._aspnet_Roles.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_User", Storage="_aspnet_Users", ThisKey="ApplicationId", OtherKey="ApplicationId")]
public EntitySet aspnet_Users
{
get
{
return this._aspnet_Users;
}
set
{
this._aspnet_Users.Assign(value);
}
}
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));
}
}
private void attach_aspnet_Memberships(aspnet_Membership entity)
{
this.SendPropertyChanging();
entity.aspnet_Application = this;
}
private void detach_aspnet_Memberships(aspnet_Membership entity)
{
this.SendPropertyChanging();
entity.aspnet_Application = null;
}
private void attach_aspnet_Roles(aspnet_Role entity)
{
this.SendPropertyChanging();
entity.aspnet_Application = this;
}
private void detach_aspnet_Roles(aspnet_Role entity)
{
this.SendPropertyChanging();
entity.aspnet_Application = null;
}
private void attach_aspnet_Users(aspnet_User entity)
{
this.SendPropertyChanging();
entity.aspnet_Application = this;
}
private void detach_aspnet_Users(aspnet_User entity)
{
this.SendPropertyChanging();
entity.aspnet_Application = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Membership")]
public partial class aspnet_Membership : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _ApplicationId;
private System.Guid _UserId;
private string _Password;
private int _PasswordFormat;
private string _PasswordSalt;
private string _MobilePIN;
private string _Email;
private string _LoweredEmail;
private string _PasswordQuestion;
private string _PasswordAnswer;
private bool _IsApproved;
private bool _IsLockedOut;
private System.DateTime _CreateDate;
private System.DateTime _LastLoginDate;
private System.DateTime _LastPasswordChangedDate;
private System.DateTime _LastLockoutDate;
private int _FailedPasswordAttemptCount;
private System.DateTime _FailedPasswordAttemptWindowStart;
private int _FailedPasswordAnswerAttemptCount;
private System.DateTime _FailedPasswordAnswerAttemptWindowStart;
private string _Comment;
private EntityRef _aspnet_Application;
private EntityRef _aspnet_User;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnApplicationIdChanging(System.Guid value);
partial void OnApplicationIdChanged();
partial void OnUserIdChanging(System.Guid value);
partial void OnUserIdChanged();
partial void OnPasswordChanging(string value);
partial void OnPasswordChanged();
partial void OnPasswordFormatChanging(int value);
partial void OnPasswordFormatChanged();
partial void OnPasswordSaltChanging(string value);
partial void OnPasswordSaltChanged();
partial void OnMobilePINChanging(string value);
partial void OnMobilePINChanged();
partial void OnEmailChanging(string value);
partial void OnEmailChanged();
partial void OnLoweredEmailChanging(string value);
partial void OnLoweredEmailChanged();
partial void OnPasswordQuestionChanging(string value);
partial void OnPasswordQuestionChanged();
partial void OnPasswordAnswerChanging(string value);
partial void OnPasswordAnswerChanged();
partial void OnIsApprovedChanging(bool value);
partial void OnIsApprovedChanged();
partial void OnIsLockedOutChanging(bool value);
partial void OnIsLockedOutChanged();
partial void OnCreateDateChanging(System.DateTime value);
partial void OnCreateDateChanged();
partial void OnLastLoginDateChanging(System.DateTime value);
partial void OnLastLoginDateChanged();
partial void OnLastPasswordChangedDateChanging(System.DateTime value);
partial void OnLastPasswordChangedDateChanged();
partial void OnLastLockoutDateChanging(System.DateTime value);
partial void OnLastLockoutDateChanged();
partial void OnFailedPasswordAttemptCountChanging(int value);
partial void OnFailedPasswordAttemptCountChanged();
partial void OnFailedPasswordAttemptWindowStartChanging(System.DateTime value);
partial void OnFailedPasswordAttemptWindowStartChanged();
partial void OnFailedPasswordAnswerAttemptCountChanging(int value);
partial void OnFailedPasswordAnswerAttemptCountChanged();
partial void OnFailedPasswordAnswerAttemptWindowStartChanging(System.DateTime value);
partial void OnFailedPasswordAnswerAttemptWindowStartChanged();
partial void OnCommentChanging(string value);
partial void OnCommentChanged();
#endregion
public aspnet_Membership()
{
this._aspnet_Application = default(EntityRef);
this._aspnet_User = default(EntityRef);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
public System.Guid ApplicationId
{
get
{
return this._ApplicationId;
}
set
{
if ((this._ApplicationId != value))
{
if (this._aspnet_Application.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnApplicationIdChanging(value);
this.SendPropertyChanging();
this._ApplicationId = value;
this.SendPropertyChanged("ApplicationId");
this.OnApplicationIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid UserId
{
get
{
return this._UserId;
}
set
{
if ((this._UserId != value))
{
if (this._aspnet_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnUserIdChanging(value);
this.SendPropertyChanging();
this._UserId = value;
this.SendPropertyChanged("UserId");
this.OnUserIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(128) NOT NULL", 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();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordFormat", DbType="Int NOT NULL")]
public int PasswordFormat
{
get
{
return this._PasswordFormat;
}
set
{
if ((this._PasswordFormat != value))
{
this.OnPasswordFormatChanging(value);
this.SendPropertyChanging();
this._PasswordFormat = value;
this.SendPropertyChanged("PasswordFormat");
this.OnPasswordFormatChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordSalt", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
public string PasswordSalt
{
get
{
return this._PasswordSalt;
}
set
{
if ((this._PasswordSalt != value))
{
this.OnPasswordSaltChanging(value);
this.SendPropertyChanging();
this._PasswordSalt = value;
this.SendPropertyChanged("PasswordSalt");
this.OnPasswordSaltChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MobilePIN", DbType="NVarChar(16)")]
public string MobilePIN
{
get
{
return this._MobilePIN;
}
set
{
if ((this._MobilePIN != value))
{
this.OnMobilePINChanging(value);
this.SendPropertyChanging();
this._MobilePIN = value;
this.SendPropertyChanged("MobilePIN");
this.OnMobilePINChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
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();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredEmail", DbType="NVarChar(256)")]
public string LoweredEmail
{
get
{
return this._LoweredEmail;
}
set
{
if ((this._LoweredEmail != value))
{
this.OnLoweredEmailChanging(value);
this.SendPropertyChanging();
this._LoweredEmail = value;
this.SendPropertyChanged("LoweredEmail");
this.OnLoweredEmailChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordQuestion", DbType="NVarChar(256)")]
public string PasswordQuestion
{
get
{
return this._PasswordQuestion;
}
set
{
if ((this._PasswordQuestion != value))
{
this.OnPasswordQuestionChanging(value);
this.SendPropertyChanging();
this._PasswordQuestion = value;
this.SendPropertyChanged("PasswordQuestion");
this.OnPasswordQuestionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordAnswer", DbType="NVarChar(128)")]
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();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsApproved", DbType="Bit NOT NULL")]
public bool IsApproved
{
get
{
return this._IsApproved;
}
set
{
if ((this._IsApproved != value))
{
this.OnIsApprovedChanging(value);
this.SendPropertyChanging();
this._IsApproved = value;
this.SendPropertyChanged("IsApproved");
this.OnIsApprovedChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsLockedOut", DbType="Bit NOT NULL")]
public bool IsLockedOut
{
get
{
return this._IsLockedOut;
}
set
{
if ((this._IsLockedOut != value))
{
this.OnIsLockedOutChanging(value);
this.SendPropertyChanging();
this._IsLockedOut = value;
this.SendPropertyChanged("IsLockedOut");
this.OnIsLockedOutChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime NOT NULL")]
public System.DateTime CreateDate
{
get
{
return this._CreateDate;
}
set
{
if ((this._CreateDate != value))
{
this.OnCreateDateChanging(value);
this.SendPropertyChanging();
this._CreateDate = value;
this.SendPropertyChanged("CreateDate");
this.OnCreateDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastLoginDate", DbType="DateTime NOT NULL")]
public System.DateTime LastLoginDate
{
get
{
return this._LastLoginDate;
}
set
{
if ((this._LastLoginDate != value))
{
this.OnLastLoginDateChanging(value);
this.SendPropertyChanging();
this._LastLoginDate = value;
this.SendPropertyChanged("LastLoginDate");
this.OnLastLoginDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastPasswordChangedDate", DbType="DateTime NOT NULL")]
public System.DateTime LastPasswordChangedDate
{
get
{
return this._LastPasswordChangedDate;
}
set
{
if ((this._LastPasswordChangedDate != value))
{
this.OnLastPasswordChangedDateChanging(value);
this.SendPropertyChanging();
this._LastPasswordChangedDate = value;
this.SendPropertyChanged("LastPasswordChangedDate");
this.OnLastPasswordChangedDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastLockoutDate", DbType="DateTime NOT NULL")]
public System.DateTime LastLockoutDate
{
get
{
return this._LastLockoutDate;
}
set
{
if ((this._LastLockoutDate != value))
{
this.OnLastLockoutDateChanging(value);
this.SendPropertyChanging();
this._LastLockoutDate = value;
this.SendPropertyChanged("LastLockoutDate");
this.OnLastLockoutDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAttemptCount", DbType="Int NOT NULL")]
public int FailedPasswordAttemptCount
{
get
{
return this._FailedPasswordAttemptCount;
}
set
{
if ((this._FailedPasswordAttemptCount != value))
{
this.OnFailedPasswordAttemptCountChanging(value);
this.SendPropertyChanging();
this._FailedPasswordAttemptCount = value;
this.SendPropertyChanged("FailedPasswordAttemptCount");
this.OnFailedPasswordAttemptCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAttemptWindowStart", DbType="DateTime NOT NULL")]
public System.DateTime FailedPasswordAttemptWindowStart
{
get
{
return this._FailedPasswordAttemptWindowStart;
}
set
{
if ((this._FailedPasswordAttemptWindowStart != value))
{
this.OnFailedPasswordAttemptWindowStartChanging(value);
this.SendPropertyChanging();
this._FailedPasswordAttemptWindowStart = value;
this.SendPropertyChanged("FailedPasswordAttemptWindowStart");
this.OnFailedPasswordAttemptWindowStartChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAnswerAttemptCount", DbType="Int NOT NULL")]
public int FailedPasswordAnswerAttemptCount
{
get
{
return this._FailedPasswordAnswerAttemptCount;
}
set
{
if ((this._FailedPasswordAnswerAttemptCount != value))
{
this.OnFailedPasswordAnswerAttemptCountChanging(value);
this.SendPropertyChanging();
this._FailedPasswordAnswerAttemptCount = value;
this.SendPropertyChanged("FailedPasswordAnswerAttemptCount");
this.OnFailedPasswordAnswerAttemptCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAnswerAttemptWindowStart", DbType="DateTime NOT NULL")]
public System.DateTime FailedPasswordAnswerAttemptWindowStart
{
get
{
return this._FailedPasswordAnswerAttemptWindowStart;
}
set
{
if ((this._FailedPasswordAnswerAttemptWindowStart != value))
{
this.OnFailedPasswordAnswerAttemptWindowStartChanging(value);
this.SendPropertyChanging();
this._FailedPasswordAnswerAttemptWindowStart = value;
this.SendPropertyChanged("FailedPasswordAnswerAttemptWindowStart");
this.OnFailedPasswordAnswerAttemptWindowStartChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Comment", DbType="NText", UpdateCheck=UpdateCheck.Never)]
public string Comment
{
get
{
return this._Comment;
}
set
{
if ((this._Comment != value))
{
this.OnCommentChanging(value);
this.SendPropertyChanging();
this._Comment = value;
this.SendPropertyChanged("Comment");
this.OnCommentChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Membership", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
public aspnet_Application aspnet_Application
{
get
{
return this._aspnet_Application.Entity;
}
set
{
aspnet_Application previousValue = this._aspnet_Application.Entity;
if (((previousValue != value)
|| (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_Application.Entity = null;
previousValue.aspnet_Memberships.Remove(this);
}
this._aspnet_Application.Entity = value;
if ((value != null))
{
value.aspnet_Memberships.Add(this);
this._ApplicationId = value.ApplicationId;
}
else
{
this._ApplicationId = default(System.Guid);
}
this.SendPropertyChanged("aspnet_Application");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
public aspnet_User aspnet_User
{
get
{
return this._aspnet_User.Entity;
}
set
{
aspnet_User previousValue = this._aspnet_User.Entity;
if (((previousValue != value)
|| (this._aspnet_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_User.Entity = null;
previousValue.aspnet_Membership = null;
}
this._aspnet_User.Entity = value;
if ((value != null))
{
value.aspnet_Membership = this;
this._UserId = value.UserId;
}
else
{
this._UserId = default(System.Guid);
}
this.SendPropertyChanged("aspnet_User");
}
}
}
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.aspnet_Roles")]
public partial class aspnet_Role : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _ApplicationId;
private System.Guid _RoleId;
private string _RoleName;
private string _LoweredRoleName;
private string _Description;
private EntitySet _aspnet_UsersInRoles;
private EntityRef _aspnet_Application;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnApplicationIdChanging(System.Guid value);
partial void OnApplicationIdChanged();
partial void OnRoleIdChanging(System.Guid value);
partial void OnRoleIdChanged();
partial void OnRoleNameChanging(string value);
partial void OnRoleNameChanged();
partial void OnLoweredRoleNameChanging(string value);
partial void OnLoweredRoleNameChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
#endregion
public aspnet_Role()
{
this._aspnet_UsersInRoles = new EntitySet(new Action(this.attach_aspnet_UsersInRoles), new Action(this.detach_aspnet_UsersInRoles));
this._aspnet_Application = default(EntityRef);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
public System.Guid ApplicationId
{
get
{
return this._ApplicationId;
}
set
{
if ((this._ApplicationId != value))
{
if (this._aspnet_Application.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnApplicationIdChanging(value);
this.SendPropertyChanging();
this._ApplicationId = value;
this.SendPropertyChanged("ApplicationId");
this.OnApplicationIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid RoleId
{
get
{
return this._RoleId;
}
set
{
if ((this._RoleId != value))
{
this.OnRoleIdChanging(value);
this.SendPropertyChanging();
this._RoleId = value;
this.SendPropertyChanged("RoleId");
this.OnRoleIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleName", DbType="NVarChar(256) NOT NULL", 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();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredRoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string LoweredRoleName
{
get
{
return this._LoweredRoleName;
}
set
{
if ((this._LoweredRoleName != value))
{
this.OnLoweredRoleNameChanging(value);
this.SendPropertyChanging();
this._LoweredRoleName = value;
this.SendPropertyChanged("LoweredRoleName");
this.OnLoweredRoleNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(256)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Role_aspnet_UsersInRole", Storage="_aspnet_UsersInRoles", ThisKey="RoleId", OtherKey="RoleId")]
public EntitySet aspnet_UsersInRoles
{
get
{
return this._aspnet_UsersInRoles;
}
set
{
this._aspnet_UsersInRoles.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Role", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
public aspnet_Application aspnet_Application
{
get
{
return this._aspnet_Application.Entity;
}
set
{
aspnet_Application previousValue = this._aspnet_Application.Entity;
if (((previousValue != value)
|| (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_Application.Entity = null;
previousValue.aspnet_Roles.Remove(this);
}
this._aspnet_Application.Entity = value;
if ((value != null))
{
value.aspnet_Roles.Add(this);
this._ApplicationId = value.ApplicationId;
}
else
{
this._ApplicationId = default(System.Guid);
}
this.SendPropertyChanged("aspnet_Application");
}
}
}
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));
}
}
private void attach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
{
this.SendPropertyChanging();
entity.aspnet_Role = this;
}
private void detach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
{
this.SendPropertyChanging();
entity.aspnet_Role = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Users")]
public partial class aspnet_User : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _ApplicationId;
private System.Guid _UserId;
private string _UserName;
private string _LoweredUserName;
private string _MobileAlias;
private bool _IsAnonymous;
private System.DateTime _LastActivityDate;
private EntityRef _aspnet_Membership;
private EntitySet _aspnet_UsersInRoles;
private EntityRef _aspnet_Application;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnApplicationIdChanging(System.Guid value);
partial void OnApplicationIdChanged();
partial void OnUserIdChanging(System.Guid value);
partial void OnUserIdChanged();
partial void OnUserNameChanging(string value);
partial void OnUserNameChanged();
partial void OnLoweredUserNameChanging(string value);
partial void OnLoweredUserNameChanged();
partial void OnMobileAliasChanging(string value);
partial void OnMobileAliasChanged();
partial void OnIsAnonymousChanging(bool value);
partial void OnIsAnonymousChanged();
partial void OnLastActivityDateChanging(System.DateTime value);
partial void OnLastActivityDateChanged();
#endregion
public aspnet_User()
{
this._aspnet_Membership = default(EntityRef);
this._aspnet_UsersInRoles = new EntitySet(new Action(this.attach_aspnet_UsersInRoles), new Action(this.detach_aspnet_UsersInRoles));
this._aspnet_Application = default(EntityRef);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
public System.Guid ApplicationId
{
get
{
return this._ApplicationId;
}
set
{
if ((this._ApplicationId != value))
{
if (this._aspnet_Application.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnApplicationIdChanging(value);
this.SendPropertyChanging();
this._ApplicationId = value;
this.SendPropertyChanged("ApplicationId");
this.OnApplicationIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid UserId
{
get
{
return this._UserId;
}
set
{
if ((this._UserId != value))
{
this.OnUserIdChanging(value);
this.SendPropertyChanging();
this._UserId = value;
this.SendPropertyChanged("UserId");
this.OnUserIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string UserName
{
get
{
return this._UserName;
}
set
{
if ((this._UserName != value))
{
this.OnUserNameChanging(value);
this.SendPropertyChanging();
this._UserName = value;
this.SendPropertyChanged("UserName");
this.OnUserNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredUserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string LoweredUserName
{
get
{
return this._LoweredUserName;
}
set
{
if ((this._LoweredUserName != value))
{
this.OnLoweredUserNameChanging(value);
this.SendPropertyChanging();
this._LoweredUserName = value;
this.SendPropertyChanged("LoweredUserName");
this.OnLoweredUserNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MobileAlias", DbType="NVarChar(16)")]
public string MobileAlias
{
get
{
return this._MobileAlias;
}
set
{
if ((this._MobileAlias != value))
{
this.OnMobileAliasChanging(value);
this.SendPropertyChanging();
this._MobileAlias = value;
this.SendPropertyChanged("MobileAlias");
this.OnMobileAliasChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAnonymous", DbType="Bit NOT NULL")]
public bool IsAnonymous
{
get
{
return this._IsAnonymous;
}
set
{
if ((this._IsAnonymous != value))
{
this.OnIsAnonymousChanging(value);
this.SendPropertyChanging();
this._IsAnonymous = value;
this.SendPropertyChanged("IsAnonymous");
this.OnIsAnonymousChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastActivityDate", DbType="DateTime NOT NULL")]
public System.DateTime LastActivityDate
{
get
{
return this._LastActivityDate;
}
set
{
if ((this._LastActivityDate != value))
{
this.OnLastActivityDateChanging(value);
this.SendPropertyChanging();
this._LastActivityDate = value;
this.SendPropertyChanged("LastActivityDate");
this.OnLastActivityDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_Membership", ThisKey="UserId", OtherKey="UserId", IsUnique=true, IsForeignKey=false)]
public aspnet_Membership aspnet_Membership
{
get
{
return this._aspnet_Membership.Entity;
}
set
{
aspnet_Membership previousValue = this._aspnet_Membership.Entity;
if (((previousValue != value)
|| (this._aspnet_Membership.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_Membership.Entity = null;
previousValue.aspnet_User = null;
}
this._aspnet_Membership.Entity = value;
if ((value != null))
{
value.aspnet_User = this;
}
this.SendPropertyChanged("aspnet_Membership");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_UsersInRole", Storage="_aspnet_UsersInRoles", ThisKey="UserId", OtherKey="UserId")]
public EntitySet aspnet_UsersInRoles
{
get
{
return this._aspnet_UsersInRoles;
}
set
{
this._aspnet_UsersInRoles.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_User", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
public aspnet_Application aspnet_Application
{
get
{
return this._aspnet_Application.Entity;
}
set
{
aspnet_Application previousValue = this._aspnet_Application.Entity;
if (((previousValue != value)
|| (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_Application.Entity = null;
previousValue.aspnet_Users.Remove(this);
}
this._aspnet_Application.Entity = value;
if ((value != null))
{
value.aspnet_Users.Add(this);
this._ApplicationId = value.ApplicationId;
}
else
{
this._ApplicationId = default(System.Guid);
}
this.SendPropertyChanged("aspnet_Application");
}
}
}
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));
}
}
private void attach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
{
this.SendPropertyChanging();
entity.aspnet_User = this;
}
private void detach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
{
this.SendPropertyChanging();
entity.aspnet_User = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_UsersInRoles")]
public partial class aspnet_UsersInRole : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _UserId;
private System.Guid _RoleId;
private EntityRef _aspnet_Role;
private EntityRef _aspnet_User;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnUserIdChanging(System.Guid value);
partial void OnUserIdChanged();
partial void OnRoleIdChanging(System.Guid value);
partial void OnRoleIdChanged();
#endregion
public aspnet_UsersInRole()
{
this._aspnet_Role = default(EntityRef);
this._aspnet_User = default(EntityRef);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid UserId
{
get
{
return this._UserId;
}
set
{
if ((this._UserId != value))
{
if (this._aspnet_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnUserIdChanging(value);
this.SendPropertyChanging();
this._UserId = value;
this.SendPropertyChanged("UserId");
this.OnUserIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid RoleId
{
get
{
return this._RoleId;
}
set
{
if ((this._RoleId != value))
{
if (this._aspnet_Role.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnRoleIdChanging(value);
this.SendPropertyChanging();
this._RoleId = value;
this.SendPropertyChanged("RoleId");
this.OnRoleIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Role_aspnet_UsersInRole", Storage="_aspnet_Role", ThisKey="RoleId", OtherKey="RoleId", IsForeignKey=true)]
public aspnet_Role aspnet_Role
{
get
{
return this._aspnet_Role.Entity;
}
set
{
aspnet_Role previousValue = this._aspnet_Role.Entity;
if (((previousValue != value)
|| (this._aspnet_Role.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_Role.Entity = null;
previousValue.aspnet_UsersInRoles.Remove(this);
}
this._aspnet_Role.Entity = value;
if ((value != null))
{
value.aspnet_UsersInRoles.Add(this);
this._RoleId = value.RoleId;
}
else
{
this._RoleId = default(System.Guid);
}
this.SendPropertyChanged("aspnet_Role");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_UsersInRole", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
public aspnet_User aspnet_User
{
get
{
return this._aspnet_User.Entity;
}
set
{
aspnet_User previousValue = this._aspnet_User.Entity;
if (((previousValue != value)
|| (this._aspnet_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._aspnet_User.Entity = null;
previousValue.aspnet_UsersInRoles.Remove(this);
}
this._aspnet_User.Entity = value;
if ((value != null))
{
value.aspnet_UsersInRoles.Add(this);
this._UserId = value.UserId;
}
else
{
this._UserId = default(System.Guid);
}
this.SendPropertyChanged("aspnet_User");
}
}
}
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