My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
using System;

namespace System.BusinessObjects.Membership
{
/// <summary>
/// Membership : BusinessObject
/// </summary>
public class Membership : User
{
public virtual String Password
{
get { return GetValue<String>("Password"); }
set
{
BeginEdit();
SetValue("Password", value);
}
}

public virtual Int32 PasswordFormat
{
get { return GetValue<Int32>("PasswordFormat"); }
set
{
BeginEdit();
SetValue("PasswordFormat", value);
}
}

public virtual String PasswordSalt
{
get { return GetValue<String>("PasswordSalt"); }
set
{
BeginEdit();
SetValue("PasswordSalt", value);
}
}

public virtual String MobilePIN
{
get { return GetValue<String>("MobilePIN"); }
set
{
BeginEdit();
SetValue("MobilePIN", value);
}
}

public virtual String Email
{
get { return GetValue<String>("Email"); }
set
{
BeginEdit();
SetValue("Email", value);
SetValue("LoweredEmail", value.ToLower());
}
}

public virtual String LoweredEmail
{
get { return GetValue<String>("LoweredEmail"); }
set
{
//Set in Property: Email
}
}

public virtual String PasswordQuestion
{
get { return GetValue<String>("PasswordQuestion"); }
set
{
BeginEdit();
SetValue("PasswordQuestion", value);
}
}

public virtual String PasswordAnswer
{
get { return GetValue<String>("PasswordAnswer"); }
set
{
BeginEdit();
SetValue("PasswordAnswer", value);
}
}

public virtual Boolean IsApproved
{
get { return GetValue<Boolean>("IsApproved"); }
set
{
BeginEdit();
SetValue("IsApproved", value);
}
}

public virtual Boolean IsLockedOut
{
get { return GetValue<Boolean>("IsLockedOut"); }
set
{
BeginEdit();
SetValue("IsLockedOut", value);
}
}

public virtual DateTime CreateDate
{
get { return GetValue<DateTime>("CreateDate"); }
set
{
BeginEdit();
SetValue("CreateDate", value);
}
}

public virtual DateTime LastLoginDate
{
get { return GetValue<DateTime>("LastLoginDate"); }
set
{
BeginEdit();
SetValue("LastLoginDate", value);
}
}

public virtual DateTime LastPasswordChangedDate
{
get { return GetValue<DateTime>("LastPasswordChangedDate"); }
set
{
BeginEdit();
SetValue("LastPasswordChangedDate", value);
}
}

public virtual DateTime LastLockoutDate
{
get { return GetValue<DateTime>("LastLockoutDate"); }
set
{
BeginEdit();
SetValue("LastLockoutDate", value);
}
}

public virtual Int32 FailedPasswordAttemptCount
{
get { return GetValue<Int32>("FailedPasswordAttemptCount"); }
set
{
BeginEdit();
SetValue("FailedPasswordAttemptCount", value);
}
}

public virtual DateTime FailedPasswordAttemptWindowStart
{
get { return GetValue<DateTime>("FailedPasswordAttemptWindowStart"); }
set
{
BeginEdit();
SetValue("FailedPasswordAttemptWindowStart", value);
}
}

public virtual Int32 FailedPasswordAnswerAttemptCount
{
get { return GetValue<Int32>("FailedPasswordAnswerAttemptCount"); }
set
{
BeginEdit();
SetValue("FailedPasswordAnswerAttemptCount", value);
}
}

public virtual DateTime FailedPasswordAnswerAttemptWindowStart
{
get { return GetValue<DateTime>("FailedPasswordAnswerAttemptWindowStart"); }
set
{
BeginEdit();
SetValue("FailedPasswordAnswerAttemptWindowStart", value);
}
}

public virtual String Comment
{
get { return GetValue<String>("Comment"); }
set
{
BeginEdit();
SetValue("Comment", value);
}
}

public virtual System.Web.Security.MembershipUser ToMembershipUser(string providerName)
{
return (new System.Web.Security.MembershipUser(providerName, UserName, ID, Email, PasswordQuestion, Comment, IsApproved,
IsLockedOut, CreateDate, LastLoginDate, LastActivityDate, LastPasswordChangedDate,
LastLockoutDate));
}
public virtual Membership FromMembershipUser(System.Web.Security.MembershipUser mu)
{
ID = (Guid)mu.ProviderUserKey;
if(IsNull("Email"))
Email = mu.Email;
PasswordQuestion = mu.PasswordQuestion;
Comment = mu.Comment;
IsApproved = mu.IsApproved;
IsLockedOut = mu.IsLockedOut;
CreateDate = mu.CreationDate;
UserName = mu.UserName;
LastActivityDate = mu.LastActivityDate;
LastLoginDate = mu.LastLoginDate;
LastPasswordChangedDate = mu.LastPasswordChangedDate;
LastLockoutDate = mu.LastLockoutDate;
return this;
}

}
}
Show details Hide details

Change log

r135 by brendan.kowitz on Sep 25, 2009   Diff
Changes for building / testing with x64
and x86 systems
Go to: 
Project members, sign in to write a code review

Older revisions

r105 by brendan.kowitz on Jan 11, 2009   Diff
 * Moved
System.BusinessObjects.Membership to
root
 * Added BuildScripts/Extensions.build
 * Added .net2.0 collection/predicate
...
r75 by brendan.kowitz on Aug 03, 2008   Diff
-Merged NHibernate2 branch back to
trunk
r71 by brendan.kowitz on Jul 27, 2008   Diff
Unit tests and implementation for
Membership and Roles providers.
Profile provider to come.
All revisions of this file

File info

Size: 6642 bytes, 225 lines
Powered by Google Project Hosting