PageRenderTime 83ms CodeModel.GetById 4ms app.highlight 70ms RepoModel.GetById 2ms app.codeStats 0ms

/Open Judge System/Tools/OJS.Tools.OldDatabaseMigration/OldModel.Context.cs

https://github.com/dbull/OpenJudgeSystem
C# | 1284 lines | 982 code | 294 blank | 8 comment | 140 complexity | 37b44dd7d4675b91363238eae9178f7d MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1//------------------------------------------------------------------------------
  2// <auto-generated>
  3//    This code was generated from a template.
  4//
  5//    Manual changes to this file may cause unexpected behavior in your application.
  6//    Manual changes to this file will be overwritten if the code is regenerated.
  7// </auto-generated>
  8//------------------------------------------------------------------------------
  9
 10namespace OJS.Tools.OldDatabaseMigration
 11{
 12    using System;
 13    using System.Data.Entity;
 14    using System.Data.Entity.Infrastructure;
 15    using System.Data.Entity.Core.Objects;
 16    using System.Linq;
 17    
 18    public partial class TelerikContestSystemEntities : DbContext
 19    {
 20        public TelerikContestSystemEntities()
 21            : base("name=TelerikContestSystemEntities")
 22        {
 23        }
 24    
 25        protected override void OnModelCreating(DbModelBuilder modelBuilder)
 26        {
 27            throw new UnintentionalCodeFirstException();
 28        }
 29    
 30        public DbSet<aspnet_Applications> aspnet_Applications { get; set; }
 31        public DbSet<aspnet_Membership> aspnet_Membership { get; set; }
 32        public DbSet<aspnet_Paths> aspnet_Paths { get; set; }
 33        public DbSet<aspnet_PersonalizationAllUsers> aspnet_PersonalizationAllUsers { get; set; }
 34        public DbSet<aspnet_PersonalizationPerUser> aspnet_PersonalizationPerUser { get; set; }
 35        public DbSet<aspnet_Profile> aspnet_Profile { get; set; }
 36        public DbSet<aspnet_Roles> aspnet_Roles { get; set; }
 37        public DbSet<aspnet_SchemaVersions> aspnet_SchemaVersions { get; set; }
 38        public DbSet<aspnet_Users> aspnet_Users { get; set; }
 39        public DbSet<aspnet_WebEvent_Events> aspnet_WebEvent_Events { get; set; }
 40        public DbSet<BugReport> BugReports { get; set; }
 41        public DbSet<Checker> Checkers { get; set; }
 42        public DbSet<Contest> Contests { get; set; }
 43        public DbSet<ContestType> ContestTypes { get; set; }
 44        public DbSet<News> News { get; set; }
 45        public DbSet<Participant> Participants { get; set; }
 46        public DbSet<Setting> Settings { get; set; }
 47        public DbSet<Submission> Submissions { get; set; }
 48        public DbSet<sysdiagram> sysdiagrams { get; set; }
 49        public DbSet<Task> Tasks { get; set; }
 50        public DbSet<Test> Tests { get; set; }
 51        public DbSet<User> Users { get; set; }
 52        public DbSet<vw_aspnet_Applications> vw_aspnet_Applications { get; set; }
 53        public DbSet<vw_aspnet_MembershipUsers> vw_aspnet_MembershipUsers { get; set; }
 54        public DbSet<vw_aspnet_Profiles> vw_aspnet_Profiles { get; set; }
 55        public DbSet<vw_aspnet_Roles> vw_aspnet_Roles { get; set; }
 56        public DbSet<vw_aspnet_Users> vw_aspnet_Users { get; set; }
 57        public DbSet<vw_aspnet_UsersInRoles> vw_aspnet_UsersInRoles { get; set; }
 58        public DbSet<vw_aspnet_WebPartState_Paths> vw_aspnet_WebPartState_Paths { get; set; }
 59        public DbSet<vw_aspnet_WebPartState_Shared> vw_aspnet_WebPartState_Shared { get; set; }
 60        public DbSet<vw_aspnet_WebPartState_User> vw_aspnet_WebPartState_User { get; set; }
 61    
 62        public virtual ObjectResult<string> aspnet_AnyDataInTables(Nullable<int> tablesToCheck)
 63        {
 64            var tablesToCheckParameter = tablesToCheck.HasValue ?
 65                new ObjectParameter("TablesToCheck", tablesToCheck) :
 66                new ObjectParameter("TablesToCheck", typeof(int));
 67    
 68            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_AnyDataInTables", tablesToCheckParameter);
 69        }
 70    
 71        public virtual int aspnet_Applications_CreateApplication(string applicationName, ObjectParameter applicationId)
 72        {
 73            var applicationNameParameter = applicationName != null ?
 74                new ObjectParameter("ApplicationName", applicationName) :
 75                new ObjectParameter("ApplicationName", typeof(string));
 76    
 77            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Applications_CreateApplication", applicationNameParameter, applicationId);
 78        }
 79    
 80        public virtual int aspnet_CheckSchemaVersion(string feature, string compatibleSchemaVersion)
 81        {
 82            var featureParameter = feature != null ?
 83                new ObjectParameter("Feature", feature) :
 84                new ObjectParameter("Feature", typeof(string));
 85    
 86            var compatibleSchemaVersionParameter = compatibleSchemaVersion != null ?
 87                new ObjectParameter("CompatibleSchemaVersion", compatibleSchemaVersion) :
 88                new ObjectParameter("CompatibleSchemaVersion", typeof(string));
 89    
 90            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_CheckSchemaVersion", featureParameter, compatibleSchemaVersionParameter);
 91        }
 92    
 93        public virtual int aspnet_Membership_ChangePasswordQuestionAndAnswer(string applicationName, string userName, string newPasswordQuestion, string newPasswordAnswer)
 94        {
 95            var applicationNameParameter = applicationName != null ?
 96                new ObjectParameter("ApplicationName", applicationName) :
 97                new ObjectParameter("ApplicationName", typeof(string));
 98    
 99            var userNameParameter = userName != null ?
100                new ObjectParameter("UserName", userName) :
101                new ObjectParameter("UserName", typeof(string));
102    
103            var newPasswordQuestionParameter = newPasswordQuestion != null ?
104                new ObjectParameter("NewPasswordQuestion", newPasswordQuestion) :
105                new ObjectParameter("NewPasswordQuestion", typeof(string));
106    
107            var newPasswordAnswerParameter = newPasswordAnswer != null ?
108                new ObjectParameter("NewPasswordAnswer", newPasswordAnswer) :
109                new ObjectParameter("NewPasswordAnswer", typeof(string));
110    
111            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_ChangePasswordQuestionAndAnswer", applicationNameParameter, userNameParameter, newPasswordQuestionParameter, newPasswordAnswerParameter);
112        }
113    
114        public virtual int aspnet_Membership_CreateUser(string applicationName, string userName, string password, string passwordSalt, string email, string passwordQuestion, string passwordAnswer, Nullable<bool> isApproved, Nullable<System.DateTime> currentTimeUtc, Nullable<System.DateTime> createDate, Nullable<int> uniqueEmail, Nullable<int> passwordFormat, ObjectParameter userId)
115        {
116            var applicationNameParameter = applicationName != null ?
117                new ObjectParameter("ApplicationName", applicationName) :
118                new ObjectParameter("ApplicationName", typeof(string));
119    
120            var userNameParameter = userName != null ?
121                new ObjectParameter("UserName", userName) :
122                new ObjectParameter("UserName", typeof(string));
123    
124            var passwordParameter = password != null ?
125                new ObjectParameter("Password", password) :
126                new ObjectParameter("Password", typeof(string));
127    
128            var passwordSaltParameter = passwordSalt != null ?
129                new ObjectParameter("PasswordSalt", passwordSalt) :
130                new ObjectParameter("PasswordSalt", typeof(string));
131    
132            var emailParameter = email != null ?
133                new ObjectParameter("Email", email) :
134                new ObjectParameter("Email", typeof(string));
135    
136            var passwordQuestionParameter = passwordQuestion != null ?
137                new ObjectParameter("PasswordQuestion", passwordQuestion) :
138                new ObjectParameter("PasswordQuestion", typeof(string));
139    
140            var passwordAnswerParameter = passwordAnswer != null ?
141                new ObjectParameter("PasswordAnswer", passwordAnswer) :
142                new ObjectParameter("PasswordAnswer", typeof(string));
143    
144            var isApprovedParameter = isApproved.HasValue ?
145                new ObjectParameter("IsApproved", isApproved) :
146                new ObjectParameter("IsApproved", typeof(bool));
147    
148            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
149                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
150                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
151    
152            var createDateParameter = createDate.HasValue ?
153                new ObjectParameter("CreateDate", createDate) :
154                new ObjectParameter("CreateDate", typeof(System.DateTime));
155    
156            var uniqueEmailParameter = uniqueEmail.HasValue ?
157                new ObjectParameter("UniqueEmail", uniqueEmail) :
158                new ObjectParameter("UniqueEmail", typeof(int));
159    
160            var passwordFormatParameter = passwordFormat.HasValue ?
161                new ObjectParameter("PasswordFormat", passwordFormat) :
162                new ObjectParameter("PasswordFormat", typeof(int));
163    
164            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_CreateUser", applicationNameParameter, userNameParameter, passwordParameter, passwordSaltParameter, emailParameter, passwordQuestionParameter, passwordAnswerParameter, isApprovedParameter, currentTimeUtcParameter, createDateParameter, uniqueEmailParameter, passwordFormatParameter, userId);
165        }
166    
167        public virtual int aspnet_Membership_FindUsersByEmail(string applicationName, string emailToMatch, Nullable<int> pageIndex, Nullable<int> pageSize)
168        {
169            var applicationNameParameter = applicationName != null ?
170                new ObjectParameter("ApplicationName", applicationName) :
171                new ObjectParameter("ApplicationName", typeof(string));
172    
173            var emailToMatchParameter = emailToMatch != null ?
174                new ObjectParameter("EmailToMatch", emailToMatch) :
175                new ObjectParameter("EmailToMatch", typeof(string));
176    
177            var pageIndexParameter = pageIndex.HasValue ?
178                new ObjectParameter("PageIndex", pageIndex) :
179                new ObjectParameter("PageIndex", typeof(int));
180    
181            var pageSizeParameter = pageSize.HasValue ?
182                new ObjectParameter("PageSize", pageSize) :
183                new ObjectParameter("PageSize", typeof(int));
184    
185            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_FindUsersByEmail", applicationNameParameter, emailToMatchParameter, pageIndexParameter, pageSizeParameter);
186        }
187    
188        public virtual int aspnet_Membership_FindUsersByName(string applicationName, string userNameToMatch, Nullable<int> pageIndex, Nullable<int> pageSize)
189        {
190            var applicationNameParameter = applicationName != null ?
191                new ObjectParameter("ApplicationName", applicationName) :
192                new ObjectParameter("ApplicationName", typeof(string));
193    
194            var userNameToMatchParameter = userNameToMatch != null ?
195                new ObjectParameter("UserNameToMatch", userNameToMatch) :
196                new ObjectParameter("UserNameToMatch", typeof(string));
197    
198            var pageIndexParameter = pageIndex.HasValue ?
199                new ObjectParameter("PageIndex", pageIndex) :
200                new ObjectParameter("PageIndex", typeof(int));
201    
202            var pageSizeParameter = pageSize.HasValue ?
203                new ObjectParameter("PageSize", pageSize) :
204                new ObjectParameter("PageSize", typeof(int));
205    
206            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_FindUsersByName", applicationNameParameter, userNameToMatchParameter, pageIndexParameter, pageSizeParameter);
207        }
208    
209        public virtual int aspnet_Membership_GetAllUsers(string applicationName, Nullable<int> pageIndex, Nullable<int> pageSize)
210        {
211            var applicationNameParameter = applicationName != null ?
212                new ObjectParameter("ApplicationName", applicationName) :
213                new ObjectParameter("ApplicationName", typeof(string));
214    
215            var pageIndexParameter = pageIndex.HasValue ?
216                new ObjectParameter("PageIndex", pageIndex) :
217                new ObjectParameter("PageIndex", typeof(int));
218    
219            var pageSizeParameter = pageSize.HasValue ?
220                new ObjectParameter("PageSize", pageSize) :
221                new ObjectParameter("PageSize", typeof(int));
222    
223            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_GetAllUsers", applicationNameParameter, pageIndexParameter, pageSizeParameter);
224        }
225    
226        public virtual int aspnet_Membership_GetNumberOfUsersOnline(string applicationName, Nullable<int> minutesSinceLastInActive, Nullable<System.DateTime> currentTimeUtc)
227        {
228            var applicationNameParameter = applicationName != null ?
229                new ObjectParameter("ApplicationName", applicationName) :
230                new ObjectParameter("ApplicationName", typeof(string));
231    
232            var minutesSinceLastInActiveParameter = minutesSinceLastInActive.HasValue ?
233                new ObjectParameter("MinutesSinceLastInActive", minutesSinceLastInActive) :
234                new ObjectParameter("MinutesSinceLastInActive", typeof(int));
235    
236            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
237                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
238                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
239    
240            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_GetNumberOfUsersOnline", applicationNameParameter, minutesSinceLastInActiveParameter, currentTimeUtcParameter);
241        }
242    
243        public virtual ObjectResult<aspnet_Membership_GetPassword_Result> aspnet_Membership_GetPassword(string applicationName, string userName, Nullable<int> maxInvalidPasswordAttempts, Nullable<int> passwordAttemptWindow, Nullable<System.DateTime> currentTimeUtc, string passwordAnswer)
244        {
245            var applicationNameParameter = applicationName != null ?
246                new ObjectParameter("ApplicationName", applicationName) :
247                new ObjectParameter("ApplicationName", typeof(string));
248    
249            var userNameParameter = userName != null ?
250                new ObjectParameter("UserName", userName) :
251                new ObjectParameter("UserName", typeof(string));
252    
253            var maxInvalidPasswordAttemptsParameter = maxInvalidPasswordAttempts.HasValue ?
254                new ObjectParameter("MaxInvalidPasswordAttempts", maxInvalidPasswordAttempts) :
255                new ObjectParameter("MaxInvalidPasswordAttempts", typeof(int));
256    
257            var passwordAttemptWindowParameter = passwordAttemptWindow.HasValue ?
258                new ObjectParameter("PasswordAttemptWindow", passwordAttemptWindow) :
259                new ObjectParameter("PasswordAttemptWindow", typeof(int));
260    
261            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
262                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
263                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
264    
265            var passwordAnswerParameter = passwordAnswer != null ?
266                new ObjectParameter("PasswordAnswer", passwordAnswer) :
267                new ObjectParameter("PasswordAnswer", typeof(string));
268    
269            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetPassword_Result>("aspnet_Membership_GetPassword", applicationNameParameter, userNameParameter, maxInvalidPasswordAttemptsParameter, passwordAttemptWindowParameter, currentTimeUtcParameter, passwordAnswerParameter);
270        }
271    
272        public virtual ObjectResult<aspnet_Membership_GetPasswordWithFormat_Result> aspnet_Membership_GetPasswordWithFormat(string applicationName, string userName, Nullable<bool> updateLastLoginActivityDate, Nullable<System.DateTime> currentTimeUtc)
273        {
274            var applicationNameParameter = applicationName != null ?
275                new ObjectParameter("ApplicationName", applicationName) :
276                new ObjectParameter("ApplicationName", typeof(string));
277    
278            var userNameParameter = userName != null ?
279                new ObjectParameter("UserName", userName) :
280                new ObjectParameter("UserName", typeof(string));
281    
282            var updateLastLoginActivityDateParameter = updateLastLoginActivityDate.HasValue ?
283                new ObjectParameter("UpdateLastLoginActivityDate", updateLastLoginActivityDate) :
284                new ObjectParameter("UpdateLastLoginActivityDate", typeof(bool));
285    
286            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
287                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
288                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
289    
290            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetPasswordWithFormat_Result>("aspnet_Membership_GetPasswordWithFormat", applicationNameParameter, userNameParameter, updateLastLoginActivityDateParameter, currentTimeUtcParameter);
291        }
292    
293        public virtual ObjectResult<string> aspnet_Membership_GetUserByEmail(string applicationName, string email)
294        {
295            var applicationNameParameter = applicationName != null ?
296                new ObjectParameter("ApplicationName", applicationName) :
297                new ObjectParameter("ApplicationName", typeof(string));
298    
299            var emailParameter = email != null ?
300                new ObjectParameter("Email", email) :
301                new ObjectParameter("Email", typeof(string));
302    
303            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_Membership_GetUserByEmail", applicationNameParameter, emailParameter);
304        }
305    
306        public virtual ObjectResult<aspnet_Membership_GetUserByName_Result> aspnet_Membership_GetUserByName(string applicationName, string userName, Nullable<System.DateTime> currentTimeUtc, Nullable<bool> updateLastActivity)
307        {
308            var applicationNameParameter = applicationName != null ?
309                new ObjectParameter("ApplicationName", applicationName) :
310                new ObjectParameter("ApplicationName", typeof(string));
311    
312            var userNameParameter = userName != null ?
313                new ObjectParameter("UserName", userName) :
314                new ObjectParameter("UserName", typeof(string));
315    
316            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
317                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
318                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
319    
320            var updateLastActivityParameter = updateLastActivity.HasValue ?
321                new ObjectParameter("UpdateLastActivity", updateLastActivity) :
322                new ObjectParameter("UpdateLastActivity", typeof(bool));
323    
324            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetUserByName_Result>("aspnet_Membership_GetUserByName", applicationNameParameter, userNameParameter, currentTimeUtcParameter, updateLastActivityParameter);
325        }
326    
327        public virtual ObjectResult<aspnet_Membership_GetUserByUserId_Result> aspnet_Membership_GetUserByUserId(Nullable<System.Guid> userId, Nullable<System.DateTime> currentTimeUtc, Nullable<bool> updateLastActivity)
328        {
329            var userIdParameter = userId.HasValue ?
330                new ObjectParameter("UserId", userId) :
331                new ObjectParameter("UserId", typeof(System.Guid));
332    
333            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
334                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
335                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
336    
337            var updateLastActivityParameter = updateLastActivity.HasValue ?
338                new ObjectParameter("UpdateLastActivity", updateLastActivity) :
339                new ObjectParameter("UpdateLastActivity", typeof(bool));
340    
341            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetUserByUserId_Result>("aspnet_Membership_GetUserByUserId", userIdParameter, currentTimeUtcParameter, updateLastActivityParameter);
342        }
343    
344        public virtual int aspnet_Membership_ResetPassword(string applicationName, string userName, string newPassword, Nullable<int> maxInvalidPasswordAttempts, Nullable<int> passwordAttemptWindow, string passwordSalt, Nullable<System.DateTime> currentTimeUtc, Nullable<int> passwordFormat, string passwordAnswer)
345        {
346            var applicationNameParameter = applicationName != null ?
347                new ObjectParameter("ApplicationName", applicationName) :
348                new ObjectParameter("ApplicationName", typeof(string));
349    
350            var userNameParameter = userName != null ?
351                new ObjectParameter("UserName", userName) :
352                new ObjectParameter("UserName", typeof(string));
353    
354            var newPasswordParameter = newPassword != null ?
355                new ObjectParameter("NewPassword", newPassword) :
356                new ObjectParameter("NewPassword", typeof(string));
357    
358            var maxInvalidPasswordAttemptsParameter = maxInvalidPasswordAttempts.HasValue ?
359                new ObjectParameter("MaxInvalidPasswordAttempts", maxInvalidPasswordAttempts) :
360                new ObjectParameter("MaxInvalidPasswordAttempts", typeof(int));
361    
362            var passwordAttemptWindowParameter = passwordAttemptWindow.HasValue ?
363                new ObjectParameter("PasswordAttemptWindow", passwordAttemptWindow) :
364                new ObjectParameter("PasswordAttemptWindow", typeof(int));
365    
366            var passwordSaltParameter = passwordSalt != null ?
367                new ObjectParameter("PasswordSalt", passwordSalt) :
368                new ObjectParameter("PasswordSalt", typeof(string));
369    
370            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
371                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
372                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
373    
374            var passwordFormatParameter = passwordFormat.HasValue ?
375                new ObjectParameter("PasswordFormat", passwordFormat) :
376                new ObjectParameter("PasswordFormat", typeof(int));
377    
378            var passwordAnswerParameter = passwordAnswer != null ?
379                new ObjectParameter("PasswordAnswer", passwordAnswer) :
380                new ObjectParameter("PasswordAnswer", typeof(string));
381    
382            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_ResetPassword", applicationNameParameter, userNameParameter, newPasswordParameter, maxInvalidPasswordAttemptsParameter, passwordAttemptWindowParameter, passwordSaltParameter, currentTimeUtcParameter, passwordFormatParameter, passwordAnswerParameter);
383        }
384    
385        public virtual int aspnet_Membership_SetPassword(string applicationName, string userName, string newPassword, string passwordSalt, Nullable<System.DateTime> currentTimeUtc, Nullable<int> passwordFormat)
386        {
387            var applicationNameParameter = applicationName != null ?
388                new ObjectParameter("ApplicationName", applicationName) :
389                new ObjectParameter("ApplicationName", typeof(string));
390    
391            var userNameParameter = userName != null ?
392                new ObjectParameter("UserName", userName) :
393                new ObjectParameter("UserName", typeof(string));
394    
395            var newPasswordParameter = newPassword != null ?
396                new ObjectParameter("NewPassword", newPassword) :
397                new ObjectParameter("NewPassword", typeof(string));
398    
399            var passwordSaltParameter = passwordSalt != null ?
400                new ObjectParameter("PasswordSalt", passwordSalt) :
401                new ObjectParameter("PasswordSalt", typeof(string));
402    
403            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
404                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
405                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
406    
407            var passwordFormatParameter = passwordFormat.HasValue ?
408                new ObjectParameter("PasswordFormat", passwordFormat) :
409                new ObjectParameter("PasswordFormat", typeof(int));
410    
411            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_SetPassword", applicationNameParameter, userNameParameter, newPasswordParameter, passwordSaltParameter, currentTimeUtcParameter, passwordFormatParameter);
412        }
413    
414        public virtual int aspnet_Membership_UnlockUser(string applicationName, string userName)
415        {
416            var applicationNameParameter = applicationName != null ?
417                new ObjectParameter("ApplicationName", applicationName) :
418                new ObjectParameter("ApplicationName", typeof(string));
419    
420            var userNameParameter = userName != null ?
421                new ObjectParameter("UserName", userName) :
422                new ObjectParameter("UserName", typeof(string));
423    
424            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_UnlockUser", applicationNameParameter, userNameParameter);
425        }
426    
427        public virtual int aspnet_Membership_UpdateUser(string applicationName, string userName, string email, string comment, Nullable<bool> isApproved, Nullable<System.DateTime> lastLoginDate, Nullable<System.DateTime> lastActivityDate, Nullable<int> uniqueEmail, Nullable<System.DateTime> currentTimeUtc)
428        {
429            var applicationNameParameter = applicationName != null ?
430                new ObjectParameter("ApplicationName", applicationName) :
431                new ObjectParameter("ApplicationName", typeof(string));
432    
433            var userNameParameter = userName != null ?
434                new ObjectParameter("UserName", userName) :
435                new ObjectParameter("UserName", typeof(string));
436    
437            var emailParameter = email != null ?
438                new ObjectParameter("Email", email) :
439                new ObjectParameter("Email", typeof(string));
440    
441            var commentParameter = comment != null ?
442                new ObjectParameter("Comment", comment) :
443                new ObjectParameter("Comment", typeof(string));
444    
445            var isApprovedParameter = isApproved.HasValue ?
446                new ObjectParameter("IsApproved", isApproved) :
447                new ObjectParameter("IsApproved", typeof(bool));
448    
449            var lastLoginDateParameter = lastLoginDate.HasValue ?
450                new ObjectParameter("LastLoginDate", lastLoginDate) :
451                new ObjectParameter("LastLoginDate", typeof(System.DateTime));
452    
453            var lastActivityDateParameter = lastActivityDate.HasValue ?
454                new ObjectParameter("LastActivityDate", lastActivityDate) :
455                new ObjectParameter("LastActivityDate", typeof(System.DateTime));
456    
457            var uniqueEmailParameter = uniqueEmail.HasValue ?
458                new ObjectParameter("UniqueEmail", uniqueEmail) :
459                new ObjectParameter("UniqueEmail", typeof(int));
460    
461            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
462                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
463                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
464    
465            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_UpdateUser", applicationNameParameter, userNameParameter, emailParameter, commentParameter, isApprovedParameter, lastLoginDateParameter, lastActivityDateParameter, uniqueEmailParameter, currentTimeUtcParameter);
466        }
467    
468        public virtual int aspnet_Membership_UpdateUserInfo(string applicationName, string userName, Nullable<bool> isPasswordCorrect, Nullable<bool> updateLastLoginActivityDate, Nullable<int> maxInvalidPasswordAttempts, Nullable<int> passwordAttemptWindow, Nullable<System.DateTime> currentTimeUtc, Nullable<System.DateTime> lastLoginDate, Nullable<System.DateTime> lastActivityDate)
469        {
470            var applicationNameParameter = applicationName != null ?
471                new ObjectParameter("ApplicationName", applicationName) :
472                new ObjectParameter("ApplicationName", typeof(string));
473    
474            var userNameParameter = userName != null ?
475                new ObjectParameter("UserName", userName) :
476                new ObjectParameter("UserName", typeof(string));
477    
478            var isPasswordCorrectParameter = isPasswordCorrect.HasValue ?
479                new ObjectParameter("IsPasswordCorrect", isPasswordCorrect) :
480                new ObjectParameter("IsPasswordCorrect", typeof(bool));
481    
482            var updateLastLoginActivityDateParameter = updateLastLoginActivityDate.HasValue ?
483                new ObjectParameter("UpdateLastLoginActivityDate", updateLastLoginActivityDate) :
484                new ObjectParameter("UpdateLastLoginActivityDate", typeof(bool));
485    
486            var maxInvalidPasswordAttemptsParameter = maxInvalidPasswordAttempts.HasValue ?
487                new ObjectParameter("MaxInvalidPasswordAttempts", maxInvalidPasswordAttempts) :
488                new ObjectParameter("MaxInvalidPasswordAttempts", typeof(int));
489    
490            var passwordAttemptWindowParameter = passwordAttemptWindow.HasValue ?
491                new ObjectParameter("PasswordAttemptWindow", passwordAttemptWindow) :
492                new ObjectParameter("PasswordAttemptWindow", typeof(int));
493    
494            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
495                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
496                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
497    
498            var lastLoginDateParameter = lastLoginDate.HasValue ?
499                new ObjectParameter("LastLoginDate", lastLoginDate) :
500                new ObjectParameter("LastLoginDate", typeof(System.DateTime));
501    
502            var lastActivityDateParameter = lastActivityDate.HasValue ?
503                new ObjectParameter("LastActivityDate", lastActivityDate) :
504                new ObjectParameter("LastActivityDate", typeof(System.DateTime));
505    
506            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_UpdateUserInfo", applicationNameParameter, userNameParameter, isPasswordCorrectParameter, updateLastLoginActivityDateParameter, maxInvalidPasswordAttemptsParameter, passwordAttemptWindowParameter, currentTimeUtcParameter, lastLoginDateParameter, lastActivityDateParameter);
507        }
508    
509        public virtual int aspnet_Paths_CreatePath(Nullable<System.Guid> applicationId, string path, ObjectParameter pathId)
510        {
511            var applicationIdParameter = applicationId.HasValue ?
512                new ObjectParameter("ApplicationId", applicationId) :
513                new ObjectParameter("ApplicationId", typeof(System.Guid));
514    
515            var pathParameter = path != null ?
516                new ObjectParameter("Path", path) :
517                new ObjectParameter("Path", typeof(string));
518    
519            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Paths_CreatePath", applicationIdParameter, pathParameter, pathId);
520        }
521    
522        public virtual int aspnet_Personalization_GetApplicationId(string applicationName, ObjectParameter applicationId)
523        {
524            var applicationNameParameter = applicationName != null ?
525                new ObjectParameter("ApplicationName", applicationName) :
526                new ObjectParameter("ApplicationName", typeof(string));
527    
528            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Personalization_GetApplicationId", applicationNameParameter, applicationId);
529        }
530    
531        public virtual int aspnet_PersonalizationAdministration_DeleteAllState(Nullable<bool> allUsersScope, string applicationName, ObjectParameter count)
532        {
533            var allUsersScopeParameter = allUsersScope.HasValue ?
534                new ObjectParameter("AllUsersScope", allUsersScope) :
535                new ObjectParameter("AllUsersScope", typeof(bool));
536    
537            var applicationNameParameter = applicationName != null ?
538                new ObjectParameter("ApplicationName", applicationName) :
539                new ObjectParameter("ApplicationName", typeof(string));
540    
541            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_DeleteAllState", allUsersScopeParameter, applicationNameParameter, count);
542        }
543    
544        public virtual int aspnet_PersonalizationAdministration_FindState(Nullable<bool> allUsersScope, string applicationName, Nullable<int> pageIndex, Nullable<int> pageSize, string path, string userName, Nullable<System.DateTime> inactiveSinceDate)
545        {
546            var allUsersScopeParameter = allUsersScope.HasValue ?
547                new ObjectParameter("AllUsersScope", allUsersScope) :
548                new ObjectParameter("AllUsersScope", typeof(bool));
549    
550            var applicationNameParameter = applicationName != null ?
551                new ObjectParameter("ApplicationName", applicationName) :
552                new ObjectParameter("ApplicationName", typeof(string));
553    
554            var pageIndexParameter = pageIndex.HasValue ?
555                new ObjectParameter("PageIndex", pageIndex) :
556                new ObjectParameter("PageIndex", typeof(int));
557    
558            var pageSizeParameter = pageSize.HasValue ?
559                new ObjectParameter("PageSize", pageSize) :
560                new ObjectParameter("PageSize", typeof(int));
561    
562            var pathParameter = path != null ?
563                new ObjectParameter("Path", path) :
564                new ObjectParameter("Path", typeof(string));
565    
566            var userNameParameter = userName != null ?
567                new ObjectParameter("UserName", userName) :
568                new ObjectParameter("UserName", typeof(string));
569    
570            var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
571                new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
572                new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
573    
574            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_FindState", allUsersScopeParameter, applicationNameParameter, pageIndexParameter, pageSizeParameter, pathParameter, userNameParameter, inactiveSinceDateParameter);
575        }
576    
577        public virtual int aspnet_PersonalizationAdministration_GetCountOfState(ObjectParameter count, Nullable<bool> allUsersScope, string applicationName, string path, string userName, Nullable<System.DateTime> inactiveSinceDate)
578        {
579            var allUsersScopeParameter = allUsersScope.HasValue ?
580                new ObjectParameter("AllUsersScope", allUsersScope) :
581                new ObjectParameter("AllUsersScope", typeof(bool));
582    
583            var applicationNameParameter = applicationName != null ?
584                new ObjectParameter("ApplicationName", applicationName) :
585                new ObjectParameter("ApplicationName", typeof(string));
586    
587            var pathParameter = path != null ?
588                new ObjectParameter("Path", path) :
589                new ObjectParameter("Path", typeof(string));
590    
591            var userNameParameter = userName != null ?
592                new ObjectParameter("UserName", userName) :
593                new ObjectParameter("UserName", typeof(string));
594    
595            var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
596                new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
597                new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
598    
599            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_GetCountOfState", count, allUsersScopeParameter, applicationNameParameter, pathParameter, userNameParameter, inactiveSinceDateParameter);
600        }
601    
602        public virtual int aspnet_PersonalizationAdministration_ResetSharedState(ObjectParameter count, string applicationName, string path)
603        {
604            var applicationNameParameter = applicationName != null ?
605                new ObjectParameter("ApplicationName", applicationName) :
606                new ObjectParameter("ApplicationName", typeof(string));
607    
608            var pathParameter = path != null ?
609                new ObjectParameter("Path", path) :
610                new ObjectParameter("Path", typeof(string));
611    
612            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_ResetSharedState", count, applicationNameParameter, pathParameter);
613        }
614    
615        public virtual int aspnet_PersonalizationAdministration_ResetUserState(ObjectParameter count, string applicationName, Nullable<System.DateTime> inactiveSinceDate, string userName, string path)
616        {
617            var applicationNameParameter = applicationName != null ?
618                new ObjectParameter("ApplicationName", applicationName) :
619                new ObjectParameter("ApplicationName", typeof(string));
620    
621            var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
622                new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
623                new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
624    
625            var userNameParameter = userName != null ?
626                new ObjectParameter("UserName", userName) :
627                new ObjectParameter("UserName", typeof(string));
628    
629            var pathParameter = path != null ?
630                new ObjectParameter("Path", path) :
631                new ObjectParameter("Path", typeof(string));
632    
633            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_ResetUserState", count, applicationNameParameter, inactiveSinceDateParameter, userNameParameter, pathParameter);
634        }
635    
636        public virtual ObjectResult<byte[]> aspnet_PersonalizationAllUsers_GetPageSettings(string applicationName, string path)
637        {
638            var applicationNameParameter = applicationName != null ?
639                new ObjectParameter("ApplicationName", applicationName) :
640                new ObjectParameter("ApplicationName", typeof(string));
641    
642            var pathParameter = path != null ?
643                new ObjectParameter("Path", path) :
644                new ObjectParameter("Path", typeof(string));
645    
646            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<byte[]>("aspnet_PersonalizationAllUsers_GetPageSettings", applicationNameParameter, pathParameter);
647        }
648    
649        public virtual int aspnet_PersonalizationAllUsers_ResetPageSettings(string applicationName, string path)
650        {
651            var applicationNameParameter = applicationName != null ?
652                new ObjectParameter("ApplicationName", applicationName) :
653                new ObjectParameter("ApplicationName", typeof(string));
654    
655            var pathParameter = path != null ?
656                new ObjectParameter("Path", path) :
657                new ObjectParameter("Path", typeof(string));
658    
659            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAllUsers_ResetPageSettings", applicationNameParameter, pathParameter);
660        }
661    
662        public virtual int aspnet_PersonalizationAllUsers_SetPageSettings(string applicationName, string path, byte[] pageSettings, Nullable<System.DateTime> currentTimeUtc)
663        {
664            var applicationNameParameter = applicationName != null ?
665                new ObjectParameter("ApplicationName", applicationName) :
666                new ObjectParameter("ApplicationName", typeof(string));
667    
668            var pathParameter = path != null ?
669                new ObjectParameter("Path", path) :
670                new ObjectParameter("Path", typeof(string));
671    
672            var pageSettingsParameter = pageSettings != null ?
673                new ObjectParameter("PageSettings", pageSettings) :
674                new ObjectParameter("PageSettings", typeof(byte[]));
675    
676            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
677                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
678                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
679    
680            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAllUsers_SetPageSettings", applicationNameParameter, pathParameter, pageSettingsParameter, currentTimeUtcParameter);
681        }
682    
683        public virtual ObjectResult<byte[]> aspnet_PersonalizationPerUser_GetPageSettings(string applicationName, string userName, string path, Nullable<System.DateTime> currentTimeUtc)
684        {
685            var applicationNameParameter = applicationName != null ?
686                new ObjectParameter("ApplicationName", applicationName) :
687                new ObjectParameter("ApplicationName", typeof(string));
688    
689            var userNameParameter = userName != null ?
690                new ObjectParameter("UserName", userName) :
691                new ObjectParameter("UserName", typeof(string));
692    
693            var pathParameter = path != null ?
694                new ObjectParameter("Path", path) :
695                new ObjectParameter("Path", typeof(string));
696    
697            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
698                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
699                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
700    
701            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<byte[]>("aspnet_PersonalizationPerUser_GetPageSettings", applicationNameParameter, userNameParameter, pathParameter, currentTimeUtcParameter);
702        }
703    
704        public virtual int aspnet_PersonalizationPerUser_ResetPageSettings(string applicationName, string userName, string path, Nullable<System.DateTime> currentTimeUtc)
705        {
706            var applicationNameParameter = applicationName != null ?
707                new ObjectParameter("ApplicationName", applicationName) :
708                new ObjectParameter("ApplicationName", typeof(string));
709    
710            var userNameParameter = userName != null ?
711                new ObjectParameter("UserName", userName) :
712                new ObjectParameter("UserName", typeof(string));
713    
714            var pathParameter = path != null ?
715                new ObjectParameter("Path", path) :
716                new ObjectParameter("Path", typeof(string));
717    
718            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
719                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
720                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
721    
722            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationPerUser_ResetPageSettings", applicationNameParameter, userNameParameter, pathParameter, currentTimeUtcParameter);
723        }
724    
725        public virtual int aspnet_PersonalizationPerUser_SetPageSettings(string applicationName, string userName, string path, byte[] pageSettings, Nullable<System.DateTime> currentTimeUtc)
726        {
727            var applicationNameParameter = applicationName != null ?
728                new ObjectParameter("ApplicationName", applicationName) :
729                new ObjectParameter("ApplicationName", typeof(string));
730    
731            var userNameParameter = userName != null ?
732                new ObjectParameter("UserName", userName) :
733                new ObjectParameter("UserName", typeof(string));
734    
735            var pathParameter = path != null ?
736                new ObjectParameter("Path", path) :
737                new ObjectParameter("Path", typeof(string));
738    
739            var pageSettingsParameter = pageSettings != null ?
740                new ObjectParameter("PageSettings", pageSettings) :
741                new ObjectParameter("PageSettings", typeof(byte[]));
742    
743            var currentTimeUtcParameter = currentTimeUtc.HasValue ?
744                new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
745                new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
746    
747            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationPerUser_SetPageSettings", applicationNameParameter, userNameParameter, pathParameter, pageSettingsParameter, currentTimeUtcParameter);
748        }
749    
750        public virtual ObjectResult<Nullable<int>> aspnet_Profile_DeleteInactiveProfiles(string applicationName, Nullable<int> profileAuthOptions, Nullable<System.DateTime> inactiveSinceDate)
751        {
752            var applicationNameParameter = applicationName != null ?
753                new ObjectParameter("ApplicationName", applicationName) :
754                new ObjectParameter("ApplicationName", typeof(string));
755    
756            var profileAuthOptionsParameter = profileAuthOptions.HasValue ?
757                new ObjectParameter("ProfileAuthOptions", profileAuthOptions) :
758                new ObjectParameter("ProfileAuthOptions", typeof(int));
759    
760            var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
761                new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
762                new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
763    
764            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("aspnet_Profile_DeleteInactiveProfiles", applicationNameParameter, profileAuthOptionsParameter, inactiveSinceDateParameter);
765        }
766    
767        public virtual ObjectResult<Nullable<int>> aspnet_Profile_DeleteProfiles(string applicationName, string userNames)
768        {
769            var applicationNameParameter = applicationName != null ?
770                new ObjectParameter("ApplicationName", applicationName) :
771                new ObjectParameter("ApplicationName", typeof(string));
772    
773            var userNamesParameter = userNames != null ?
774                new ObjectParameter("UserNames", userNames) :
775                new ObjectParameter("UserNames", typeof(string));
776    
777            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("aspnet_Profile_DeleteProfiles", applicationNameParameter, userNamesParameter);
778        }
779    
780        public virtual ObjectResult<Nullable<int>> aspnet_Profile_GetNumberOfInactiveProfiles(string applicationName, Nullable<int> profileAuthOptions, Nullable<System.DateTime> inactiveSinceDate)
781        {
782            var applicationNameParameter = applicationName != null ?
783                new ObjectParameter("ApplicationName", applicationName) :
784                new ObjectParameter("ApplicationName", typeof(string));
785    
786            var profileAuthOptionsParameter = profileAuthOptions.HasValue ?
787                new ObjectParameter("ProfileAuthOptions", profileAuthOptions) :
788                new ObjectParameter("ProfileAuthOptions", typeof(int));
789    
790            var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
791                new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
792                new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
793    
794            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("aspnet_Profile_GetNumberOfInactiveProfiles", applicationNameParameter, profileAuthOptionsParameter, inactiveSinceDateParameter);
795        }
796    
797        public virtual int aspnet_Profile_GetProfiles(string applicationName, Nullable<int> profileAuthOptions, Nullable<int> pageIndex, Nullable<int> pageSize, string userNameToMatch, Nullable<System.DateTime> inactiveSinceDate)
798        {
799            var applicationNameParameter = applicationName != null ?
800                new ObjectParameter("ApplicationName", applicationName) :
801                new ObjectParameter("ApplicationName", typeof(string));
802    
803            var profileAuthOptionsParameter = profileAuthOptions.HasValue ?
804                new ObjectParameter("ProfileAuthOptions", profileAuthOptions) :
805                new ObjectParameter("ProfileAuthOptions", typeof(int));
806    
807            var pageIndexParameter = pageIndex.HasValue ?
808                new ObjectParameter("PageIndex", pageIndex) :
809                new ObjectParameter("PageIndex", typeof(int));
810    
811            var pageSizeParameter = pageSize.HasValue ?
812                new ObjectParameter("PageSize", pageSize) :
813                new ObjectParameter("PageSize", typeof(int));
814    
815            var userNameToMatchParameter = userNameToMatch != null ?
816                new ObjectParameter("UserNameToMatch", userNameToMatch) :
817                new ObjectParameter("UserNameToMatch", typeof(string));
818    
819            var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
820                new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
821                new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
822    
823            return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Profile_GetProfiles", applicationNameParameter, profileAuthOptionsParameter, pageIndexParameter, pageSizeParameter, userNameToMatchParameter, inactiveSinceDateParameter);
824        }
825    
826        public virtual ObjectResult<aspnet_Profile_GetProperties_Result> aspnet_Profile_GetProperties(string applicationName, string userName, Nullable<System.DateTime> currentTimeUtc)
827        {
828            var applicationNameParameter = appl

Large files files are truncated, but you can click here to view the full file