Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Services.Access.DataAccess/3.3/ASPNETAuthentication.designer.cs @ 11428

Last change on this file since 11428 was 8040, checked in by ascheibe, 12 years ago

#1648 integrated server parts of the access service into trunk

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.Access.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 ASPNETAuthenticationDataContext : 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_User(aspnet_User instance);
43    partial void Updateaspnet_User(aspnet_User instance);
44    partial void Deleteaspnet_User(aspnet_User instance);
45    partial void Insertaspnet_UsersInRole(aspnet_UsersInRole instance);
46    partial void Updateaspnet_UsersInRole(aspnet_UsersInRole instance);
47    partial void Deleteaspnet_UsersInRole(aspnet_UsersInRole instance);
48    #endregion
49   
50    public ASPNETAuthenticationDataContext() :
51        base(global::HeuristicLab.Services.Access.DataAccess.Properties.Settings.Default.HeuristicLab_AuthenticationConnectionString, mappingSource)
52    {
53      OnCreated();
54    }
55   
56    public ASPNETAuthenticationDataContext(string connection) :
57        base(connection, mappingSource)
58    {
59      OnCreated();
60    }
61   
62    public ASPNETAuthenticationDataContext(System.Data.IDbConnection connection) :
63        base(connection, mappingSource)
64    {
65      OnCreated();
66    }
67   
68    public ASPNETAuthenticationDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
69        base(connection, mappingSource)
70    {
71      OnCreated();
72    }
73   
74    public ASPNETAuthenticationDataContext(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_User> aspnet_Users
105    {
106      get
107      {
108        return this.GetTable<aspnet_User>();
109      }
110    }
111   
112    public System.Data.Linq.Table<aspnet_UsersInRole> aspnet_UsersInRoles
113    {
114      get
115      {
116        return this.GetTable<aspnet_UsersInRole>();
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_Users")]
1191  public partial class aspnet_User : INotifyPropertyChanging, INotifyPropertyChanged
1192  {
1193   
1194    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1195   
1196    private System.Guid _ApplicationId;
1197   
1198    private System.Guid _UserId;
1199   
1200    private string _UserName;
1201   
1202    private string _LoweredUserName;
1203   
1204    private string _MobileAlias;
1205   
1206    private bool _IsAnonymous;
1207   
1208    private System.DateTime _LastActivityDate;
1209   
1210    private EntityRef<aspnet_Membership> _aspnet_Membership;
1211   
1212    private EntitySet<aspnet_UsersInRole> _aspnet_UsersInRoles;
1213   
1214    private EntityRef<aspnet_Application> _aspnet_Application;
1215   
1216    #region Extensibility Method Definitions
1217    partial void OnLoaded();
1218    partial void OnValidate(System.Data.Linq.ChangeAction action);
1219    partial void OnCreated();
1220    partial void OnApplicationIdChanging(System.Guid value);
1221    partial void OnApplicationIdChanged();
1222    partial void OnUserIdChanging(System.Guid value);
1223    partial void OnUserIdChanged();
1224    partial void OnUserNameChanging(string value);
1225    partial void OnUserNameChanged();
1226    partial void OnLoweredUserNameChanging(string value);
1227    partial void OnLoweredUserNameChanged();
1228    partial void OnMobileAliasChanging(string value);
1229    partial void OnMobileAliasChanged();
1230    partial void OnIsAnonymousChanging(bool value);
1231    partial void OnIsAnonymousChanged();
1232    partial void OnLastActivityDateChanging(System.DateTime value);
1233    partial void OnLastActivityDateChanged();
1234    #endregion
1235   
1236    public aspnet_User()
1237    {
1238      this._aspnet_Membership = default(EntityRef<aspnet_Membership>);
1239      this._aspnet_UsersInRoles = new EntitySet<aspnet_UsersInRole>(new Action<aspnet_UsersInRole>(this.attach_aspnet_UsersInRoles), new Action<aspnet_UsersInRole>(this.detach_aspnet_UsersInRoles));
1240      this._aspnet_Application = default(EntityRef<aspnet_Application>);
1241      OnCreated();
1242    }
1243   
1244    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
1245    public System.Guid ApplicationId
1246    {
1247      get
1248      {
1249        return this._ApplicationId;
1250      }
1251      set
1252      {
1253        if ((this._ApplicationId != value))
1254        {
1255          if (this._aspnet_Application.HasLoadedOrAssignedValue)
1256          {
1257            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1258          }
1259          this.OnApplicationIdChanging(value);
1260          this.SendPropertyChanging();
1261          this._ApplicationId = value;
1262          this.SendPropertyChanged("ApplicationId");
1263          this.OnApplicationIdChanged();
1264        }
1265      }
1266    }
1267   
1268    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1269    public System.Guid UserId
1270    {
1271      get
1272      {
1273        return this._UserId;
1274      }
1275      set
1276      {
1277        if ((this._UserId != value))
1278        {
1279          this.OnUserIdChanging(value);
1280          this.SendPropertyChanging();
1281          this._UserId = value;
1282          this.SendPropertyChanged("UserId");
1283          this.OnUserIdChanged();
1284        }
1285      }
1286    }
1287   
1288    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1289    public string UserName
1290    {
1291      get
1292      {
1293        return this._UserName;
1294      }
1295      set
1296      {
1297        if ((this._UserName != value))
1298        {
1299          this.OnUserNameChanging(value);
1300          this.SendPropertyChanging();
1301          this._UserName = value;
1302          this.SendPropertyChanged("UserName");
1303          this.OnUserNameChanged();
1304        }
1305      }
1306    }
1307   
1308    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoweredUserName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
1309    public string LoweredUserName
1310    {
1311      get
1312      {
1313        return this._LoweredUserName;
1314      }
1315      set
1316      {
1317        if ((this._LoweredUserName != value))
1318        {
1319          this.OnLoweredUserNameChanging(value);
1320          this.SendPropertyChanging();
1321          this._LoweredUserName = value;
1322          this.SendPropertyChanged("LoweredUserName");
1323          this.OnLoweredUserNameChanged();
1324        }
1325      }
1326    }
1327   
1328    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MobileAlias", DbType="NVarChar(16)")]
1329    public string MobileAlias
1330    {
1331      get
1332      {
1333        return this._MobileAlias;
1334      }
1335      set
1336      {
1337        if ((this._MobileAlias != value))
1338        {
1339          this.OnMobileAliasChanging(value);
1340          this.SendPropertyChanging();
1341          this._MobileAlias = value;
1342          this.SendPropertyChanged("MobileAlias");
1343          this.OnMobileAliasChanged();
1344        }
1345      }
1346    }
1347   
1348    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAnonymous", DbType="Bit NOT NULL")]
1349    public bool IsAnonymous
1350    {
1351      get
1352      {
1353        return this._IsAnonymous;
1354      }
1355      set
1356      {
1357        if ((this._IsAnonymous != value))
1358        {
1359          this.OnIsAnonymousChanging(value);
1360          this.SendPropertyChanging();
1361          this._IsAnonymous = value;
1362          this.SendPropertyChanged("IsAnonymous");
1363          this.OnIsAnonymousChanged();
1364        }
1365      }
1366    }
1367   
1368    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastActivityDate", DbType="DateTime NOT NULL")]
1369    public System.DateTime LastActivityDate
1370    {
1371      get
1372      {
1373        return this._LastActivityDate;
1374      }
1375      set
1376      {
1377        if ((this._LastActivityDate != value))
1378        {
1379          this.OnLastActivityDateChanging(value);
1380          this.SendPropertyChanging();
1381          this._LastActivityDate = value;
1382          this.SendPropertyChanged("LastActivityDate");
1383          this.OnLastActivityDateChanged();
1384        }
1385      }
1386    }
1387   
1388    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_Membership", Storage="_aspnet_Membership", ThisKey="UserId", OtherKey="UserId", IsUnique=true, IsForeignKey=false)]
1389    public aspnet_Membership aspnet_Membership
1390    {
1391      get
1392      {
1393        return this._aspnet_Membership.Entity;
1394      }
1395      set
1396      {
1397        aspnet_Membership previousValue = this._aspnet_Membership.Entity;
1398        if (((previousValue != value)
1399              || (this._aspnet_Membership.HasLoadedOrAssignedValue == false)))
1400        {
1401          this.SendPropertyChanging();
1402          if ((previousValue != null))
1403          {
1404            this._aspnet_Membership.Entity = null;
1405            previousValue.aspnet_User = null;
1406          }
1407          this._aspnet_Membership.Entity = value;
1408          if ((value != null))
1409          {
1410            value.aspnet_User = this;
1411          }
1412          this.SendPropertyChanged("aspnet_Membership");
1413        }
1414      }
1415    }
1416   
1417    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_UsersInRole", Storage="_aspnet_UsersInRoles", ThisKey="UserId", OtherKey="UserId")]
1418    public EntitySet<aspnet_UsersInRole> aspnet_UsersInRoles
1419    {
1420      get
1421      {
1422        return this._aspnet_UsersInRoles;
1423      }
1424      set
1425      {
1426        this._aspnet_UsersInRoles.Assign(value);
1427      }
1428    }
1429   
1430    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Application_aspnet_User", Storage="_aspnet_Application", ThisKey="ApplicationId", OtherKey="ApplicationId", IsForeignKey=true)]
1431    public aspnet_Application aspnet_Application
1432    {
1433      get
1434      {
1435        return this._aspnet_Application.Entity;
1436      }
1437      set
1438      {
1439        aspnet_Application previousValue = this._aspnet_Application.Entity;
1440        if (((previousValue != value)
1441              || (this._aspnet_Application.HasLoadedOrAssignedValue == false)))
1442        {
1443          this.SendPropertyChanging();
1444          if ((previousValue != null))
1445          {
1446            this._aspnet_Application.Entity = null;
1447            previousValue.aspnet_Users.Remove(this);
1448          }
1449          this._aspnet_Application.Entity = value;
1450          if ((value != null))
1451          {
1452            value.aspnet_Users.Add(this);
1453            this._ApplicationId = value.ApplicationId;
1454          }
1455          else
1456          {
1457            this._ApplicationId = default(System.Guid);
1458          }
1459          this.SendPropertyChanged("aspnet_Application");
1460        }
1461      }
1462    }
1463   
1464    public event PropertyChangingEventHandler PropertyChanging;
1465   
1466    public event PropertyChangedEventHandler PropertyChanged;
1467   
1468    protected virtual void SendPropertyChanging()
1469    {
1470      if ((this.PropertyChanging != null))
1471      {
1472        this.PropertyChanging(this, emptyChangingEventArgs);
1473      }
1474    }
1475   
1476    protected virtual void SendPropertyChanged(String propertyName)
1477    {
1478      if ((this.PropertyChanged != null))
1479      {
1480        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1481      }
1482    }
1483   
1484    private void attach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
1485    {
1486      this.SendPropertyChanging();
1487      entity.aspnet_User = this;
1488    }
1489   
1490    private void detach_aspnet_UsersInRoles(aspnet_UsersInRole entity)
1491    {
1492      this.SendPropertyChanging();
1493      entity.aspnet_User = null;
1494    }
1495  }
1496 
1497  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.aspnet_UsersInRoles")]
1498  public partial class aspnet_UsersInRole : INotifyPropertyChanging, INotifyPropertyChanged
1499  {
1500   
1501    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1502   
1503    private System.Guid _UserId;
1504   
1505    private System.Guid _RoleId;
1506   
1507    private EntityRef<aspnet_Role> _aspnet_Role;
1508   
1509    private EntityRef<aspnet_User> _aspnet_User;
1510   
1511    #region Extensibility Method Definitions
1512    partial void OnLoaded();
1513    partial void OnValidate(System.Data.Linq.ChangeAction action);
1514    partial void OnCreated();
1515    partial void OnUserIdChanging(System.Guid value);
1516    partial void OnUserIdChanged();
1517    partial void OnRoleIdChanging(System.Guid value);
1518    partial void OnRoleIdChanged();
1519    #endregion
1520   
1521    public aspnet_UsersInRole()
1522    {
1523      this._aspnet_Role = default(EntityRef<aspnet_Role>);
1524      this._aspnet_User = default(EntityRef<aspnet_User>);
1525      OnCreated();
1526    }
1527   
1528    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1529    public System.Guid UserId
1530    {
1531      get
1532      {
1533        return this._UserId;
1534      }
1535      set
1536      {
1537        if ((this._UserId != value))
1538        {
1539          if (this._aspnet_User.HasLoadedOrAssignedValue)
1540          {
1541            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1542          }
1543          this.OnUserIdChanging(value);
1544          this.SendPropertyChanging();
1545          this._UserId = value;
1546          this.SendPropertyChanged("UserId");
1547          this.OnUserIdChanged();
1548        }
1549      }
1550    }
1551   
1552    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1553    public System.Guid RoleId
1554    {
1555      get
1556      {
1557        return this._RoleId;
1558      }
1559      set
1560      {
1561        if ((this._RoleId != value))
1562        {
1563          if (this._aspnet_Role.HasLoadedOrAssignedValue)
1564          {
1565            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1566          }
1567          this.OnRoleIdChanging(value);
1568          this.SendPropertyChanging();
1569          this._RoleId = value;
1570          this.SendPropertyChanged("RoleId");
1571          this.OnRoleIdChanged();
1572        }
1573      }
1574    }
1575   
1576    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_Role_aspnet_UsersInRole", Storage="_aspnet_Role", ThisKey="RoleId", OtherKey="RoleId", IsForeignKey=true)]
1577    public aspnet_Role aspnet_Role
1578    {
1579      get
1580      {
1581        return this._aspnet_Role.Entity;
1582      }
1583      set
1584      {
1585        aspnet_Role previousValue = this._aspnet_Role.Entity;
1586        if (((previousValue != value)
1587              || (this._aspnet_Role.HasLoadedOrAssignedValue == false)))
1588        {
1589          this.SendPropertyChanging();
1590          if ((previousValue != null))
1591          {
1592            this._aspnet_Role.Entity = null;
1593            previousValue.aspnet_UsersInRoles.Remove(this);
1594          }
1595          this._aspnet_Role.Entity = value;
1596          if ((value != null))
1597          {
1598            value.aspnet_UsersInRoles.Add(this);
1599            this._RoleId = value.RoleId;
1600          }
1601          else
1602          {
1603            this._RoleId = default(System.Guid);
1604          }
1605          this.SendPropertyChanged("aspnet_Role");
1606        }
1607      }
1608    }
1609   
1610    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="aspnet_User_aspnet_UsersInRole", Storage="_aspnet_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
1611    public aspnet_User aspnet_User
1612    {
1613      get
1614      {
1615        return this._aspnet_User.Entity;
1616      }
1617      set
1618      {
1619        aspnet_User previousValue = this._aspnet_User.Entity;
1620        if (((previousValue != value)
1621              || (this._aspnet_User.HasLoadedOrAssignedValue == false)))
1622        {
1623          this.SendPropertyChanging();
1624          if ((previousValue != null))
1625          {
1626            this._aspnet_User.Entity = null;
1627            previousValue.aspnet_UsersInRoles.Remove(this);
1628          }
1629          this._aspnet_User.Entity = value;
1630          if ((value != null))
1631          {
1632            value.aspnet_UsersInRoles.Add(this);
1633            this._UserId = value.UserId;
1634          }
1635          else
1636          {
1637            this._UserId = default(System.Guid);
1638          }
1639          this.SendPropertyChanged("aspnet_User");
1640        }
1641      }
1642    }
1643   
1644    public event PropertyChangingEventHandler PropertyChanging;
1645   
1646    public event PropertyChangedEventHandler PropertyChanged;
1647   
1648    protected virtual void SendPropertyChanging()
1649    {
1650      if ((this.PropertyChanging != null))
1651      {
1652        this.PropertyChanging(this, emptyChangingEventArgs);
1653      }
1654    }
1655   
1656    protected virtual void SendPropertyChanged(String propertyName)
1657    {
1658      if ((this.PropertyChanged != null))
1659      {
1660        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1661      }
1662    }
1663  }
1664}
1665#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.