Free cookie consent management tool by TermsFeed Policy Generator

source: branches/ClientUserManagement/HeuristicLab.Services.UserManagement.DataAccess/3.3/UserManagement.designer.cs @ 6810

Last change on this file since 6810 was 6810, checked in by ascheibe, 13 years ago

#1648

  • added a db layer for user management
  • added a user management clients project
  • worked on user management service
File size: 46.1 KB
Line 
1#pragma warning disable 1591
2//------------------------------------------------------------------------------
3// <auto-generated>
4//     This code was generated by a tool.
5//     Runtime Version:4.0.30319.237
6//
7//     Changes to this file may cause incorrect behavior and will be lost if
8//     the code is regenerated.
9// </auto-generated>
10//------------------------------------------------------------------------------
11
12namespace HeuristicLab.Services.UserManagement.DataAccess
13{
14  using System.Data.Linq;
15  using System.Data.Linq.Mapping;
16  using System.Data;
17  using System.Collections.Generic;
18  using System.Reflection;
19  using System.Linq;
20  using System.Linq.Expressions;
21  using System.ComponentModel;
22  using System;
23 
24 
25  [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="HeuristicLab.Authentication")]
26  public partial class UserManagementDataContext : System.Data.Linq.DataContext
27  {
28   
29    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
30   
31    #region Extensibility Method Definitions
32    partial void OnCreated();
33    partial void Insertaspnet_Application(aspnet_Application instance);
34    partial void Updateaspnet_Application(aspnet_Application instance);
35    partial void Deleteaspnet_Application(aspnet_Application instance);
36    partial void Insertaspnet_Membership(aspnet_Membership instance);
37    partial void Updateaspnet_Membership(aspnet_Membership instance);
38    partial void Deleteaspnet_Membership(aspnet_Membership instance);
39    partial void Insertaspnet_Role(aspnet_Role instance);
40    partial void Updateaspnet_Role(aspnet_Role instance);
41    partial void Deleteaspnet_Role(aspnet_Role instance);
42    partial void Insertaspnet_UsersInRole(aspnet_UsersInRole instance);
43    partial void Updateaspnet_UsersInRole(aspnet_UsersInRole instance);
44    partial void Deleteaspnet_UsersInRole(aspnet_UsersInRole instance);
45    partial void Insertaspnet_User(aspnet_User instance);
46    partial void Updateaspnet_User(aspnet_User instance);
47    partial void Deleteaspnet_User(aspnet_User instance);
48    #endregion
49   
50    public UserManagementDataContext() :
51        base(global::HeuristicLab.Services.UserManagement.DataAccess.Properties.Settings.Default.HeuristicLab_AuthenticationConnectionString, mappingSource)
52    {
53      OnCreated();
54    }
55   
56    public UserManagementDataContext(string connection) :
57        base(connection, mappingSource)
58    {
59      OnCreated();
60    }
61   
62    public UserManagementDataContext(System.Data.IDbConnection connection) :
63        base(connection, mappingSource)
64    {
65      OnCreated();
66    }
67   
68    public UserManagementDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
69        base(connection, mappingSource)
70    {
71      OnCreated();
72    }
73   
74    public UserManagementDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
75        base(connection, mappingSource)
76    {
77      OnCreated();
78    }
79   
80    public System.Data.Linq.Table<aspnet_Application> aspnet_Applications
81    {
82      get
83      {
84        return this.GetTable<aspnet_Application>();
85      }
86    }
87   
88    public System.Data.Linq.Table<aspnet_Membership> aspnet_Memberships
89    {
90      get
91      {
92        return this.GetTable<aspnet_Membership>();
93      }
94    }
95   
96    public System.Data.Linq.Table<aspnet_Role> aspnet_Roles
97    {
98      get
99      {
100        return this.GetTable<aspnet_Role>();
101      }
102    }
103   
104    public System.Data.Linq.Table<aspnet_UsersInRole> aspnet_UsersInRoles
105    {
106      get
107      {
108        return this.GetTable<aspnet_UsersInRole>();
109      }
110    }
111   
112    public System.Data.Linq.Table<aspnet_User> aspnet_Users
113    {
114      get
115      {
116        return this.GetTable<aspnet_User>();
117      }
118    }
119  }
120 
121  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Applications")]
122  public partial class aspnet_Application : INotifyPropertyChanging, INotifyPropertyChanged
123  {
124   
125    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
126   
127    private string _ApplicationName;
128   
129    private string _LoweredApplicationName;
130   
131    private System.Guid _ApplicationId;
132   
133    private string _Description;
134   
135    private EntitySet<aspnet_Membership> _aspnet_Memberships;
136   
137    private EntitySet<aspnet_Role> _aspnet_Roles;
138   
139    private EntitySet<aspnet_User> _aspnet_Users;
140   
141    #region Extensibility Method Definitions
142    partial void OnLoaded();
143    partial void OnValidate(System.Data.Linq.ChangeAction action);
144    partial void OnCreated();
145    partial void OnApplicationNameChanging(string value);
146    partial void OnApplicationNameChanged();
147    partial void OnLoweredApplicationNameChanging(string value);
148    partial void OnLoweredApplicationNameChanged();
149    partial void OnApplicationIdChanging(System.Guid value);
150    partial void OnApplicationIdChanged();
151    partial void OnDescriptionChanging(string value);
152    partial void OnDescriptionChanged();
153    #endregion
154   
155    public aspnet_Application()
156    {
157      this._aspnet_Memberships = new EntitySet<aspnet_Membership>(new Action<aspnet_Membership>(this.attach_aspnet_Memberships), new Action<aspnet_Membership>(this.detach_aspnet_Memberships));
158      this._aspnet_Roles = new EntitySet<aspnet_Role>(new Action<aspnet_Role>(this.attach_aspnet_Roles), new Action<aspnet_Role>(this.detach_aspnet_Roles));
159      this._aspnet_Users = new EntitySet<aspnet_User>(new Action<aspnet_User>(this.attach_aspnet_Users), new Action<aspnet_User>(this.detach_aspnet_Users));
160      OnCreated();
161    }
162   
163    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
164    public string ApplicationName
165    {
166      get
167      {
168        return this._ApplicationName;
169      }
170      set
171      {
172        if ((this._ApplicationName != value))
173        {
174          this.OnApplicationNameChanging(value);
175          this.SendPropertyChanging();
176          this._ApplicationName = value;
177          this.SendPropertyChanged("ApplicationName");
178          this.OnApplicationNameChanged();
179        }
180      }
181    }
182   
183    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredApplicationName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
184    public string LoweredApplicationName
185    {
186      get
187      {
188        return this._LoweredApplicationName;
189      }
190      set
191      {
192        if ((this._LoweredApplicationName != value))
193        {
194          this.OnLoweredApplicationNameChanging(value);
195          this.SendPropertyChanging();
196          this._LoweredApplicationName = value;
197          this.SendPropertyChanged("LoweredApplicationName");
198          this.OnLoweredApplicationNameChanged();
199        }
200      }
201    }
202   
203    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
204    public System.Guid ApplicationId
205    {
206      get
207      {
208        return this._ApplicationId;
209      }
210      set
211      {
212        if ((this._ApplicationId != value))
213        {
214          this.OnApplicationIdChanging(value);
215          this.SendPropertyChanging();
216          this._ApplicationId = value;
217          this.SendPropertyChanged("ApplicationId");
218          this.OnApplicationIdChanged();
219        }
220      }
221    }
222   
223    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(256)")]
224    public string Description
225    {
226      get
227      {
228        return this._Description;
229      }
230      set
231      {
232        if ((this._Description != value))
233        {
234          this.OnDescriptionChanging(value);
235          this.SendPropertyChanging();
236          this._Description = value;
237          this.SendPropertyChanged("Description");
238          this.OnDescriptionChanged();
239        }
240      }
241    }
242   
243    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Membership", Storage="_aspnet_Memberships", ThisKey="ApplicationId", OtherKey="ApplicationId")]
244    public EntitySet<aspnet_Membership> aspnet_Memberships
245    {
246      get
247      {
248        return this._aspnet_Memberships;
249      }
250      set
251      {
252        this._aspnet_Memberships.Assign(value);
253      }
254    }
255   
256    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Role", Storage="_aspnet_Roles", ThisKey="ApplicationId", OtherKey="ApplicationId")]
257    public EntitySet<aspnet_Role> aspnet_Roles
258    {
259      get
260      {
261        return this._aspnet_Roles;
262      }
263      set
264      {
265        this._aspnet_Roles.Assign(value);
266      }
267    }
268   
269    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_User", Storage="_aspnet_Users", ThisKey="ApplicationId", OtherKey="ApplicationId")]
270    public EntitySet<aspnet_User> aspnet_Users
271    {
272      get
273      {
274        return this._aspnet_Users;
275      }
276      set
277      {
278        this._aspnet_Users.Assign(value);
279      }
280    }
281   
282    public event PropertyChangingEventHandler PropertyChanging;
283   
284    public event PropertyChangedEventHandler PropertyChanged;
285   
286    protected virtual void SendPropertyChanging()
287    {
288      if ((this.PropertyChanging != null))
289      {
290        this.PropertyChanging(this, emptyChangingEventArgs);
291      }
292    }
293   
294    protected virtual void SendPropertyChanged(String propertyName)
295    {
296      if ((this.PropertyChanged != null))
297      {
298        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
299      }
300    }
301   
302    private void attach_aspnet_Memberships(aspnet_Membership entity)
303    {
304      this.SendPropertyChanging();
305      entity.aspnet_Application = this;
306    }
307   
308    private void detach_aspnet_Memberships(aspnet_Membership entity)
309    {
310      this.SendPropertyChanging();
311      entity.aspnet_Application = null;
312    }
313   
314    private void attach_aspnet_Roles(aspnet_Role entity)
315    {
316      this.SendPropertyChanging();
317      entity.aspnet_Application = this;
318    }
319   
320    private void detach_aspnet_Roles(aspnet_Role entity)
321    {
322      this.SendPropertyChanging();
323      entity.aspnet_Application = null;
324    }
325   
326    private void attach_aspnet_Users(aspnet_User entity)
327    {
328      this.SendPropertyChanging();
329      entity.aspnet_Application = this;
330    }
331   
332    private void detach_aspnet_Users(aspnet_User entity)
333    {
334      this.SendPropertyChanging();
335      entity.aspnet_Application = null;
336    }
337  }
338 
339  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Membership")]
340  public partial class aspnet_Membership : INotifyPropertyChanging, INotifyPropertyChanged
341  {
342   
343    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
344   
345    private System.Guid _ApplicationId;
346   
347    private System.Guid _UserId;
348   
349    private string _Password;
350   
351    private int _PasswordFormat;
352   
353    private string _PasswordSalt;
354   
355    private string _MobilePIN;
356   
357    private string _Email;
358   
359    private string _LoweredEmail;
360   
361    private string _PasswordQuestion;
362   
363    private string _PasswordAnswer;
364   
365    private bool _IsApproved;
366   
367    private bool _IsLockedOut;
368   
369    private System.DateTime _CreateDate;
370   
371    private System.DateTime _LastLoginDate;
372   
373    private System.DateTime _LastPasswordChangedDate;
374   
375    private System.DateTime _LastLockoutDate;
376   
377    private int _FailedPasswordAttemptCount;
378   
379    private System.DateTime _FailedPasswordAttemptWindowStart;
380   
381    private int _FailedPasswordAnswerAttemptCount;
382   
383    private System.DateTime _FailedPasswordAnswerAttemptWindowStart;
384   
385    private string _Comment;
386   
387    private EntityRef<aspnet_Application> _aspnet_Application;
388   
389    private EntityRef<aspnet_User> _aspnet_User;
390   
391    #region Extensibility Method Definitions
392    partial void OnLoaded();
393    partial void OnValidate(System.Data.Linq.ChangeAction action);
394    partial void OnCreated();
395    partial void OnApplicationIdChanging(System.Guid value);
396    partial void OnApplicationIdChanged();
397    partial void OnUserIdChanging(System.Guid value);
398    partial void OnUserIdChanged();
399    partial void OnPasswordChanging(string value);
400    partial void OnPasswordChanged();
401    partial void OnPasswordFormatChanging(int value);
402    partial void OnPasswordFormatChanged();
403    partial void OnPasswordSaltChanging(string value);
404    partial void OnPasswordSaltChanged();
405    partial void OnMobilePINChanging(string value);
406    partial void OnMobilePINChanged();
407    partial void OnEmailChanging(string value);
408    partial void OnEmailChanged();
409    partial void OnLoweredEmailChanging(string value);
410    partial void OnLoweredEmailChanged();
411    partial void OnPasswordQuestionChanging(string value);
412    partial void OnPasswordQuestionChanged();
413    partial void OnPasswordAnswerChanging(string value);
414    partial void OnPasswordAnswerChanged();
415    partial void OnIsApprovedChanging(bool value);
416    partial void OnIsApprovedChanged();
417    partial void OnIsLockedOutChanging(bool value);
418    partial void OnIsLockedOutChanged();
419    partial void OnCreateDateChanging(System.DateTime value);
420    partial void OnCreateDateChanged();
421    partial void OnLastLoginDateChanging(System.DateTime value);
422    partial void OnLastLoginDateChanged();
423    partial void OnLastPasswordChangedDateChanging(System.DateTime value);
424    partial void OnLastPasswordChangedDateChanged();
425    partial void OnLastLockoutDateChanging(System.DateTime value);
426    partial void OnLastLockoutDateChanged();
427    partial void OnFailedPasswordAttemptCountChanging(int value);
428    partial void OnFailedPasswordAttemptCountChanged();
429    partial void OnFailedPasswordAttemptWindowStartChanging(System.DateTime value);
430    partial void OnFailedPasswordAttemptWindowStartChanged();
431    partial void OnFailedPasswordAnswerAttemptCountChanging(int value);
432    partial void OnFailedPasswordAnswerAttemptCountChanged();
433    partial void OnFailedPasswordAnswerAttemptWindowStartChanging(System.DateTime value);
434    partial void OnFailedPasswordAnswerAttemptWindowStartChanged();
435    partial void OnCommentChanging(string value);
436    partial void OnCommentChanged();
437    #endregion
438   
439    public aspnet_Membership()
440    {
441      this._aspnet_Application = default(EntityRef<aspnet_Application>);
442      this._aspnet_User = default(EntityRef<aspnet_User>);
443      OnCreated();
444    }
445   
446    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
447    public System.Guid ApplicationId
448    {
449      get
450      {
451        return this._ApplicationId;
452      }
453      set
454      {
455        if ((this._ApplicationId != value))
456        {
457          if (this._aspnet_Application.HasLoadedOrAssignedValue)
458          {
459            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
460          }
461          this.OnApplicationIdChanging(value);
462          this.SendPropertyChanging();
463          this._ApplicationId = value;
464          this.SendPropertyChanged("ApplicationId");
465          this.OnApplicationIdChanged();
466        }
467      }
468    }
469   
470    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
471    public System.Guid UserId
472    {
473      get
474      {
475        return this._UserId;
476      }
477      set
478      {
479        if ((this._UserId != value))
480        {
481          if (this._aspnet_User.HasLoadedOrAssignedValue)
482          {
483            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
484          }
485          this.OnUserIdChanging(value);
486          this.SendPropertyChanging();
487          this._UserId = value;
488          this.SendPropertyChanged("UserId");
489          this.OnUserIdChanged();
490        }
491      }
492    }
493   
494    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
495    public string Password
496    {
497      get
498      {
499        return this._Password;
500      }
501      set
502      {
503        if ((this._Password != value))
504        {
505          this.OnPasswordChanging(value);
506          this.SendPropertyChanging();
507          this._Password = value;
508          this.SendPropertyChanged("Password");
509          this.OnPasswordChanged();
510        }
511      }
512    }
513   
514    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordFormat", DbType="Int NOT NULL")]
515    public int PasswordFormat
516    {
517      get
518      {
519        return this._PasswordFormat;
520      }
521      set
522      {
523        if ((this._PasswordFormat != value))
524        {
525          this.OnPasswordFormatChanging(value);
526          this.SendPropertyChanging();
527          this._PasswordFormat = value;
528          this.SendPropertyChanged("PasswordFormat");
529          this.OnPasswordFormatChanged();
530        }
531      }
532    }
533   
534    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordSalt", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
535    public string PasswordSalt
536    {
537      get
538      {
539        return this._PasswordSalt;
540      }
541      set
542      {
543        if ((this._PasswordSalt != value))
544        {
545          this.OnPasswordSaltChanging(value);
546          this.SendPropertyChanging();
547          this._PasswordSalt = value;
548          this.SendPropertyChanged("PasswordSalt");
549          this.OnPasswordSaltChanged();
550        }
551      }
552    }
553   
554    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MobilePIN", DbType="NVarChar(16)")]
555    public string MobilePIN
556    {
557      get
558      {
559        return this._MobilePIN;
560      }
561      set
562      {
563        if ((this._MobilePIN != value))
564        {
565          this.OnMobilePINChanging(value);
566          this.SendPropertyChanging();
567          this._MobilePIN = value;
568          this.SendPropertyChanged("MobilePIN");
569          this.OnMobilePINChanged();
570        }
571      }
572    }
573   
574    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Email", DbType="NVarChar(256)")]
575    public string Email
576    {
577      get
578      {
579        return this._Email;
580      }
581      set
582      {
583        if ((this._Email != value))
584        {
585          this.OnEmailChanging(value);
586          this.SendPropertyChanging();
587          this._Email = value;
588          this.SendPropertyChanged("Email");
589          this.OnEmailChanged();
590        }
591      }
592    }
593   
594    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredEmail", DbType="NVarChar(256)")]
595    public string LoweredEmail
596    {
597      get
598      {
599        return this._LoweredEmail;
600      }
601      set
602      {
603        if ((this._LoweredEmail != value))
604        {
605          this.OnLoweredEmailChanging(value);
606          this.SendPropertyChanging();
607          this._LoweredEmail = value;
608          this.SendPropertyChanged("LoweredEmail");
609          this.OnLoweredEmailChanged();
610        }
611      }
612    }
613   
614    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordQuestion", DbType="NVarChar(256)")]
615    public string PasswordQuestion
616    {
617      get
618      {
619        return this._PasswordQuestion;
620      }
621      set
622      {
623        if ((this._PasswordQuestion != value))
624        {
625          this.OnPasswordQuestionChanging(value);
626          this.SendPropertyChanging();
627          this._PasswordQuestion = value;
628          this.SendPropertyChanged("PasswordQuestion");
629          this.OnPasswordQuestionChanged();
630        }
631      }
632    }
633   
634    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PasswordAnswer", DbType="NVarChar(128)")]
635    public string PasswordAnswer
636    {
637      get
638      {
639        return this._PasswordAnswer;
640      }
641      set
642      {
643        if ((this._PasswordAnswer != value))
644        {
645          this.OnPasswordAnswerChanging(value);
646          this.SendPropertyChanging();
647          this._PasswordAnswer = value;
648          this.SendPropertyChanged("PasswordAnswer");
649          this.OnPasswordAnswerChanged();
650        }
651      }
652    }
653   
654    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsApproved", DbType="Bit NOT NULL")]
655    public bool IsApproved
656    {
657      get
658      {
659        return this._IsApproved;
660      }
661      set
662      {
663        if ((this._IsApproved != value))
664        {
665          this.OnIsApprovedChanging(value);
666          this.SendPropertyChanging();
667          this._IsApproved = value;
668          this.SendPropertyChanged("IsApproved");
669          this.OnIsApprovedChanged();
670        }
671      }
672    }
673   
674    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsLockedOut", DbType="Bit NOT NULL")]
675    public bool IsLockedOut
676    {
677      get
678      {
679        return this._IsLockedOut;
680      }
681      set
682      {
683        if ((this._IsLockedOut != value))
684        {
685          this.OnIsLockedOutChanging(value);
686          this.SendPropertyChanging();
687          this._IsLockedOut = value;
688          this.SendPropertyChanged("IsLockedOut");
689          this.OnIsLockedOutChanged();
690        }
691      }
692    }
693   
694    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime NOT NULL")]
695    public System.DateTime CreateDate
696    {
697      get
698      {
699        return this._CreateDate;
700      }
701      set
702      {
703        if ((this._CreateDate != value))
704        {
705          this.OnCreateDateChanging(value);
706          this.SendPropertyChanging();
707          this._CreateDate = value;
708          this.SendPropertyChanged("CreateDate");
709          this.OnCreateDateChanged();
710        }
711      }
712    }
713   
714    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastLoginDate", DbType="DateTime NOT NULL")]
715    public System.DateTime LastLoginDate
716    {
717      get
718      {
719        return this._LastLoginDate;
720      }
721      set
722      {
723        if ((this._LastLoginDate != value))
724        {
725          this.OnLastLoginDateChanging(value);
726          this.SendPropertyChanging();
727          this._LastLoginDate = value;
728          this.SendPropertyChanged("LastLoginDate");
729          this.OnLastLoginDateChanged();
730        }
731      }
732    }
733   
734    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastPasswordChangedDate", DbType="DateTime NOT NULL")]
735    public System.DateTime LastPasswordChangedDate
736    {
737      get
738      {
739        return this._LastPasswordChangedDate;
740      }
741      set
742      {
743        if ((this._LastPasswordChangedDate != value))
744        {
745          this.OnLastPasswordChangedDateChanging(value);
746          this.SendPropertyChanging();
747          this._LastPasswordChangedDate = value;
748          this.SendPropertyChanged("LastPasswordChangedDate");
749          this.OnLastPasswordChangedDateChanged();
750        }
751      }
752    }
753   
754    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastLockoutDate", DbType="DateTime NOT NULL")]
755    public System.DateTime LastLockoutDate
756    {
757      get
758      {
759        return this._LastLockoutDate;
760      }
761      set
762      {
763        if ((this._LastLockoutDate != value))
764        {
765          this.OnLastLockoutDateChanging(value);
766          this.SendPropertyChanging();
767          this._LastLockoutDate = value;
768          this.SendPropertyChanged("LastLockoutDate");
769          this.OnLastLockoutDateChanged();
770        }
771      }
772    }
773   
774    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAttemptCount", DbType="Int NOT NULL")]
775    public int FailedPasswordAttemptCount
776    {
777      get
778      {
779        return this._FailedPasswordAttemptCount;
780      }
781      set
782      {
783        if ((this._FailedPasswordAttemptCount != value))
784        {
785          this.OnFailedPasswordAttemptCountChanging(value);
786          this.SendPropertyChanging();
787          this._FailedPasswordAttemptCount = value;
788          this.SendPropertyChanged("FailedPasswordAttemptCount");
789          this.OnFailedPasswordAttemptCountChanged();
790        }
791      }
792    }
793   
794    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAttemptWindowStart", DbType="DateTime NOT NULL")]
795    public System.DateTime FailedPasswordAttemptWindowStart
796    {
797      get
798      {
799        return this._FailedPasswordAttemptWindowStart;
800      }
801      set
802      {
803        if ((this._FailedPasswordAttemptWindowStart != value))
804        {
805          this.OnFailedPasswordAttemptWindowStartChanging(value);
806          this.SendPropertyChanging();
807          this._FailedPasswordAttemptWindowStart = value;
808          this.SendPropertyChanged("FailedPasswordAttemptWindowStart");
809          this.OnFailedPasswordAttemptWindowStartChanged();
810        }
811      }
812    }
813   
814    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAnswerAttemptCount", DbType="Int NOT NULL")]
815    public int FailedPasswordAnswerAttemptCount
816    {
817      get
818      {
819        return this._FailedPasswordAnswerAttemptCount;
820      }
821      set
822      {
823        if ((this._FailedPasswordAnswerAttemptCount != value))
824        {
825          this.OnFailedPasswordAnswerAttemptCountChanging(value);
826          this.SendPropertyChanging();
827          this._FailedPasswordAnswerAttemptCount = value;
828          this.SendPropertyChanged("FailedPasswordAnswerAttemptCount");
829          this.OnFailedPasswordAnswerAttemptCountChanged();
830        }
831      }
832    }
833   
834    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FailedPasswordAnswerAttemptWindowStart", DbType="DateTime NOT NULL")]
835    public System.DateTime FailedPasswordAnswerAttemptWindowStart
836    {
837      get
838      {
839        return this._FailedPasswordAnswerAttemptWindowStart;
840      }
841      set
842      {
843        if ((this._FailedPasswordAnswerAttemptWindowStart != value))
844        {
845          this.OnFailedPasswordAnswerAttemptWindowStartChanging(value);
846          this.SendPropertyChanging();
847          this._FailedPasswordAnswerAttemptWindowStart = value;
848          this.SendPropertyChanged("FailedPasswordAnswerAttemptWindowStart");
849          this.OnFailedPasswordAnswerAttemptWindowStartChanged();
850        }
851      }
852    }
853   
854    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Comment", DbType="NText", UpdateCheck=UpdateCheck.Never)]
855    public string Comment
856    {
857      get
858      {
859        return this._Comment;
860      }
861      set
862      {
863        if ((this._Comment != value))
864        {
865          this.OnCommentChanging(value);
866          this.SendPropertyChanging();
867          this._Comment = value;
868          this.SendPropertyChanged("Comment");
869          this.OnCommentChanged();
870        }
871      }
872    }
873   
874    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Membership", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
875    public aspnet_Application aspnet_Application
876    {
877      get
878      {
879        return this._aspnet_Application.Entity;
880      }
881      set
882      {
883        aspnet_Application previousValue = this._aspnet_Application.Entity;
884        if (((previousValue != value)
885              || (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
886        {
887          this.SendPropertyChanging();
888          if ((previousValue != null))
889          {
890            this._aspnet_Application.Entity = null;
891            previousValue.aspnet_Memberships.Remove(this);
892          }
893          this._aspnet_Application.Entity = value;
894          if ((value != null))
895          {
896            value.aspnet_Memberships.Add(this);
897            this._ApplicationId = value.ApplicationId;
898          }
899          else
900          {
901            this._ApplicationId = default(System.Guid);
902          }
903          this.SendPropertyChanged("aspnet_Application");
904        }
905      }
906    }
907   
908    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
909    public aspnet_User aspnet_User
910    {
911      get
912      {
913        return this._aspnet_User.Entity;
914      }
915      set
916      {
917        aspnet_User previousValue = this._aspnet_User.Entity;
918        if (((previousValue != value)
919              || (this._aspnet_User.HasLoadedOrAssignedValue == false)))
920        {
921          this.SendPropertyChanging();
922          if ((previousValue != null))
923          {
924            this._aspnet_User.Entity = null;
925            previousValue.aspnet_Membership = null;
926          }
927          this._aspnet_User.Entity = value;
928          if ((value != null))
929          {
930            value.aspnet_Membership = this;
931            this._UserId = value.UserId;
932          }
933          else
934          {
935            this._UserId = default(System.Guid);
936          }
937          this.SendPropertyChanged("aspnet_User");
938        }
939      }
940    }
941   
942    public event PropertyChangingEventHandler PropertyChanging;
943   
944    public event PropertyChangedEventHandler PropertyChanged;
945   
946    protected virtual void SendPropertyChanging()
947    {
948      if ((this.PropertyChanging != null))
949      {
950        this.PropertyChanging(this, emptyChangingEventArgs);
951      }
952    }
953   
954    protected virtual void SendPropertyChanged(String propertyName)
955    {
956      if ((this.PropertyChanged != null))
957      {
958        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
959      }
960    }
961  }
962 
963  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Roles")]
964  public partial class aspnet_Role : INotifyPropertyChanging, INotifyPropertyChanged
965  {
966   
967    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
968   
969    private System.Guid _ApplicationId;
970   
971    private System.Guid _RoleId;
972   
973    private string _RoleName;
974   
975    private string _LoweredRoleName;
976   
977    private string _Description;
978   
979    private EntitySet<aspnet_UsersInRole> _aspnet_UsersInRoles;
980   
981    private EntityRef<aspnet_Application> _aspnet_Application;
982   
983    #region Extensibility Method Definitions
984    partial void OnLoaded();
985    partial void OnValidate(System.Data.Linq.ChangeAction action);
986    partial void OnCreated();
987    partial void OnApplicationIdChanging(System.Guid value);
988    partial void OnApplicationIdChanged();
989    partial void OnRoleIdChanging(System.Guid value);
990    partial void OnRoleIdChanged();
991    partial void OnRoleNameChanging(string value);
992    partial void OnRoleNameChanged();
993    partial void OnLoweredRoleNameChanging(string value);
994    partial void OnLoweredRoleNameChanged();
995    partial void OnDescriptionChanging(string value);
996    partial void OnDescriptionChanged();
997    #endregion
998   
999    public aspnet_Role()
1000    {
1001      this._aspnet_UsersInRoles = new EntitySet<aspnet_UsersInRole>(new Action<aspnet_UsersInRole>(this.attach_aspnet_UsersInRoles), new Action<aspnet_UsersInRole>(this.detach_aspnet_UsersInRoles));
1002      this._aspnet_Application = default(EntityRef<aspnet_Application>);
1003      OnCreated();
1004    }
1005   
1006    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
1007    public System.Guid ApplicationId
1008    {
1009      get
1010      {
1011        return this._ApplicationId;
1012      }
1013      set
1014      {
1015        if ((this._ApplicationId != value))
1016        {
1017          if (this._aspnet_Application.HasLoadedOrAssignedValue)
1018          {
1019            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1020          }
1021          this.OnApplicationIdChanging(value);
1022          this.SendPropertyChanging();
1023          this._ApplicationId = value;
1024          this.SendPropertyChanged("ApplicationId");
1025          this.OnApplicationIdChanged();
1026        }
1027      }
1028    }
1029   
1030    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1031    public System.Guid RoleId
1032    {
1033      get
1034      {
1035        return this._RoleId;
1036      }
1037      set
1038      {
1039        if ((this._RoleId != value))
1040        {
1041          this.OnRoleIdChanging(value);
1042          this.SendPropertyChanging();
1043          this._RoleId = value;
1044          this.SendPropertyChanged("RoleId");
1045          this.OnRoleIdChanged();
1046        }
1047      }
1048    }
1049   
1050    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1051    public string RoleName
1052    {
1053      get
1054      {
1055        return this._RoleName;
1056      }
1057      set
1058      {
1059        if ((this._RoleName != value))
1060        {
1061          this.OnRoleNameChanging(value);
1062          this.SendPropertyChanging();
1063          this._RoleName = value;
1064          this.SendPropertyChanged("RoleName");
1065          this.OnRoleNameChanged();
1066        }
1067      }
1068    }
1069   
1070    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredRoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1071    public string LoweredRoleName
1072    {
1073      get
1074      {
1075        return this._LoweredRoleName;
1076      }
1077      set
1078      {
1079        if ((this._LoweredRoleName != value))
1080        {
1081          this.OnLoweredRoleNameChanging(value);
1082          this.SendPropertyChanging();
1083          this._LoweredRoleName = value;
1084          this.SendPropertyChanged("LoweredRoleName");
1085          this.OnLoweredRoleNameChanged();
1086        }
1087      }
1088    }
1089   
1090    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(256)")]
1091    public string Description
1092    {
1093      get
1094      {
1095        return this._Description;
1096      }
1097      set
1098      {
1099        if ((this._Description != value))
1100        {
1101          this.OnDescriptionChanging(value);
1102          this.SendPropertyChanging();
1103          this._Description = value;
1104          this.SendPropertyChanged("Description");
1105          this.OnDescriptionChanged();
1106        }
1107      }
1108    }
1109   
1110    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Role_aspnet_UsersInRole", Storage="_aspnet_UsersInRoles", ThisKey="RoleId", OtherKey="RoleId")]
1111    public EntitySet<aspnet_UsersInRole> aspnet_UsersInRoles
1112    {
1113      get
1114      {
1115        return this._aspnet_UsersInRoles;
1116      }
1117      set
1118      {
1119        this._aspnet_UsersInRoles.Assign(value);
1120      }
1121    }
1122   
1123    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_Role", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
1124    public aspnet_Application aspnet_Application
1125    {
1126      get
1127      {
1128        return this._aspnet_Application.Entity;
1129      }
1130      set
1131      {
1132        aspnet_Application previousValue = this._aspnet_Application.Entity;
1133        if (((previousValue != value)
1134              || (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
1135        {
1136          this.SendPropertyChanging();
1137          if ((previousValue != null))
1138          {
1139            this._aspnet_Application.Entity = null;
1140            previousValue.aspnet_Roles.Remove(this);
1141          }
1142          this._aspnet_Application.Entity = value;
1143          if ((value != null))
1144          {
1145            value.aspnet_Roles.Add(this);
1146            this._ApplicationId = value.ApplicationId;
1147          }
1148          else
1149          {
1150            this._ApplicationId = default(System.Guid);
1151          }
1152          this.SendPropertyChanged("aspnet_Application");
1153        }
1154      }
1155    }
1156   
1157    public event PropertyChangingEventHandler PropertyChanging;
1158   
1159    public event PropertyChangedEventHandler PropertyChanged;
1160   
1161    protected virtual void SendPropertyChanging()
1162    {
1163      if ((this.PropertyChanging != null))
1164      {
1165        this.PropertyChanging(this, emptyChangingEventArgs);
1166      }
1167    }
1168   
1169    protected virtual void SendPropertyChanged(String propertyName)
1170    {
1171      if ((this.PropertyChanged != null))
1172      {
1173        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1174      }
1175    }
1176   
1177    private void attach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
1178    {
1179      this.SendPropertyChanging();
1180      entity.aspnet_Role = this;
1181    }
1182   
1183    private void detach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
1184    {
1185      this.SendPropertyChanging();
1186      entity.aspnet_Role = null;
1187    }
1188  }
1189 
1190  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_UsersInRoles")]
1191  public partial class aspnet_UsersInRole : INotifyPropertyChanging, INotifyPropertyChanged
1192  {
1193   
1194    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1195   
1196    private System.Guid _UserId;
1197   
1198    private System.Guid _RoleId;
1199   
1200    private EntityRef<aspnet_Role> _aspnet_Role;
1201   
1202    private EntityRef<aspnet_User> _aspnet_User;
1203   
1204    #region Extensibility Method Definitions
1205    partial void OnLoaded();
1206    partial void OnValidate(System.Data.Linq.ChangeAction action);
1207    partial void OnCreated();
1208    partial void OnUserIdChanging(System.Guid value);
1209    partial void OnUserIdChanged();
1210    partial void OnRoleIdChanging(System.Guid value);
1211    partial void OnRoleIdChanged();
1212    #endregion
1213   
1214    public aspnet_UsersInRole()
1215    {
1216      this._aspnet_Role = default(EntityRef<aspnet_Role>);
1217      this._aspnet_User = default(EntityRef<aspnet_User>);
1218      OnCreated();
1219    }
1220   
1221    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1222    public System.Guid UserId
1223    {
1224      get
1225      {
1226        return this._UserId;
1227      }
1228      set
1229      {
1230        if ((this._UserId != value))
1231        {
1232          if (this._aspnet_User.HasLoadedOrAssignedValue)
1233          {
1234            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1235          }
1236          this.OnUserIdChanging(value);
1237          this.SendPropertyChanging();
1238          this._UserId = value;
1239          this.SendPropertyChanged("UserId");
1240          this.OnUserIdChanged();
1241        }
1242      }
1243    }
1244   
1245    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1246    public System.Guid RoleId
1247    {
1248      get
1249      {
1250        return this._RoleId;
1251      }
1252      set
1253      {
1254        if ((this._RoleId != value))
1255        {
1256          if (this._aspnet_Role.HasLoadedOrAssignedValue)
1257          {
1258            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1259          }
1260          this.OnRoleIdChanging(value);
1261          this.SendPropertyChanging();
1262          this._RoleId = value;
1263          this.SendPropertyChanged("RoleId");
1264          this.OnRoleIdChanged();
1265        }
1266      }
1267    }
1268   
1269    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Role_aspnet_UsersInRole", Storage="_aspnet_Role", ThisKey="RoleId", OtherKey="RoleId", IsForeignKey=true)]
1270    public aspnet_Role aspnet_Role
1271    {
1272      get
1273      {
1274        return this._aspnet_Role.Entity;
1275      }
1276      set
1277      {
1278        aspnet_Role previousValue = this._aspnet_Role.Entity;
1279        if (((previousValue != value)
1280              || (this._aspnet_Role.HasLoadedOrAssignedValue == false)))
1281        {
1282          this.SendPropertyChanging();
1283          if ((previousValue != null))
1284          {
1285            this._aspnet_Role.Entity = null;
1286            previousValue.aspnet_UsersInRoles.Remove(this);
1287          }
1288          this._aspnet_Role.Entity = value;
1289          if ((value != null))
1290          {
1291            value.aspnet_UsersInRoles.Add(this);
1292            this._RoleId = value.RoleId;
1293          }
1294          else
1295          {
1296            this._RoleId = default(System.Guid);
1297          }
1298          this.SendPropertyChanged("aspnet_Role");
1299        }
1300      }
1301    }
1302   
1303    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_UsersInRole", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
1304    public aspnet_User aspnet_User
1305    {
1306      get
1307      {
1308        return this._aspnet_User.Entity;
1309      }
1310      set
1311      {
1312        aspnet_User previousValue = this._aspnet_User.Entity;
1313        if (((previousValue != value)
1314              || (this._aspnet_User.HasLoadedOrAssignedValue == false)))
1315        {
1316          this.SendPropertyChanging();
1317          if ((previousValue != null))
1318          {
1319            this._aspnet_User.Entity = null;
1320            previousValue.aspnet_UsersInRoles.Remove(this);
1321          }
1322          this._aspnet_User.Entity = value;
1323          if ((value != null))
1324          {
1325            value.aspnet_UsersInRoles.Add(this);
1326            this._UserId = value.UserId;
1327          }
1328          else
1329          {
1330            this._UserId = default(System.Guid);
1331          }
1332          this.SendPropertyChanged("aspnet_User");
1333        }
1334      }
1335    }
1336   
1337    public event PropertyChangingEventHandler PropertyChanging;
1338   
1339    public event PropertyChangedEventHandler PropertyChanged;
1340   
1341    protected virtual void SendPropertyChanging()
1342    {
1343      if ((this.PropertyChanging != null))
1344      {
1345        this.PropertyChanging(this, emptyChangingEventArgs);
1346      }
1347    }
1348   
1349    protected virtual void SendPropertyChanged(String propertyName)
1350    {
1351      if ((this.PropertyChanged != null))
1352      {
1353        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1354      }
1355    }
1356  }
1357 
1358  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_Users")]
1359  public partial class aspnet_User : INotifyPropertyChanging, INotifyPropertyChanged
1360  {
1361   
1362    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1363   
1364    private System.Guid _ApplicationId;
1365   
1366    private System.Guid _UserId;
1367   
1368    private string _UserName;
1369   
1370    private string _LoweredUserName;
1371   
1372    private string _MobileAlias;
1373   
1374    private bool _IsAnonymous;
1375   
1376    private System.DateTime _LastActivityDate;
1377   
1378    private EntityRef<aspnet_Membership> _aspnet_Membership;
1379   
1380    private EntitySet<aspnet_UsersInRole> _aspnet_UsersInRoles;
1381   
1382    private EntityRef<aspnet_Application> _aspnet_Application;
1383   
1384    #region Extensibility Method Definitions
1385    partial void OnLoaded();
1386    partial void OnValidate(System.Data.Linq.ChangeAction action);
1387    partial void OnCreated();
1388    partial void OnApplicationIdChanging(System.Guid value);
1389    partial void OnApplicationIdChanged();
1390    partial void OnUserIdChanging(System.Guid value);
1391    partial void OnUserIdChanged();
1392    partial void OnUserNameChanging(string value);
1393    partial void OnUserNameChanged();
1394    partial void OnLoweredUserNameChanging(string value);
1395    partial void OnLoweredUserNameChanged();
1396    partial void OnMobileAliasChanging(string value);
1397    partial void OnMobileAliasChanged();
1398    partial void OnIsAnonymousChanging(bool value);
1399    partial void OnIsAnonymousChanged();
1400    partial void OnLastActivityDateChanging(System.DateTime value);
1401    partial void OnLastActivityDateChanged();
1402    #endregion
1403   
1404    public aspnet_User()
1405    {
1406      this._aspnet_Membership = default(EntityRef<aspnet_Membership>);
1407      this._aspnet_UsersInRoles = new EntitySet<aspnet_UsersInRole>(new Action<aspnet_UsersInRole>(this.attach_aspnet_UsersInRoles), new Action<aspnet_UsersInRole>(this.detach_aspnet_UsersInRoles));
1408      this._aspnet_Application = default(EntityRef<aspnet_Application>);
1409      OnCreated();
1410    }
1411   
1412    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
1413    public System.Guid ApplicationId
1414    {
1415      get
1416      {
1417        return this._ApplicationId;
1418      }
1419      set
1420      {
1421        if ((this._ApplicationId != value))
1422        {
1423          if (this._aspnet_Application.HasLoadedOrAssignedValue)
1424          {
1425            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1426          }
1427          this.OnApplicationIdChanging(value);
1428          this.SendPropertyChanging();
1429          this._ApplicationId = value;
1430          this.SendPropertyChanged("ApplicationId");
1431          this.OnApplicationIdChanged();
1432        }
1433      }
1434    }
1435   
1436    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1437    public System.Guid UserId
1438    {
1439      get
1440      {
1441        return this._UserId;
1442      }
1443      set
1444      {
1445        if ((this._UserId != value))
1446        {
1447          this.OnUserIdChanging(value);
1448          this.SendPropertyChanging();
1449          this._UserId = value;
1450          this.SendPropertyChanged("UserId");
1451          this.OnUserIdChanged();
1452        }
1453      }
1454    }
1455   
1456    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1457    public string UserName
1458    {
1459      get
1460      {
1461        return this._UserName;
1462      }
1463      set
1464      {
1465        if ((this._UserName != value))
1466        {
1467          this.OnUserNameChanging(value);
1468          this.SendPropertyChanging();
1469          this._UserName = value;
1470          this.SendPropertyChanged("UserName");
1471          this.OnUserNameChanged();
1472        }
1473      }
1474    }
1475   
1476    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredUserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1477    public string LoweredUserName
1478    {
1479      get
1480      {
1481        return this._LoweredUserName;
1482      }
1483      set
1484      {
1485        if ((this._LoweredUserName != value))
1486        {
1487          this.OnLoweredUserNameChanging(value);
1488          this.SendPropertyChanging();
1489          this._LoweredUserName = value;
1490          this.SendPropertyChanged("LoweredUserName");
1491          this.OnLoweredUserNameChanged();
1492        }
1493      }
1494    }
1495   
1496    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MobileAlias", DbType="NVarChar(16)")]
1497    public string MobileAlias
1498    {
1499      get
1500      {
1501        return this._MobileAlias;
1502      }
1503      set
1504      {
1505        if ((this._MobileAlias != value))
1506        {
1507          this.OnMobileAliasChanging(value);
1508          this.SendPropertyChanging();
1509          this._MobileAlias = value;
1510          this.SendPropertyChanged("MobileAlias");
1511          this.OnMobileAliasChanged();
1512        }
1513      }
1514    }
1515   
1516    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAnonymous", DbType="Bit NOT NULL")]
1517    public bool IsAnonymous
1518    {
1519      get
1520      {
1521        return this._IsAnonymous;
1522      }
1523      set
1524      {
1525        if ((this._IsAnonymous != value))
1526        {
1527          this.OnIsAnonymousChanging(value);
1528          this.SendPropertyChanging();
1529          this._IsAnonymous = value;
1530          this.SendPropertyChanged("IsAnonymous");
1531          this.OnIsAnonymousChanged();
1532        }
1533      }
1534    }
1535   
1536    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastActivityDate", DbType="DateTime NOT NULL")]
1537    public System.DateTime LastActivityDate
1538    {
1539      get
1540      {
1541        return this._LastActivityDate;
1542      }
1543      set
1544      {
1545        if ((this._LastActivityDate != value))
1546        {
1547          this.OnLastActivityDateChanging(value);
1548          this.SendPropertyChanging();
1549          this._LastActivityDate = value;
1550          this.SendPropertyChanged("LastActivityDate");
1551          this.OnLastActivityDateChanged();
1552        }
1553      }
1554    }
1555   
1556    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_Membership", ThisKey="UserId", OtherKey="UserId", IsUnique=true, IsForeignKey=false)]
1557    public aspnet_Membership aspnet_Membership
1558    {
1559      get
1560      {
1561        return this._aspnet_Membership.Entity;
1562      }
1563      set
1564      {
1565        aspnet_Membership previousValue = this._aspnet_Membership.Entity;
1566        if (((previousValue != value)
1567              || (this._aspnet_Membership.HasLoadedOrAssignedValue == false)))
1568        {
1569          this.SendPropertyChanging();
1570          if ((previousValue != null))
1571          {
1572            this._aspnet_Membership.Entity = null;
1573            previousValue.aspnet_User = null;
1574          }
1575          this._aspnet_Membership.Entity = value;
1576          if ((value != null))
1577          {
1578            value.aspnet_User = this;
1579          }
1580          this.SendPropertyChanged("aspnet_Membership");
1581        }
1582      }
1583    }
1584   
1585    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_UsersInRole", Storage="_aspnet_UsersInRoles", ThisKey="UserId", OtherKey="UserId")]
1586    public EntitySet<aspnet_UsersInRole> aspnet_UsersInRoles
1587    {
1588      get
1589      {
1590        return this._aspnet_UsersInRoles;
1591      }
1592      set
1593      {
1594        this._aspnet_UsersInRoles.Assign(value);
1595      }
1596    }
1597   
1598    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_User", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
1599    public aspnet_Application aspnet_Application
1600    {
1601      get
1602      {
1603        return this._aspnet_Application.Entity;
1604      }
1605      set
1606      {
1607        aspnet_Application previousValue = this._aspnet_Application.Entity;
1608        if (((previousValue != value)
1609              || (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
1610        {
1611          this.SendPropertyChanging();
1612          if ((previousValue != null))
1613          {
1614            this._aspnet_Application.Entity = null;
1615            previousValue.aspnet_Users.Remove(this);
1616          }
1617          this._aspnet_Application.Entity = value;
1618          if ((value != null))
1619          {
1620            value.aspnet_Users.Add(this);
1621            this._ApplicationId = value.ApplicationId;
1622          }
1623          else
1624          {
1625            this._ApplicationId = default(System.Guid);
1626          }
1627          this.SendPropertyChanged("aspnet_Application");
1628        }
1629      }
1630    }
1631   
1632    public event PropertyChangingEventHandler PropertyChanging;
1633   
1634    public event PropertyChangedEventHandler PropertyChanged;
1635   
1636    protected virtual void SendPropertyChanging()
1637    {
1638      if ((this.PropertyChanging != null))
1639      {
1640        this.PropertyChanging(this, emptyChangingEventArgs);
1641      }
1642    }
1643   
1644    protected virtual void SendPropertyChanged(String propertyName)
1645    {
1646      if ((this.PropertyChanged != null))
1647      {
1648        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1649      }
1650    }
1651   
1652    private void attach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
1653    {
1654      this.SendPropertyChanging();
1655      entity.aspnet_User = this;
1656    }
1657   
1658    private void detach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
1659    {
1660      this.SendPropertyChanging();
1661      entity.aspnet_User = null;
1662    }
1663  }
1664}
1665#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.