Free cookie consent management tool by TermsFeed Policy Generator

source: branches/UserManagement/HeuristicLab.Services.Authentication.DataAccess/UserManagement.designer.cs @ 5316

Last change on this file since 5316 was 5257, checked in by mjesner, 14 years ago

#1196

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