//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1412
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace dasBlog.Storage.SqlServer{
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.Runtime.Serialization;
using System.ComponentModel;
using System;
[System.Data.Linq.Mapping.DatabaseAttribute(Name="dasBlogStorageSql")]
public partial class dasBlogStorageSqlDataContext : 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_Path(Aspnet_Path instance);
partial void UpdateAspnet_Path(Aspnet_Path instance);
partial void DeleteAspnet_Path(Aspnet_Path instance);
partial void InsertAspnet_PersonalizationAllUser(Aspnet_PersonalizationAllUser instance);
partial void UpdateAspnet_PersonalizationAllUser(Aspnet_PersonalizationAllUser instance);
partial void DeleteAspnet_PersonalizationAllUser(Aspnet_PersonalizationAllUser instance);
partial void InsertAspnet_PersonalizationPerUser(Aspnet_PersonalizationPerUser instance);
partial void UpdateAspnet_PersonalizationPerUser(Aspnet_PersonalizationPerUser instance);
partial void DeleteAspnet_PersonalizationPerUser(Aspnet_PersonalizationPerUser instance);
partial void InsertAspnet_Profile(Aspnet_Profile instance);
partial void UpdateAspnet_Profile(Aspnet_Profile instance);
partial void DeleteAspnet_Profile(Aspnet_Profile instance);
partial void InsertAspnet_Roles(Aspnet_Roles instance);
partial void UpdateAspnet_Roles(Aspnet_Roles instance);
partial void DeleteAspnet_Roles(Aspnet_Roles instance);
partial void InsertAspnet_SchemaVersion(Aspnet_SchemaVersion instance);
partial void UpdateAspnet_SchemaVersion(Aspnet_SchemaVersion instance);
partial void DeleteAspnet_SchemaVersion(Aspnet_SchemaVersion 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_UsersInRoles(Aspnet_UsersInRoles instance);
partial void UpdateAspnet_UsersInRoles(Aspnet_UsersInRoles instance);
partial void DeleteAspnet_UsersInRoles(Aspnet_UsersInRoles instance);
partial void InsertAspnet_WebEvent_Event(Aspnet_WebEvent_Event instance);
partial void UpdateAspnet_WebEvent_Event(Aspnet_WebEvent_Event instance);
partial void DeleteAspnet_WebEvent_Event(Aspnet_WebEvent_Event instance);
partial void InsertCrosspostInfo(CrosspostInfo instance);
partial void UpdateCrosspostInfo(CrosspostInfo instance);
partial void DeleteCrosspostInfo(CrosspostInfo instance);
partial void InsertEventData(EventData instance);
partial void UpdateEventData(EventData instance);
partial void DeleteEventData(EventData instance);
partial void InsertLogData(LogData instance);
partial void UpdateLogData(LogData instance);
partial void DeleteLogData(LogData instance);
partial void InsertTaggedEntry(TaggedEntry instance);
partial void UpdateTaggedEntry(TaggedEntry instance);
partial void DeleteTaggedEntry(TaggedEntry instance);
partial void InsertTextEntry(TextEntry instance);
partial void UpdateTextEntry(TextEntry instance);
partial void DeleteTextEntry(TextEntry instance);
#endregion
static dasBlogStorageSqlDataContext()
{
}
public dasBlogStorageSqlDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public dasBlogStorageSqlDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public dasBlogStorageSqlDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public dasBlogStorageSqlDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<Aspnet_Application> Aspnet_Applications
{
get
{
return this.GetTable<Aspnet_Application>();
}
}
public System.Data.Linq.Table<Aspnet_Membership> Aspnet_Memberships
{
get
{
return this.GetTable<Aspnet_Membership>();
}
}
public System.Data.Linq.Table<Aspnet_Path> Aspnet_Paths
{
get
{
return this.GetTable<Aspnet_Path>();
}
}
public System.Data.Linq.Table<Aspnet_PersonalizationAllUser> Aspnet_PersonalizationAllUsers
{
get
{
return this.GetTable<Aspnet_PersonalizationAllUser>();
}
}
public System.Data.Linq.Table<Aspnet_PersonalizationPerUser> Aspnet_PersonalizationPerUsers
{
get
{
return this.GetTable<Aspnet_PersonalizationPerUser>();
}
}
public System.Data.Linq.Table<Aspnet_Profile> Aspnet_Profiles
{
get
{
return this.GetTable<Aspnet_Profile>();
}
}
public System.Data.Linq.Table<Aspnet_Roles> Aspnet_Roles
{
get
{
return this.GetTable<Aspnet_Roles>();
}
}
public System.Data.Linq.Table<Aspnet_SchemaVersion> Aspnet_SchemaVersions
{
get
{
return this.GetTable<Aspnet_SchemaVersion>();
}
}
public System.Data.Linq.Table<Aspnet_User> Aspnet_Users
{
get
{
return this.GetTable<Aspnet_User>();
}
}
public System.Data.Linq.Table<Aspnet_UsersInRoles> Aspnet_UsersInRoles
{
get
{
return this.GetTable<Aspnet_UsersInRoles>();
}
}
public System.Data.Linq.Table<Aspnet_WebEvent_Event> Aspnet_WebEvent_Events
{
get
{
return this.GetTable<Aspnet_WebEvent_Event>();
}
}
public System.Data.Linq.Table<CrosspostInfo> CrosspostInfos
{
get
{
return this.GetTable<CrosspostInfo>();
}
}
public System.Data.Linq.Table<EventData> EventDatas
{
get
{
return this.GetTable<EventData>();
}
}
public System.Data.Linq.Table<LogData> LogDatas
{
get
{
return this.GetTable<LogData>();
}
}
public System.Data.Linq.Table<TaggedEntry> TaggedEntries
{
get
{
return this.GetTable<TaggedEntry>();
}
}
public System.Data.Linq.Table<TextEntry> TextEntries
{
get
{
return this.GetTable<TextEntry>();
}
}
}
[Table(Name="dbo.aspnet_Applications")]
[DataContract()]
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_Membership> _Aspnet_Memberships;
private EntitySet<Aspnet_Path> _Aspnet_Paths;
private EntitySet<Aspnet_Roles> _Aspnet_Roles;
private EntitySet<Aspnet_User> _Aspnet_Users;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
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.Initialize();
}
[Column(Storage="_ApplicationName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_LoweredApplicationName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=2)]
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();
}
}
}
[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=3)]
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();
}
}
}
[Column(Storage="_Description", DbType="NVarChar(256)")]
[DataMember(Order=4)]
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();
}
}
}
[Association(Name="FK__aspnet_Me__Appli__151B244E", Storage="_Aspnet_Memberships", OtherKey="ApplicationId", DeleteRule="NO ACTION")]
[DataMember(Order=5)]
public EntitySet<Aspnet_Membership> Aspnet_Memberships
{
get
{
return this._Aspnet_Memberships;
}
set
{
this._Aspnet_Memberships.Assign(value);
}
}
[Association(Name="FK__aspnet_Pa__Appli__17036CC0", Storage="_Aspnet_Paths", OtherKey="ApplicationId", DeleteRule="NO ACTION")]
[DataMember(Order=6)]
public EntitySet<Aspnet_Path> Aspnet_Paths
{
get
{
return this._Aspnet_Paths;
}
set
{
this._Aspnet_Paths.Assign(value);
}
}
[Association(Name="FK__aspnet_Ro__Appli__1BC821DD", Storage="_Aspnet_Roles", OtherKey="ApplicationId", DeleteRule="NO ACTION")]
[DataMember(Order=7)]
public EntitySet<Aspnet_Roles> Aspnet_Roles
{
get
{
return this._Aspnet_Roles;
}
set
{
this._Aspnet_Roles.Assign(value);
}
}
[Association(Name="FK__aspnet_Us__Appli__1CBC4616", Storage="_Aspnet_Users", OtherKey="ApplicationId", DeleteRule="NO ACTION")]
[DataMember(Order=8)]
public EntitySet<Aspnet_User> 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;
this.SendPropertyChanged("Aspnet_Memberships");
}
private void detach_Aspnet_Memberships(Aspnet_Membership entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = null;
this.SendPropertyChanged("Aspnet_Memberships");
}
private void attach_Aspnet_Paths(Aspnet_Path entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = this;
this.SendPropertyChanged("Aspnet_Paths");
}
private void detach_Aspnet_Paths(Aspnet_Path entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = null;
this.SendPropertyChanged("Aspnet_Paths");
}
private void attach_Aspnet_Roles(Aspnet_Roles entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = this;
this.SendPropertyChanged("Aspnet_Roles");
}
private void detach_Aspnet_Roles(Aspnet_Roles entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = null;
this.SendPropertyChanged("Aspnet_Roles");
}
private void attach_Aspnet_Users(Aspnet_User entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = this;
this.SendPropertyChanged("Aspnet_Users");
}
private void detach_Aspnet_Users(Aspnet_User entity)
{
this.SendPropertyChanging();
entity.Aspnet_Application = null;
this.SendPropertyChanged("Aspnet_Users");
}
private void Initialize()
{
OnCreated();
this._Aspnet_Memberships = new EntitySet<Aspnet_Membership>(new Action<Aspnet_Membership>(this.attach_Aspnet_Memberships), new Action<Aspnet_Membership>(this.detach_Aspnet_Memberships));
this._Aspnet_Paths = new EntitySet<Aspnet_Path>(new Action<Aspnet_Path>(this.attach_Aspnet_Paths), new Action<Aspnet_Path>(this.detach_Aspnet_Paths));
this._Aspnet_Roles = new EntitySet<Aspnet_Roles>(new Action<Aspnet_Roles>(this.attach_Aspnet_Roles), new Action<Aspnet_Roles>(this.detach_Aspnet_Roles));
this._Aspnet_Users = new EntitySet<Aspnet_User>(new Action<Aspnet_User>(this.attach_Aspnet_Users), new Action<Aspnet_User>(this.detach_Aspnet_Users));
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_Membership")]
[DataContract()]
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> _Aspnet_Application;
private EntityRef<Aspnet_User> _Aspnet_User;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
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.Initialize();
}
[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=2)]
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();
}
}
}
[Column(Storage="_Password", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
[DataMember(Order=3)]
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="_PasswordFormat", DbType="Int NOT NULL")]
[DataMember(Order=4)]
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();
}
}
}
[Column(Storage="_PasswordSalt", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
[DataMember(Order=5)]
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();
}
}
}
[Column(Storage="_MobilePIN", DbType="NVarChar(16)")]
[DataMember(Order=6)]
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();
}
}
}
[Column(Storage="_Email", DbType="NVarChar(256)")]
[DataMember(Order=7)]
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();
}
}
}
[Column(Storage="_LoweredEmail", DbType="NVarChar(256)")]
[DataMember(Order=8)]
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();
}
}
}
[Column(Storage="_PasswordQuestion", DbType="NVarChar(256)")]
[DataMember(Order=9)]
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();
}
}
}
[Column(Storage="_PasswordAnswer", DbType="NVarChar(128)")]
[DataMember(Order=10)]
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="_IsApproved", DbType="Bit NOT NULL")]
[DataMember(Order=11)]
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();
}
}
}
[Column(Storage="_IsLockedOut", DbType="Bit NOT NULL")]
[DataMember(Order=12)]
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();
}
}
}
[Column(Storage="_CreateDate", DbType="DateTime NOT NULL")]
[DataMember(Order=13)]
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();
}
}
}
[Column(Storage="_LastLoginDate", DbType="DateTime NOT NULL")]
[DataMember(Order=14)]
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();
}
}
}
[Column(Storage="_LastPasswordChangedDate", DbType="DateTime NOT NULL")]
[DataMember(Order=15)]
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();
}
}
}
[Column(Storage="_LastLockoutDate", DbType="DateTime NOT NULL")]
[DataMember(Order=16)]
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();
}
}
}
[Column(Storage="_FailedPasswordAttemptCount", DbType="Int NOT NULL")]
[DataMember(Order=17)]
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();
}
}
}
[Column(Storage="_FailedPasswordAttemptWindowStart", DbType="DateTime NOT NULL")]
[DataMember(Order=18)]
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();
}
}
}
[Column(Storage="_FailedPasswordAnswerAttemptCount", DbType="Int NOT NULL")]
[DataMember(Order=19)]
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();
}
}
}
[Column(Storage="_FailedPasswordAnswerAttemptWindowStart", DbType="DateTime NOT NULL")]
[DataMember(Order=20)]
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();
}
}
}
[Column(Storage="_Comment", DbType="NText", UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=21)]
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();
}
}
}
[Association(Name="FK__aspnet_Me__Appli__151B244E", Storage="_Aspnet_Application", ThisKey="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");
}
}
}
[Association(Name="FK__aspnet_Me__UserI__160F4887", Storage="_Aspnet_User", ThisKey="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));
}
}
private void Initialize()
{
OnCreated();
this._Aspnet_Application = default(EntityRef<Aspnet_Application>);
this._Aspnet_User = default(EntityRef<Aspnet_User>);
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_Paths")]
[DataContract()]
public partial class Aspnet_Path : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _ApplicationId;
private System.Guid _PathId;
private string _Path;
private string _LoweredPath;
private EntityRef<Aspnet_Application> _Aspnet_Application;
private EntityRef<Aspnet_PersonalizationAllUser> _Aspnet_PersonalizationAllUser;
private EntitySet<Aspnet_PersonalizationPerUser> _Aspnet_PersonalizationPerUsers;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnApplicationIdChanging(System.Guid value);
partial void OnApplicationIdChanged();
partial void OnPathIdChanging(System.Guid value);
partial void OnPathIdChanged();
partial void OnPathChanging(string value);
partial void OnPathChanged();
partial void OnLoweredPathChanging(string value);
partial void OnLoweredPathChanged();
#endregion
public Aspnet_Path()
{
this.Initialize();
}
[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_PathId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=2)]
public System.Guid PathId
{
get
{
return this._PathId;
}
set
{
if ((this._PathId != value))
{
this.OnPathIdChanging(value);
this.SendPropertyChanging();
this._PathId = value;
this.SendPropertyChanged("PathId");
this.OnPathIdChanged();
}
}
}
[Column(Storage="_Path", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=3)]
public string Path
{
get
{
return this._Path;
}
set
{
if ((this._Path != value))
{
this.OnPathChanging(value);
this.SendPropertyChanging();
this._Path = value;
this.SendPropertyChanged("Path");
this.OnPathChanged();
}
}
}
[Column(Storage="_LoweredPath", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=4)]
public string LoweredPath
{
get
{
return this._LoweredPath;
}
set
{
if ((this._LoweredPath != value))
{
this.OnLoweredPathChanging(value);
this.SendPropertyChanging();
this._LoweredPath = value;
this.SendPropertyChanged("LoweredPath");
this.OnLoweredPathChanged();
}
}
}
[Association(Name="FK__aspnet_Pa__Appli__17036CC0", Storage="_Aspnet_Application", ThisKey="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_Paths.Remove(this);
}
this._Aspnet_Application.Entity = value;
if ((value != null))
{
value.Aspnet_Paths.Add(this);
this._ApplicationId = value.ApplicationId;
}
else
{
this._ApplicationId = default(System.Guid);
}
this.SendPropertyChanged("Aspnet_Application");
}
}
}
[Association(Name="FK__aspnet_Pe__PathI__17F790F9", Storage="_Aspnet_PersonalizationAllUser", ThisKey="PathId", IsUnique=true, IsForeignKey=false, DeleteRule="NO ACTION")]
[DataMember(Order=5)]
public Aspnet_PersonalizationAllUser Aspnet_PersonalizationAllUser
{
get
{
return this._Aspnet_PersonalizationAllUser.Entity;
}
set
{
Aspnet_PersonalizationAllUser previousValue = this._Aspnet_PersonalizationAllUser.Entity;
if (((previousValue != value)
|| (this._Aspnet_PersonalizationAllUser.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Aspnet_PersonalizationAllUser.Entity = null;
previousValue.Aspnet_Path = null;
}
this._Aspnet_PersonalizationAllUser.Entity = value;
if ((value != null))
{
value.Aspnet_Path = this;
this._PathId = value.PathId;
}
else
{
this._PathId = default(System.Guid);
}
this.SendPropertyChanged("Aspnet_PersonalizationAllUser");
}
}
}
[Association(Name="FK__aspnet_Pe__PathI__18EBB532", Storage="_Aspnet_PersonalizationPerUsers", OtherKey="PathId", DeleteRule="NO ACTION")]
[DataMember(Order=6)]
public EntitySet<Aspnet_PersonalizationPerUser> Aspnet_PersonalizationPerUsers
{
get
{
return this._Aspnet_PersonalizationPerUsers;
}
set
{
this._Aspnet_PersonalizationPerUsers.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_PersonalizationPerUsers(Aspnet_PersonalizationPerUser entity)
{
this.SendPropertyChanging();
entity.Aspnet_Path = this;
this.SendPropertyChanged("Aspnet_PersonalizationPerUsers");
}
private void detach_Aspnet_PersonalizationPerUsers(Aspnet_PersonalizationPerUser entity)
{
this.SendPropertyChanging();
entity.Aspnet_Path = null;
this.SendPropertyChanged("Aspnet_PersonalizationPerUsers");
}
private void Initialize()
{
OnCreated();
this._Aspnet_Application = default(EntityRef<Aspnet_Application>);
this._Aspnet_PersonalizationAllUser = default(EntityRef<Aspnet_PersonalizationAllUser>);
this._Aspnet_PersonalizationPerUsers = new EntitySet<Aspnet_PersonalizationPerUser>(new Action<Aspnet_PersonalizationPerUser>(this.attach_Aspnet_PersonalizationPerUsers), new Action<Aspnet_PersonalizationPerUser>(this.detach_Aspnet_PersonalizationPerUsers));
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_PersonalizationAllUsers")]
[DataContract()]
public partial class Aspnet_PersonalizationAllUser : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _PathId;
private System.Data.Linq.Binary _PageSettings;
private System.DateTime _LastUpdatedDate;
private EntityRef<Aspnet_Path> _Aspnet_Path;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnPathIdChanging(System.Guid value);
partial void OnPathIdChanged();
partial void OnPageSettingsChanging(System.Data.Linq.Binary value);
partial void OnPageSettingsChanged();
partial void OnLastUpdatedDateChanging(System.DateTime value);
partial void OnLastUpdatedDateChanged();
#endregion
public Aspnet_PersonalizationAllUser()
{
this.Initialize();
}
[Column(Storage="_PathId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=1)]
public System.Guid PathId
{
get
{
return this._PathId;
}
set
{
if ((this._PathId != value))
{
if (this._Aspnet_Path.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnPathIdChanging(value);
this.SendPropertyChanging();
this._PathId = value;
this.SendPropertyChanged("PathId");
this.OnPathIdChanged();
}
}
}
[Column(Storage="_PageSettings", DbType="Image NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=2)]
public System.Data.Linq.Binary PageSettings
{
get
{
return this._PageSettings;
}
set
{
if ((this._PageSettings != value))
{
this.OnPageSettingsChanging(value);
this.SendPropertyChanging();
this._PageSettings = value;
this.SendPropertyChanged("PageSettings");
this.OnPageSettingsChanged();
}
}
}
[Column(Storage="_LastUpdatedDate", DbType="DateTime NOT NULL")]
[DataMember(Order=3)]
public System.DateTime LastUpdatedDate
{
get
{
return this._LastUpdatedDate;
}
set
{
if ((this._LastUpdatedDate != value))
{
this.OnLastUpdatedDateChanging(value);
this.SendPropertyChanging();
this._LastUpdatedDate = value;
this.SendPropertyChanged("LastUpdatedDate");
this.OnLastUpdatedDateChanged();
}
}
}
[Association(Name="FK__aspnet_Pe__PathI__17F790F9", Storage="_Aspnet_Path", ThisKey="PathId", IsForeignKey=true)]
public Aspnet_Path Aspnet_Path
{
get
{
return this._Aspnet_Path.Entity;
}
set
{
Aspnet_Path previousValue = this._Aspnet_Path.Entity;
if (((previousValue != value)
|| (this._Aspnet_Path.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Aspnet_Path.Entity = null;
previousValue.Aspnet_PersonalizationAllUser = null;
}
this._Aspnet_Path.Entity = value;
if ((value != null))
{
value.Aspnet_PersonalizationAllUser = this;
this._PathId = value.PathId;
}
else
{
this._PathId = default(System.Guid);
}
this.SendPropertyChanged("Aspnet_Path");
}
}
}
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 Initialize()
{
OnCreated();
this._Aspnet_Path = default(EntityRef<Aspnet_Path>);
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_PersonalizationPerUser")]
[DataContract()]
public partial class Aspnet_PersonalizationPerUser : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _Id;
private System.Nullable<System.Guid> _PathId;
private System.Nullable<System.Guid> _UserId;
private System.Data.Linq.Binary _PageSettings;
private System.DateTime _LastUpdatedDate;
private EntityRef<Aspnet_Path> _Aspnet_Path;
private EntityRef<Aspnet_User> _Aspnet_User;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnIdChanging(System.Guid value);
partial void OnIdChanged();
partial void OnPathIdChanging(System.Nullable<System.Guid> value);
partial void OnPathIdChanged();
partial void OnUserIdChanging(System.Nullable<System.Guid> value);
partial void OnUserIdChanged();
partial void OnPageSettingsChanging(System.Data.Linq.Binary value);
partial void OnPageSettingsChanged();
partial void OnLastUpdatedDateChanging(System.DateTime value);
partial void OnLastUpdatedDateChanged();
#endregion
public Aspnet_PersonalizationPerUser()
{
this.Initialize();
}
[Column(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=1)]
public System.Guid Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[Column(Storage="_PathId", DbType="UniqueIdentifier")]
[DataMember(Order=2)]
public System.Nullable<System.Guid> PathId
{
get
{
return this._PathId;
}
set
{
if ((this._PathId != value))
{
if (this._Aspnet_Path.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnPathIdChanging(value);
this.SendPropertyChanging();
this._PathId = value;
this.SendPropertyChanged("PathId");
this.OnPathIdChanged();
}
}
}
[Column(Storage="_UserId", DbType="UniqueIdentifier")]
[DataMember(Order=3)]
public System.Nullable<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();
}
}
}
[Column(Storage="_PageSettings", DbType="Image NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=4)]
public System.Data.Linq.Binary PageSettings
{
get
{
return this._PageSettings;
}
set
{
if ((this._PageSettings != value))
{
this.OnPageSettingsChanging(value);
this.SendPropertyChanging();
this._PageSettings = value;
this.SendPropertyChanged("PageSettings");
this.OnPageSettingsChanged();
}
}
}
[Column(Storage="_LastUpdatedDate", DbType="DateTime NOT NULL")]
[DataMember(Order=5)]
public System.DateTime LastUpdatedDate
{
get
{
return this._LastUpdatedDate;
}
set
{
if ((this._LastUpdatedDate != value))
{
this.OnLastUpdatedDateChanging(value);
this.SendPropertyChanging();
this._LastUpdatedDate = value;
this.SendPropertyChanged("LastUpdatedDate");
this.OnLastUpdatedDateChanged();
}
}
}
[Association(Name="FK__aspnet_Pe__PathI__18EBB532", Storage="_Aspnet_Path", ThisKey="PathId", IsForeignKey=true)]
public Aspnet_Path Aspnet_Path
{
get
{
return this._Aspnet_Path.Entity;
}
set
{
Aspnet_Path previousValue = this._Aspnet_Path.Entity;
if (((previousValue != value)
|| (this._Aspnet_Path.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Aspnet_Path.Entity = null;
previousValue.Aspnet_PersonalizationPerUsers.Remove(this);
}
this._Aspnet_Path.Entity = value;
if ((value != null))
{
value.Aspnet_PersonalizationPerUsers.Add(this);
this._PathId = value.PathId;
}
else
{
this._PathId = default(Nullable<System.Guid>);
}
this.SendPropertyChanged("Aspnet_Path");
}
}
}
[Association(Name="FK__aspnet_Pe__UserI__19DFD96B", Storage="_Aspnet_User", ThisKey="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_PersonalizationPerUsers.Remove(this);
}
this._Aspnet_User.Entity = value;
if ((value != null))
{
value.Aspnet_PersonalizationPerUsers.Add(this);
this._UserId = value.UserId;
}
else
{
this._UserId = default(Nullable<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));
}
}
private void Initialize()
{
OnCreated();
this._Aspnet_Path = default(EntityRef<Aspnet_Path>);
this._Aspnet_User = default(EntityRef<Aspnet_User>);
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_Profile")]
[DataContract()]
public partial class Aspnet_Profile : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _UserId;
private string _PropertyNames;
private string _PropertyValuesString;
private System.Data.Linq.Binary _PropertyValuesBinary;
private System.DateTime _LastUpdatedDate;
private EntityRef<Aspnet_User> _Aspnet_User;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnUserIdChanging(System.Guid value);
partial void OnUserIdChanged();
partial void OnPropertyNamesChanging(string value);
partial void OnPropertyNamesChanged();
partial void OnPropertyValuesStringChanging(string value);
partial void OnPropertyValuesStringChanged();
partial void OnPropertyValuesBinaryChanging(System.Data.Linq.Binary value);
partial void OnPropertyValuesBinaryChanged();
partial void OnLastUpdatedDateChanging(System.DateTime value);
partial void OnLastUpdatedDateChanged();
#endregion
public Aspnet_Profile()
{
this.Initialize();
}
[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_PropertyNames", DbType="NText NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=2)]
public string PropertyNames
{
get
{
return this._PropertyNames;
}
set
{
if ((this._PropertyNames != value))
{
this.OnPropertyNamesChanging(value);
this.SendPropertyChanging();
this._PropertyNames = value;
this.SendPropertyChanged("PropertyNames");
this.OnPropertyNamesChanged();
}
}
}
[Column(Storage="_PropertyValuesString", DbType="NText NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=3)]
public string PropertyValuesString
{
get
{
return this._PropertyValuesString;
}
set
{
if ((this._PropertyValuesString != value))
{
this.OnPropertyValuesStringChanging(value);
this.SendPropertyChanging();
this._PropertyValuesString = value;
this.SendPropertyChanged("PropertyValuesString");
this.OnPropertyValuesStringChanged();
}
}
}
[Column(Storage="_PropertyValuesBinary", DbType="Image NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=4)]
public System.Data.Linq.Binary PropertyValuesBinary
{
get
{
return this._PropertyValuesBinary;
}
set
{
if ((this._PropertyValuesBinary != value))
{
this.OnPropertyValuesBinaryChanging(value);
this.SendPropertyChanging();
this._PropertyValuesBinary = value;
this.SendPropertyChanged("PropertyValuesBinary");
this.OnPropertyValuesBinaryChanged();
}
}
}
[Column(Storage="_LastUpdatedDate", DbType="DateTime NOT NULL")]
[DataMember(Order=5)]
public System.DateTime LastUpdatedDate
{
get
{
return this._LastUpdatedDate;
}
set
{
if ((this._LastUpdatedDate != value))
{
this.OnLastUpdatedDateChanging(value);
this.SendPropertyChanging();
this._LastUpdatedDate = value;
this.SendPropertyChanged("LastUpdatedDate");
this.OnLastUpdatedDateChanged();
}
}
}
[Association(Name="FK__aspnet_Pr__UserI__1AD3FDA4", Storage="_Aspnet_User", ThisKey="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_Profile = null;
}
this._Aspnet_User.Entity = value;
if ((value != null))
{
value.Aspnet_Profile = 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));
}
}
private void Initialize()
{
OnCreated();
this._Aspnet_User = default(EntityRef<Aspnet_User>);
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_Roles")]
[DataContract()]
public partial class Aspnet_Roles : 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 EntityRef<Aspnet_Application> _Aspnet_Application;
private EntitySet<Aspnet_UsersInRoles> _Aspnet_UsersInRoles;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
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_Roles()
{
this.Initialize();
}
[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=2)]
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();
}
}
}
[Column(Storage="_RoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=3)]
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(Storage="_LoweredRoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=4)]
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();
}
}
}
[Column(Storage="_Description", DbType="NVarChar(256)")]
[DataMember(Order=5)]
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();
}
}
}
[Association(Name="FK__aspnet_Ro__Appli__1BC821DD", Storage="_Aspnet_Application", ThisKey="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");
}
}
}
[Association(Name="FK__aspnet_Us__RoleI__1DB06A4F", Storage="_Aspnet_UsersInRoles", OtherKey="RoleId", DeleteRule="NO ACTION")]
[DataMember(Order=6)]
public EntitySet<Aspnet_UsersInRoles> Aspnet_UsersInRoles
{
get
{
return this._Aspnet_UsersInRoles;
}
set
{
this._Aspnet_UsersInRoles.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_UsersInRoles(Aspnet_UsersInRoles entity)
{
this.SendPropertyChanging();
entity.Aspnet_Roles = this;
this.SendPropertyChanged("Aspnet_UsersInRoles");
}
private void detach_Aspnet_UsersInRoles(Aspnet_UsersInRoles entity)
{
this.SendPropertyChanging();
entity.Aspnet_Roles = null;
this.SendPropertyChanged("Aspnet_UsersInRoles");
}
private void Initialize()
{
OnCreated();
this._Aspnet_Application = default(EntityRef<Aspnet_Application>);
this._Aspnet_UsersInRoles = new EntitySet<Aspnet_UsersInRoles>(new Action<Aspnet_UsersInRoles>(this.attach_Aspnet_UsersInRoles), new Action<Aspnet_UsersInRoles>(this.detach_Aspnet_UsersInRoles));
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_SchemaVersions")]
[DataContract()]
public partial class Aspnet_SchemaVersion : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Feature;
private string _CompatibleSchemaVersion;
private bool _IsCurrentVersion;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnFeatureChanging(string value);
partial void OnFeatureChanged();
partial void OnCompatibleSchemaVersionChanging(string value);
partial void OnCompatibleSchemaVersionChanged();
partial void OnIsCurrentVersionChanging(bool value);
partial void OnIsCurrentVersionChanged();
#endregion
public Aspnet_SchemaVersion()
{
this.Initialize();
}
[Column(Storage="_Feature", DbType="NVarChar(128) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string Feature
{
get
{
return this._Feature;
}
set
{
if ((this._Feature != value))
{
this.OnFeatureChanging(value);
this.SendPropertyChanging();
this._Feature = value;
this.SendPropertyChanged("Feature");
this.OnFeatureChanged();
}
}
}
[Column(Storage="_CompatibleSchemaVersion", DbType="NVarChar(128) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=2)]
public string CompatibleSchemaVersion
{
get
{
return this._CompatibleSchemaVersion;
}
set
{
if ((this._CompatibleSchemaVersion != value))
{
this.OnCompatibleSchemaVersionChanging(value);
this.SendPropertyChanging();
this._CompatibleSchemaVersion = value;
this.SendPropertyChanged("CompatibleSchemaVersion");
this.OnCompatibleSchemaVersionChanged();
}
}
}
[Column(Storage="_IsCurrentVersion", DbType="Bit NOT NULL")]
[DataMember(Order=3)]
public bool IsCurrentVersion
{
get
{
return this._IsCurrentVersion;
}
set
{
if ((this._IsCurrentVersion != value))
{
this.OnIsCurrentVersionChanging(value);
this.SendPropertyChanging();
this._IsCurrentVersion = value;
this.SendPropertyChanged("IsCurrentVersion");
this.OnIsCurrentVersionChanged();
}
}
}
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 Initialize()
{
OnCreated();
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_Users")]
[DataContract()]
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> _Aspnet_Membership;
private EntitySet<Aspnet_PersonalizationPerUser> _Aspnet_PersonalizationPerUsers;
private EntityRef<Aspnet_Profile> _Aspnet_Profile;
private EntityRef<Aspnet_Application> _Aspnet_Application;
private EntitySet<Aspnet_UsersInRoles> _Aspnet_UsersInRoles;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
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.Initialize();
}
[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=2)]
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();
}
}
}
[Column(Storage="_UserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=3)]
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();
}
}
}
[Column(Storage="_LoweredUserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=4)]
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();
}
}
}
[Column(Storage="_MobileAlias", DbType="NVarChar(16)")]
[DataMember(Order=5)]
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();
}
}
}
[Column(Storage="_IsAnonymous", DbType="Bit NOT NULL")]
[DataMember(Order=6)]
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();
}
}
}
[Column(Storage="_LastActivityDate", DbType="DateTime NOT NULL")]
[DataMember(Order=7)]
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();
}
}
}
[Association(Name="FK__aspnet_Me__UserI__160F4887", Storage="_Aspnet_Membership", ThisKey="UserId", IsUnique=true, IsForeignKey=false, DeleteRule="NO ACTION")]
[DataMember(Order=8)]
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._UserId = value.UserId;
}
else
{
this._UserId = default(System.Guid);
}
this.SendPropertyChanged("Aspnet_Membership");
}
}
}
[Association(Name="FK__aspnet_Pe__UserI__19DFD96B", Storage="_Aspnet_PersonalizationPerUsers", OtherKey="UserId", DeleteRule="NO ACTION")]
[DataMember(Order=9)]
public EntitySet<Aspnet_PersonalizationPerUser> Aspnet_PersonalizationPerUsers
{
get
{
return this._Aspnet_PersonalizationPerUsers;
}
set
{
this._Aspnet_PersonalizationPerUsers.Assign(value);
}
}
[Association(Name="FK__aspnet_Pr__UserI__1AD3FDA4", Storage="_Aspnet_Profile", ThisKey="UserId", IsUnique=true, IsForeignKey=false, DeleteRule="NO ACTION")]
[DataMember(Order=10)]
public Aspnet_Profile Aspnet_Profile
{
get
{
return this._Aspnet_Profile.Entity;
}
set
{
Aspnet_Profile previousValue = this._Aspnet_Profile.Entity;
if (((previousValue != value)
|| (this._Aspnet_Profile.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Aspnet_Profile.Entity = null;
previousValue.Aspnet_User = null;
}
this._Aspnet_Profile.Entity = value;
if ((value != null))
{
value.Aspnet_User = this;
this._UserId = value.UserId;
}
else
{
this._UserId = default(System.Guid);
}
this.SendPropertyChanged("Aspnet_Profile");
}
}
}
[Association(Name="FK__aspnet_Us__Appli__1CBC4616", Storage="_Aspnet_Application", ThisKey="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");
}
}
}
[Association(Name="FK__aspnet_Us__UserI__1EA48E88", Storage="_Aspnet_UsersInRoles", OtherKey="UserId", DeleteRule="NO ACTION")]
[DataMember(Order=11)]
public EntitySet<Aspnet_UsersInRoles> Aspnet_UsersInRoles
{
get
{
return this._Aspnet_UsersInRoles;
}
set
{
this._Aspnet_UsersInRoles.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_PersonalizationPerUsers(Aspnet_PersonalizationPerUser entity)
{
this.SendPropertyChanging();
entity.Aspnet_User = this;
this.SendPropertyChanged("Aspnet_PersonalizationPerUsers");
}
private void detach_Aspnet_PersonalizationPerUsers(Aspnet_PersonalizationPerUser entity)
{
this.SendPropertyChanging();
entity.Aspnet_User = null;
this.SendPropertyChanged("Aspnet_PersonalizationPerUsers");
}
private void attach_Aspnet_UsersInRoles(Aspnet_UsersInRoles entity)
{
this.SendPropertyChanging();
entity.Aspnet_User = this;
this.SendPropertyChanged("Aspnet_UsersInRoles");
}
private void detach_Aspnet_UsersInRoles(Aspnet_UsersInRoles entity)
{
this.SendPropertyChanging();
entity.Aspnet_User = null;
this.SendPropertyChanged("Aspnet_UsersInRoles");
}
private void Initialize()
{
OnCreated();
this._Aspnet_Membership = default(EntityRef<Aspnet_Membership>);
this._Aspnet_PersonalizationPerUsers = new EntitySet<Aspnet_PersonalizationPerUser>(new Action<Aspnet_PersonalizationPerUser>(this.attach_Aspnet_PersonalizationPerUsers), new Action<Aspnet_PersonalizationPerUser>(this.detach_Aspnet_PersonalizationPerUsers));
this._Aspnet_Profile = default(EntityRef<Aspnet_Profile>);
this._Aspnet_Application = default(EntityRef<Aspnet_Application>);
this._Aspnet_UsersInRoles = new EntitySet<Aspnet_UsersInRoles>(new Action<Aspnet_UsersInRoles>(this.attach_Aspnet_UsersInRoles), new Action<Aspnet_UsersInRoles>(this.detach_Aspnet_UsersInRoles));
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_UsersInRoles")]
[DataContract()]
public partial class Aspnet_UsersInRoles : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _UserId;
private System.Guid _RoleId;
private EntityRef<Aspnet_Roles> _Aspnet_Roles;
private EntityRef<Aspnet_User> _Aspnet_User;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnUserIdChanging(System.Guid value);
partial void OnUserIdChanged();
partial void OnRoleIdChanging(System.Guid value);
partial void OnRoleIdChanged();
#endregion
public Aspnet_UsersInRoles()
{
this.Initialize();
}
[Column(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=1)]
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();
}
}
}
[Column(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
[DataMember(Order=2)]
public System.Guid RoleId
{
get
{
return this._RoleId;
}
set
{
if ((this._RoleId != value))
{
if (this._Aspnet_Roles.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnRoleIdChanging(value);
this.SendPropertyChanging();
this._RoleId = value;
this.SendPropertyChanged("RoleId");
this.OnRoleIdChanged();
}
}
}
[Association(Name="FK__aspnet_Us__RoleI__1DB06A4F", Storage="_Aspnet_Roles", ThisKey="RoleId", IsForeignKey=true)]
public Aspnet_Roles Aspnet_Roles
{
get
{
return this._Aspnet_Roles.Entity;
}
set
{
Aspnet_Roles previousValue = this._Aspnet_Roles.Entity;
if (((previousValue != value)
|| (this._Aspnet_Roles.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Aspnet_Roles.Entity = null;
previousValue.Aspnet_UsersInRoles.Remove(this);
}
this._Aspnet_Roles.Entity = value;
if ((value != null))
{
value.Aspnet_UsersInRoles.Add(this);
this._RoleId = value.RoleId;
}
else
{
this._RoleId = default(System.Guid);
}
this.SendPropertyChanged("Aspnet_Roles");
}
}
}
[Association(Name="FK__aspnet_Us__UserI__1EA48E88", Storage="_Aspnet_User", ThisKey="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));
}
}
private void Initialize()
{
OnCreated();
this._Aspnet_Roles = default(EntityRef<Aspnet_Roles>);
this._Aspnet_User = default(EntityRef<Aspnet_User>);
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.aspnet_WebEvent_Events")]
[DataContract()]
public partial class Aspnet_WebEvent_Event : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _EventId;
private System.DateTime _EventTimeUtc;
private System.DateTime _EventTime;
private string _EventType;
private decimal _EventSequence;
private decimal _EventOccurrence;
private int _EventCode;
private int _EventDetailCode;
private string _Message;
private string _ApplicationPath;
private string _ApplicationVirtualPath;
private string _MachineName;
private string _RequestUrl;
private string _ExceptionType;
private string _Details;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnEventIdChanging(string value);
partial void OnEventIdChanged();
partial void OnEventTimeUtcChanging(System.DateTime value);
partial void OnEventTimeUtcChanged();
partial void OnEventTimeChanging(System.DateTime value);
partial void OnEventTimeChanged();
partial void OnEventTypeChanging(string value);
partial void OnEventTypeChanged();
partial void OnEventSequenceChanging(decimal value);
partial void OnEventSequenceChanged();
partial void OnEventOccurrenceChanging(decimal value);
partial void OnEventOccurrenceChanged();
partial void OnEventCodeChanging(int value);
partial void OnEventCodeChanged();
partial void OnEventDetailCodeChanging(int value);
partial void OnEventDetailCodeChanged();
partial void OnMessageChanging(string value);
partial void OnMessageChanged();
partial void OnApplicationPathChanging(string value);
partial void OnApplicationPathChanged();
partial void OnApplicationVirtualPathChanging(string value);
partial void OnApplicationVirtualPathChanged();
partial void OnMachineNameChanging(string value);
partial void OnMachineNameChanged();
partial void OnRequestUrlChanging(string value);
partial void OnRequestUrlChanged();
partial void OnExceptionTypeChanging(string value);
partial void OnExceptionTypeChanged();
partial void OnDetailsChanging(string value);
partial void OnDetailsChanged();
#endregion
public Aspnet_WebEvent_Event()
{
this.Initialize();
}
[Column(Storage="_EventId", DbType="Char(32) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string EventId
{
get
{
return this._EventId;
}
set
{
if ((this._EventId != value))
{
this.OnEventIdChanging(value);
this.SendPropertyChanging();
this._EventId = value;
this.SendPropertyChanged("EventId");
this.OnEventIdChanged();
}
}
}
[Column(Storage="_EventTimeUtc", DbType="DateTime NOT NULL")]
[DataMember(Order=2)]
public System.DateTime EventTimeUtc
{
get
{
return this._EventTimeUtc;
}
set
{
if ((this._EventTimeUtc != value))
{
this.OnEventTimeUtcChanging(value);
this.SendPropertyChanging();
this._EventTimeUtc = value;
this.SendPropertyChanged("EventTimeUtc");
this.OnEventTimeUtcChanged();
}
}
}
[Column(Storage="_EventTime", DbType="DateTime NOT NULL")]
[DataMember(Order=3)]
public System.DateTime EventTime
{
get
{
return this._EventTime;
}
set
{
if ((this._EventTime != value))
{
this.OnEventTimeChanging(value);
this.SendPropertyChanging();
this._EventTime = value;
this.SendPropertyChanged("EventTime");
this.OnEventTimeChanged();
}
}
}
[Column(Storage="_EventType", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=4)]
public string EventType
{
get
{
return this._EventType;
}
set
{
if ((this._EventType != value))
{
this.OnEventTypeChanging(value);
this.SendPropertyChanging();
this._EventType = value;
this.SendPropertyChanged("EventType");
this.OnEventTypeChanged();
}
}
}
[Column(Storage="_EventSequence", DbType="Decimal(19,0) NOT NULL")]
[DataMember(Order=5)]
public decimal EventSequence
{
get
{
return this._EventSequence;
}
set
{
if ((this._EventSequence != value))
{
this.OnEventSequenceChanging(value);
this.SendPropertyChanging();
this._EventSequence = value;
this.SendPropertyChanged("EventSequence");
this.OnEventSequenceChanged();
}
}
}
[Column(Storage="_EventOccurrence", DbType="Decimal(19,0) NOT NULL")]
[DataMember(Order=6)]
public decimal EventOccurrence
{
get
{
return this._EventOccurrence;
}
set
{
if ((this._EventOccurrence != value))
{
this.OnEventOccurrenceChanging(value);
this.SendPropertyChanging();
this._EventOccurrence = value;
this.SendPropertyChanged("EventOccurrence");
this.OnEventOccurrenceChanged();
}
}
}
[Column(Storage="_EventCode", DbType="Int NOT NULL")]
[DataMember(Order=7)]
public int EventCode
{
get
{
return this._EventCode;
}
set
{
if ((this._EventCode != value))
{
this.OnEventCodeChanging(value);
this.SendPropertyChanging();
this._EventCode = value;
this.SendPropertyChanged("EventCode");
this.OnEventCodeChanged();
}
}
}
[Column(Storage="_EventDetailCode", DbType="Int NOT NULL")]
[DataMember(Order=8)]
public int EventDetailCode
{
get
{
return this._EventDetailCode;
}
set
{
if ((this._EventDetailCode != value))
{
this.OnEventDetailCodeChanging(value);
this.SendPropertyChanging();
this._EventDetailCode = value;
this.SendPropertyChanged("EventDetailCode");
this.OnEventDetailCodeChanged();
}
}
}
[Column(Storage="_Message", DbType="NVarChar(1024)")]
[DataMember(Order=9)]
public string Message
{
get
{
return this._Message;
}
set
{
if ((this._Message != value))
{
this.OnMessageChanging(value);
this.SendPropertyChanging();
this._Message = value;
this.SendPropertyChanged("Message");
this.OnMessageChanged();
}
}
}
[Column(Storage="_ApplicationPath", DbType="NVarChar(256)")]
[DataMember(Order=10)]
public string ApplicationPath
{
get
{
return this._ApplicationPath;
}
set
{
if ((this._ApplicationPath != value))
{
this.OnApplicationPathChanging(value);
this.SendPropertyChanging();
this._ApplicationPath = value;
this.SendPropertyChanged("ApplicationPath");
this.OnApplicationPathChanged();
}
}
}
[Column(Storage="_ApplicationVirtualPath", DbType="NVarChar(256)")]
[DataMember(Order=11)]
public string ApplicationVirtualPath
{
get
{
return this._ApplicationVirtualPath;
}
set
{
if ((this._ApplicationVirtualPath != value))
{
this.OnApplicationVirtualPathChanging(value);
this.SendPropertyChanging();
this._ApplicationVirtualPath = value;
this.SendPropertyChanged("ApplicationVirtualPath");
this.OnApplicationVirtualPathChanged();
}
}
}
[Column(Storage="_MachineName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
[DataMember(Order=12)]
public string MachineName
{
get
{
return this._MachineName;
}
set
{
if ((this._MachineName != value))
{
this.OnMachineNameChanging(value);
this.SendPropertyChanging();
this._MachineName = value;
this.SendPropertyChanged("MachineName");
this.OnMachineNameChanged();
}
}
}
[Column(Storage="_RequestUrl", DbType="NVarChar(1024)")]
[DataMember(Order=13)]
public string RequestUrl
{
get
{
return this._RequestUrl;
}
set
{
if ((this._RequestUrl != value))
{
this.OnRequestUrlChanging(value);
this.SendPropertyChanging();
this._RequestUrl = value;
this.SendPropertyChanged("RequestUrl");
this.OnRequestUrlChanged();
}
}
}
[Column(Storage="_ExceptionType", DbType="NVarChar(256)")]
[DataMember(Order=14)]
public string ExceptionType
{
get
{
return this._ExceptionType;
}
set
{
if ((this._ExceptionType != value))
{
this.OnExceptionTypeChanging(value);
this.SendPropertyChanging();
this._ExceptionType = value;
this.SendPropertyChanged("ExceptionType");
this.OnExceptionTypeChanged();
}
}
}
[Column(Storage="_Details", DbType="NText", UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=15)]
public string Details
{
get
{
return this._Details;
}
set
{
if ((this._Details != value))
{
this.OnDetailsChanging(value);
this.SendPropertyChanging();
this._Details = value;
this.SendPropertyChanged("Details");
this.OnDetailsChanged();
}
}
}
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 Initialize()
{
OnCreated();
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.CrosspostInfo")]
[DataContract()]
public partial class CrosspostInfo : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ContextKey;
private string _Id;
private string _Parent;
private string _TargetId;
private string _TrackingUrl;
private System.Nullable<bool> _Posted;
private string _Footer;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnContextKeyChanging(string value);
partial void OnContextKeyChanged();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnParentChanging(string value);
partial void OnParentChanged();
partial void OnTargetIdChanging(string value);
partial void OnTargetIdChanged();
partial void OnTrackingUrlChanging(string value);
partial void OnTrackingUrlChanged();
partial void OnPostedChanging(System.Nullable<bool> value);
partial void OnPostedChanged();
partial void OnFooterChanging(string value);
partial void OnFooterChanged();
#endregion
public CrosspostInfo()
{
this.Initialize();
}
[Column(Storage="_ContextKey", DbType="NVarChar(255) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string ContextKey
{
get
{
return this._ContextKey;
}
set
{
if ((this._ContextKey != value))
{
this.OnContextKeyChanging(value);
this.SendPropertyChanging();
this._ContextKey = value;
this.SendPropertyChanged("ContextKey");
this.OnContextKeyChanged();
}
}
}
[Column(Storage="_Id", DbType="NVarChar(40) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=2)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[Column(Storage="_Parent", DbType="NVarChar(255)")]
[DataMember(Order=3)]
public string Parent
{
get
{
return this._Parent;
}
set
{
if ((this._Parent != value))
{
this.OnParentChanging(value);
this.SendPropertyChanging();
this._Parent = value;
this.SendPropertyChanged("Parent");
this.OnParentChanged();
}
}
}
[Column(Storage="_TargetId", DbType="NVarChar(255)")]
[DataMember(Order=4)]
public string TargetId
{
get
{
return this._TargetId;
}
set
{
if ((this._TargetId != value))
{
this.OnTargetIdChanging(value);
this.SendPropertyChanging();
this._TargetId = value;
this.SendPropertyChanged("TargetId");
this.OnTargetIdChanged();
}
}
}
[Column(Storage="_TrackingUrl", DbType="NVarChar(255)")]
[DataMember(Order=5)]
public string TrackingUrl
{
get
{
return this._TrackingUrl;
}
set
{
if ((this._TrackingUrl != value))
{
this.OnTrackingUrlChanging(value);
this.SendPropertyChanging();
this._TrackingUrl = value;
this.SendPropertyChanged("TrackingUrl");
this.OnTrackingUrlChanged();
}
}
}
[Column(Storage="_Posted", DbType="Bit")]
[DataMember(Order=6)]
public System.Nullable<bool> Posted
{
get
{
return this._Posted;
}
set
{
if ((this._Posted != value))
{
this.OnPostedChanging(value);
this.SendPropertyChanging();
this._Posted = value;
this.SendPropertyChanged("Posted");
this.OnPostedChanged();
}
}
}
[Column(Storage="_Footer", DbType="NVarChar(50)")]
[DataMember(Order=7)]
public string Footer
{
get
{
return this._Footer;
}
set
{
if ((this._Footer != value))
{
this.OnFooterChanging(value);
this.SendPropertyChanging();
this._Footer = value;
this.SendPropertyChanged("Footer");
this.OnFooterChanged();
}
}
}
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 Initialize()
{
OnCreated();
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.EventData")]
[DataContract()]
public partial class EventData : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ContextKey;
private string _Id;
private System.Nullable<System.DateTime> _EventTime;
private string _Message;
private string _EventCode;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnContextKeyChanging(string value);
partial void OnContextKeyChanged();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnEventTimeChanging(System.Nullable<System.DateTime> value);
partial void OnEventTimeChanged();
partial void OnMessageChanging(string value);
partial void OnMessageChanged();
partial void OnEventCodeChanging(string value);
partial void OnEventCodeChanged();
#endregion
public EventData()
{
this.Initialize();
}
[Column(Storage="_ContextKey", DbType="NVarChar(300) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string ContextKey
{
get
{
return this._ContextKey;
}
set
{
if ((this._ContextKey != value))
{
this.OnContextKeyChanging(value);
this.SendPropertyChanging();
this._ContextKey = value;
this.SendPropertyChanged("ContextKey");
this.OnContextKeyChanged();
}
}
}
[Column(Storage="_Id", DbType="NVarChar(40) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=2)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[Column(Storage="_EventTime", DbType="DateTime")]
[DataMember(Order=3)]
public System.Nullable<System.DateTime> EventTime
{
get
{
return this._EventTime;
}
set
{
if ((this._EventTime != value))
{
this.OnEventTimeChanging(value);
this.SendPropertyChanging();
this._EventTime = value;
this.SendPropertyChanged("EventTime");
this.OnEventTimeChanged();
}
}
}
[Column(Storage="_Message", DbType="NVarChar(2000)")]
[DataMember(Order=4)]
public string Message
{
get
{
return this._Message;
}
set
{
if ((this._Message != value))
{
this.OnMessageChanging(value);
this.SendPropertyChanging();
this._Message = value;
this.SendPropertyChanged("Message");
this.OnMessageChanged();
}
}
}
[Column(Storage="_EventCode", DbType="NVarChar(10)")]
[DataMember(Order=5)]
public string EventCode
{
get
{
return this._EventCode;
}
set
{
if ((this._EventCode != value))
{
this.OnEventCodeChanging(value);
this.SendPropertyChanging();
this._EventCode = value;
this.SendPropertyChanged("EventCode");
this.OnEventCodeChanged();
}
}
}
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 Initialize()
{
OnCreated();
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.LogData")]
[DataContract()]
public partial class LogData : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ContextKey;
private string _Id;
private string _UrlRequested;
private string _ReferrerUrl;
private string _ReferrerTitle;
private string _ReferrerName;
private string _TargetId;
private string _TargetTitle;
private string _UserAgent;
private string _UserDomain;
private System.Nullable<System.DateTime> _RequestTime;
private string _UserIP;
private string _TrackingType;
private string _Country;
private string _Location;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnContextKeyChanging(string value);
partial void OnContextKeyChanged();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnUrlRequestedChanging(string value);
partial void OnUrlRequestedChanged();
partial void OnReferrerUrlChanging(string value);
partial void OnReferrerUrlChanged();
partial void OnReferrerTitleChanging(string value);
partial void OnReferrerTitleChanged();
partial void OnReferrerNameChanging(string value);
partial void OnReferrerNameChanged();
partial void OnTargetIdChanging(string value);
partial void OnTargetIdChanged();
partial void OnTargetTitleChanging(string value);
partial void OnTargetTitleChanged();
partial void OnUserAgentChanging(string value);
partial void OnUserAgentChanged();
partial void OnUserDomainChanging(string value);
partial void OnUserDomainChanged();
partial void OnRequestTimeChanging(System.Nullable<System.DateTime> value);
partial void OnRequestTimeChanged();
partial void OnUserIPChanging(string value);
partial void OnUserIPChanged();
partial void OnTrackingTypeChanging(string value);
partial void OnTrackingTypeChanged();
partial void OnCountryChanging(string value);
partial void OnCountryChanged();
partial void OnLocationChanging(string value);
partial void OnLocationChanged();
#endregion
public LogData()
{
this.Initialize();
}
[Column(Storage="_ContextKey", DbType="NVarChar(300) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string ContextKey
{
get
{
return this._ContextKey;
}
set
{
if ((this._ContextKey != value))
{
this.OnContextKeyChanging(value);
this.SendPropertyChanging();
this._ContextKey = value;
this.SendPropertyChanged("ContextKey");
this.OnContextKeyChanged();
}
}
}
[Column(Storage="_Id", DbType="NVarChar(40) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=2)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[Column(Storage="_UrlRequested", DbType="NVarChar(400)")]
[DataMember(Order=3)]
public string UrlRequested
{
get
{
return this._UrlRequested;
}
set
{
if ((this._UrlRequested != value))
{
this.OnUrlRequestedChanging(value);
this.SendPropertyChanging();
this._UrlRequested = value;
this.SendPropertyChanged("UrlRequested");
this.OnUrlRequestedChanged();
}
}
}
[Column(Storage="_ReferrerUrl", DbType="NVarChar(400)")]
[DataMember(Order=4)]
public string ReferrerUrl
{
get
{
return this._ReferrerUrl;
}
set
{
if ((this._ReferrerUrl != value))
{
this.OnReferrerUrlChanging(value);
this.SendPropertyChanging();
this._ReferrerUrl = value;
this.SendPropertyChanged("ReferrerUrl");
this.OnReferrerUrlChanged();
}
}
}
[Column(Storage="_ReferrerTitle", DbType="NVarChar(200)")]
[DataMember(Order=5)]
public string ReferrerTitle
{
get
{
return this._ReferrerTitle;
}
set
{
if ((this._ReferrerTitle != value))
{
this.OnReferrerTitleChanging(value);
this.SendPropertyChanging();
this._ReferrerTitle = value;
this.SendPropertyChanged("ReferrerTitle");
this.OnReferrerTitleChanged();
}
}
}
[Column(Storage="_ReferrerName", DbType="NVarChar(200)")]
[DataMember(Order=6)]
public string ReferrerName
{
get
{
return this._ReferrerName;
}
set
{
if ((this._ReferrerName != value))
{
this.OnReferrerNameChanging(value);
this.SendPropertyChanging();
this._ReferrerName = value;
this.SendPropertyChanged("ReferrerName");
this.OnReferrerNameChanged();
}
}
}
[Column(Storage="_TargetId", DbType="NVarChar(400)")]
[DataMember(Order=7)]
public string TargetId
{
get
{
return this._TargetId;
}
set
{
if ((this._TargetId != value))
{
this.OnTargetIdChanging(value);
this.SendPropertyChanging();
this._TargetId = value;
this.SendPropertyChanged("TargetId");
this.OnTargetIdChanged();
}
}
}
[Column(Storage="_TargetTitle", DbType="NVarChar(400)")]
[DataMember(Order=8)]
public string TargetTitle
{
get
{
return this._TargetTitle;
}
set
{
if ((this._TargetTitle != value))
{
this.OnTargetTitleChanging(value);
this.SendPropertyChanging();
this._TargetTitle = value;
this.SendPropertyChanged("TargetTitle");
this.OnTargetTitleChanged();
}
}
}
[Column(Storage="_UserAgent", DbType="NVarChar(400)")]
[DataMember(Order=9)]
public string UserAgent
{
get
{
return this._UserAgent;
}
set
{
if ((this._UserAgent != value))
{
this.OnUserAgentChanging(value);
this.SendPropertyChanging();
this._UserAgent = value;
this.SendPropertyChanged("UserAgent");
this.OnUserAgentChanged();
}
}
}
[Column(Storage="_UserDomain", DbType="NVarChar(200)")]
[DataMember(Order=10)]
public string UserDomain
{
get
{
return this._UserDomain;
}
set
{
if ((this._UserDomain != value))
{
this.OnUserDomainChanging(value);
this.SendPropertyChanging();
this._UserDomain = value;
this.SendPropertyChanged("UserDomain");
this.OnUserDomainChanged();
}
}
}
[Column(Storage="_RequestTime", DbType="DateTime")]
[DataMember(Order=11)]
public System.Nullable<System.DateTime> RequestTime
{
get
{
return this._RequestTime;
}
set
{
if ((this._RequestTime != value))
{
this.OnRequestTimeChanging(value);
this.SendPropertyChanging();
this._RequestTime = value;
this.SendPropertyChanged("RequestTime");
this.OnRequestTimeChanged();
}
}
}
[Column(Storage="_UserIP", DbType="NVarChar(50)")]
[DataMember(Order=12)]
public string UserIP
{
get
{
return this._UserIP;
}
set
{
if ((this._UserIP != value))
{
this.OnUserIPChanging(value);
this.SendPropertyChanging();
this._UserIP = value;
this.SendPropertyChanged("UserIP");
this.OnUserIPChanged();
}
}
}
[Column(Storage="_TrackingType", DbType="NVarChar(20)")]
[DataMember(Order=13)]
public string TrackingType
{
get
{
return this._TrackingType;
}
set
{
if ((this._TrackingType != value))
{
this.OnTrackingTypeChanging(value);
this.SendPropertyChanging();
this._TrackingType = value;
this.SendPropertyChanged("TrackingType");
this.OnTrackingTypeChanged();
}
}
}
[Column(Storage="_Country", DbType="NChar(2)")]
[DataMember(Order=14)]
public string Country
{
get
{
return this._Country;
}
set
{
if ((this._Country != value))
{
this.OnCountryChanging(value);
this.SendPropertyChanging();
this._Country = value;
this.SendPropertyChanged("Country");
this.OnCountryChanged();
}
}
}
[Column(Storage="_Location", DbType="NVarChar(50)")]
[DataMember(Order=15)]
public string Location
{
get
{
return this._Location;
}
set
{
if ((this._Location != value))
{
this.OnLocationChanging(value);
this.SendPropertyChanging();
this._Location = value;
this.SendPropertyChanged("Location");
this.OnLocationChanged();
}
}
}
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 Initialize()
{
OnCreated();
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.TaggedEntry")]
[DataContract()]
public partial class TaggedEntry : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ContextKey;
private string _Tag;
private string _Id;
private EntityRef<TextEntry> _TextEntry;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnContextKeyChanging(string value);
partial void OnContextKeyChanged();
partial void OnTagChanging(string value);
partial void OnTagChanged();
partial void OnIdChanging(string value);
partial void OnIdChanged();
#endregion
public TaggedEntry()
{
this.Initialize();
}
[Column(Storage="_ContextKey", DbType="NVarChar(300) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string ContextKey
{
get
{
return this._ContextKey;
}
set
{
if ((this._ContextKey != value))
{
if (this._TextEntry.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnContextKeyChanging(value);
this.SendPropertyChanging();
this._ContextKey = value;
this.SendPropertyChanged("ContextKey");
this.OnContextKeyChanged();
}
}
}
[Column(Storage="_Tag", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=2)]
public string Tag
{
get
{
return this._Tag;
}
set
{
if ((this._Tag != value))
{
this.OnTagChanging(value);
this.SendPropertyChanging();
this._Tag = value;
this.SendPropertyChanged("Tag");
this.OnTagChanged();
}
}
}
[Column(Storage="_Id", DbType="NVarChar(40) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=3)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
if (this._TextEntry.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[Association(Name="FK_TaggedEntry_TextEntry", Storage="_TextEntry", ThisKey="ContextKey,Id", IsForeignKey=true, DeleteOnNull=true)]
public TextEntry TextEntry
{
get
{
return this._TextEntry.Entity;
}
set
{
TextEntry previousValue = this._TextEntry.Entity;
if (((previousValue != value)
|| (this._TextEntry.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._TextEntry.Entity = null;
previousValue.TaggedEntries.Remove(this);
}
this._TextEntry.Entity = value;
if ((value != null))
{
value.TaggedEntries.Add(this);
this._ContextKey = value.ContextKey;
this._Id = value.Id;
}
else
{
this._ContextKey = default(string);
this._Id = default(string);
}
this.SendPropertyChanged("TextEntry");
}
}
}
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 Initialize()
{
OnCreated();
this._TextEntry = default(EntityRef<TextEntry>);
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
[Table(Name="dbo.TextEntry")]
[DataContract()]
public partial class TextEntry : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ContextKey;
private string _Id;
private System.DateTime _Created;
private string _Title;
private string _Summary;
private string _Content;
private string _ContentType;
private string _Languages;
private System.Nullable<System.DateTime> _LastUpdate;
private System.Nullable<bool> _Published;
private string _AuthorName;
private string _AuthorEmail;
private string _AuthorUrl;
private string _Tags;
private string _Parent;
private string _Reference;
private System.Nullable<bool> _Syndicated;
private System.Nullable<bool> _Featured;
private System.Nullable<bool> _AllowComments;
private EntitySet<TaggedEntry> _TaggedEntries;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate();
partial void OnCreated();
partial void OnContextKeyChanging(string value);
partial void OnContextKeyChanged();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnCreatedChanging(System.DateTime value);
partial void OnCreatedChanged();
partial void OnTitleChanging(string value);
partial void OnTitleChanged();
partial void OnSummaryChanging(string value);
partial void OnSummaryChanged();
partial void OnContentChanging(string value);
partial void OnContentChanged();
partial void OnContentTypeChanging(string value);
partial void OnContentTypeChanged();
partial void OnLanguagesChanging(string value);
partial void OnLanguagesChanged();
partial void OnLastUpdateChanging(System.Nullable<System.DateTime> value);
partial void OnLastUpdateChanged();
partial void OnPublishedChanging(System.Nullable<bool> value);
partial void OnPublishedChanged();
partial void OnAuthorNameChanging(string value);
partial void OnAuthorNameChanged();
partial void OnAuthorEmailChanging(string value);
partial void OnAuthorEmailChanged();
partial void OnAuthorUrlChanging(string value);
partial void OnAuthorUrlChanged();
partial void OnTagsChanging(string value);
partial void OnTagsChanged();
partial void OnParentChanging(string value);
partial void OnParentChanged();
partial void OnReferenceChanging(string value);
partial void OnReferenceChanged();
partial void OnSyndicatedChanging(System.Nullable<bool> value);
partial void OnSyndicatedChanged();
partial void OnFeaturedChanging(System.Nullable<bool> value);
partial void OnFeaturedChanged();
partial void OnAllowCommentsChanging(System.Nullable<bool> value);
partial void OnAllowCommentsChanged();
#endregion
public TextEntry()
{
this.Initialize();
}
[Column(Storage="_ContextKey", DbType="NVarChar(300) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string ContextKey
{
get
{
return this._ContextKey;
}
set
{
if ((this._ContextKey != value))
{
this.OnContextKeyChanging(value);
this.SendPropertyChanging();
this._ContextKey = value;
this.SendPropertyChanged("ContextKey");
this.OnContextKeyChanged();
}
}
}
[Column(Storage="_Id", DbType="NVarChar(40) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=2)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[Column(Storage="_Created", DbType="DateTime NOT NULL")]
[DataMember(Order=3)]
public System.DateTime Created
{
get
{
return this._Created;
}
set
{
if ((this._Created != value))
{
this.OnCreatedChanging(value);
this.SendPropertyChanging();
this._Created = value;
this.SendPropertyChanged("Created");
this.OnCreatedChanged();
}
}
}
[Column(Storage="_Title", DbType="NVarChar(150)")]
[DataMember(Order=4)]
public string Title
{
get
{
return this._Title;
}
set
{
if ((this._Title != value))
{
this.OnTitleChanging(value);
this.SendPropertyChanging();
this._Title = value;
this.SendPropertyChanged("Title");
this.OnTitleChanged();
}
}
}
[Column(Storage="_Summary", DbType="NVarChar(300)")]
[DataMember(Order=5)]
public string Summary
{
get
{
return this._Summary;
}
set
{
if ((this._Summary != value))
{
this.OnSummaryChanging(value);
this.SendPropertyChanging();
this._Summary = value;
this.SendPropertyChanged("Summary");
this.OnSummaryChanged();
}
}
}
[Column(Storage="_Content", DbType="NText", UpdateCheck=UpdateCheck.Never)]
[DataMember(Order=6)]
public string Content
{
get
{
return this._Content;
}
set
{
if ((this._Content != value))
{
this.OnContentChanging(value);
this.SendPropertyChanging();
this._Content = value;
this.SendPropertyChanged("Content");
this.OnContentChanged();
}
}
}
[Column(Storage="_ContentType", DbType="NVarChar(20)")]
[DataMember(Order=7)]
public string ContentType
{
get
{
return this._ContentType;
}
set
{
if ((this._ContentType != value))
{
this.OnContentTypeChanging(value);
this.SendPropertyChanging();
this._ContentType = value;
this.SendPropertyChanged("ContentType");
this.OnContentTypeChanged();
}
}
}
[Column(Storage="_Languages", DbType="NVarChar(50)")]
[DataMember(Order=8)]
public string Languages
{
get
{
return this._Languages;
}
set
{
if ((this._Languages != value))
{
this.OnLanguagesChanging(value);
this.SendPropertyChanging();
this._Languages = value;
this.SendPropertyChanged("Languages");
this.OnLanguagesChanged();
}
}
}
[Column(Storage="_LastUpdate", DbType="DateTime")]
[DataMember(Order=9)]
public System.Nullable<System.DateTime> LastUpdate
{
get
{
return this._LastUpdate;
}
set
{
if ((this._LastUpdate != value))
{
this.OnLastUpdateChanging(value);
this.SendPropertyChanging();
this._LastUpdate = value;
this.SendPropertyChanged("LastUpdate");
this.OnLastUpdateChanged();
}
}
}
[Column(Storage="_Published", DbType="Bit")]
[DataMember(Order=10)]
public System.Nullable<bool> Published
{
get
{
return this._Published;
}
set
{
if ((this._Published != value))
{
this.OnPublishedChanging(value);
this.SendPropertyChanging();
this._Published = value;
this.SendPropertyChanged("Published");
this.OnPublishedChanged();
}
}
}
[Column(Storage="_AuthorName", DbType="NVarChar(150)")]
[DataMember(Order=11)]
public string AuthorName
{
get
{
return this._AuthorName;
}
set
{
if ((this._AuthorName != value))
{
this.OnAuthorNameChanging(value);
this.SendPropertyChanging();
this._AuthorName = value;
this.SendPropertyChanged("AuthorName");
this.OnAuthorNameChanged();
}
}
}
[Column(Storage="_AuthorEmail", DbType="NVarChar(150)")]
[DataMember(Order=12)]
public string AuthorEmail
{
get
{
return this._AuthorEmail;
}
set
{
if ((this._AuthorEmail != value))
{
this.OnAuthorEmailChanging(value);
this.SendPropertyChanging();
this._AuthorEmail = value;
this.SendPropertyChanged("AuthorEmail");
this.OnAuthorEmailChanged();
}
}
}
[Column(Storage="_AuthorUrl", DbType="NVarChar(300)")]
[DataMember(Order=13)]
public string AuthorUrl
{
get
{
return this._AuthorUrl;
}
set
{
if ((this._AuthorUrl != value))
{
this.OnAuthorUrlChanging(value);
this.SendPropertyChanging();
this._AuthorUrl = value;
this.SendPropertyChanged("AuthorUrl");
this.OnAuthorUrlChanged();
}
}
}
[Column(Storage="_Tags", DbType="NVarChar(300)")]
[DataMember(Order=14)]
public string Tags
{
get
{
return this._Tags;
}
set
{
if ((this._Tags != value))
{
this.OnTagsChanging(value);
this.SendPropertyChanging();
this._Tags = value;
this.SendPropertyChanged("Tags");
this.OnTagsChanged();
}
}
}
[Column(Storage="_Parent", DbType="NVarChar(300)")]
[DataMember(Order=15)]
public string Parent
{
get
{
return this._Parent;
}
set
{
if ((this._Parent != value))
{
this.OnParentChanging(value);
this.SendPropertyChanging();
this._Parent = value;
this.SendPropertyChanged("Parent");
this.OnParentChanged();
}
}
}
[Column(Storage="_Reference", DbType="NVarChar(300)")]
[DataMember(Order=16)]
public string Reference
{
get
{
return this._Reference;
}
set
{
if ((this._Reference != value))
{
this.OnReferenceChanging(value);
this.SendPropertyChanging();
this._Reference = value;
this.SendPropertyChanged("Reference");
this.OnReferenceChanged();
}
}
}
[Column(Storage="_Syndicated", DbType="Bit")]
[DataMember(Order=17)]
public System.Nullable<bool> Syndicated
{
get
{
return this._Syndicated;
}
set
{
if ((this._Syndicated != value))
{
this.OnSyndicatedChanging(value);
this.SendPropertyChanging();
this._Syndicated = value;
this.SendPropertyChanged("Syndicated");
this.OnSyndicatedChanged();
}
}
}
[Column(Storage="_Featured", DbType="Bit")]
[DataMember(Order=18)]
public System.Nullable<bool> Featured
{
get
{
return this._Featured;
}
set
{
if ((this._Featured != value))
{
this.OnFeaturedChanging(value);
this.SendPropertyChanging();
this._Featured = value;
this.SendPropertyChanged("Featured");
this.OnFeaturedChanged();
}
}
}
[Column(Storage="_AllowComments", DbType="Bit")]
[DataMember(Order=19)]
public System.Nullable<bool> AllowComments
{
get
{
return this._AllowComments;
}
set
{
if ((this._AllowComments != value))
{
this.OnAllowCommentsChanging(value);
this.SendPropertyChanging();
this._AllowComments = value;
this.SendPropertyChanged("AllowComments");
this.OnAllowCommentsChanged();
}
}
}
[Association(Name="FK_TaggedEntry_TextEntry", Storage="_TaggedEntries", OtherKey="ContextKey,Id", DeleteRule="CASCADE")]
[DataMember(Order=20)]
public EntitySet<TaggedEntry> TaggedEntries
{
get
{
return this._TaggedEntries;
}
set
{
this._TaggedEntries.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_TaggedEntries(TaggedEntry entity)
{
this.SendPropertyChanging();
entity.TextEntry = this;
this.SendPropertyChanged("TaggedEntries");
}
private void detach_TaggedEntries(TaggedEntry entity)
{
this.SendPropertyChanging();
entity.TextEntry = null;
this.SendPropertyChanged("TaggedEntries");
}
private void Initialize()
{
OnCreated();
this._TaggedEntries = new EntitySet<TaggedEntry>(new Action<TaggedEntry>(this.attach_TaggedEntries), new Action<TaggedEntry>(this.detach_TaggedEntries));
}
[OnDeserializing()]
private void OnDeserializing(StreamingContext context)
{
this.Initialize();
}
}
}
|