PageRenderTime 55ms CodeModel.GetById 21ms RepoModel.GetById 1ms 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. namespace OJS.Tools.OldDatabaseMigration
  10. {
  11. using System;
  12. using System.Data.Entity;
  13. using System.Data.Entity.Infrastructure;
  14. using System.Data.Entity.Core.Objects;
  15. using System.Linq;
  16. public partial class TelerikContestSystemEntities : DbContext
  17. {
  18. public TelerikContestSystemEntities()
  19. : base("name=TelerikContestSystemEntities")
  20. {
  21. }
  22. protected override void OnModelCreating(DbModelBuilder modelBuilder)
  23. {
  24. throw new UnintentionalCodeFirstException();
  25. }
  26. public DbSet<aspnet_Applications> aspnet_Applications { get; set; }
  27. public DbSet<aspnet_Membership> aspnet_Membership { get; set; }
  28. public DbSet<aspnet_Paths> aspnet_Paths { get; set; }
  29. public DbSet<aspnet_PersonalizationAllUsers> aspnet_PersonalizationAllUsers { get; set; }
  30. public DbSet<aspnet_PersonalizationPerUser> aspnet_PersonalizationPerUser { get; set; }
  31. public DbSet<aspnet_Profile> aspnet_Profile { get; set; }
  32. public DbSet<aspnet_Roles> aspnet_Roles { get; set; }
  33. public DbSet<aspnet_SchemaVersions> aspnet_SchemaVersions { get; set; }
  34. public DbSet<aspnet_Users> aspnet_Users { get; set; }
  35. public DbSet<aspnet_WebEvent_Events> aspnet_WebEvent_Events { get; set; }
  36. public DbSet<BugReport> BugReports { get; set; }
  37. public DbSet<Checker> Checkers { get; set; }
  38. public DbSet<Contest> Contests { get; set; }
  39. public DbSet<ContestType> ContestTypes { get; set; }
  40. public DbSet<News> News { get; set; }
  41. public DbSet<Participant> Participants { get; set; }
  42. public DbSet<Setting> Settings { get; set; }
  43. public DbSet<Submission> Submissions { get; set; }
  44. public DbSet<sysdiagram> sysdiagrams { get; set; }
  45. public DbSet<Task> Tasks { get; set; }
  46. public DbSet<Test> Tests { get; set; }
  47. public DbSet<User> Users { get; set; }
  48. public DbSet<vw_aspnet_Applications> vw_aspnet_Applications { get; set; }
  49. public DbSet<vw_aspnet_MembershipUsers> vw_aspnet_MembershipUsers { get; set; }
  50. public DbSet<vw_aspnet_Profiles> vw_aspnet_Profiles { get; set; }
  51. public DbSet<vw_aspnet_Roles> vw_aspnet_Roles { get; set; }
  52. public DbSet<vw_aspnet_Users> vw_aspnet_Users { get; set; }
  53. public DbSet<vw_aspnet_UsersInRoles> vw_aspnet_UsersInRoles { get; set; }
  54. public DbSet<vw_aspnet_WebPartState_Paths> vw_aspnet_WebPartState_Paths { get; set; }
  55. public DbSet<vw_aspnet_WebPartState_Shared> vw_aspnet_WebPartState_Shared { get; set; }
  56. public DbSet<vw_aspnet_WebPartState_User> vw_aspnet_WebPartState_User { get; set; }
  57. public virtual ObjectResult<string> aspnet_AnyDataInTables(Nullable<int> tablesToCheck)
  58. {
  59. var tablesToCheckParameter = tablesToCheck.HasValue ?
  60. new ObjectParameter("TablesToCheck", tablesToCheck) :
  61. new ObjectParameter("TablesToCheck", typeof(int));
  62. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_AnyDataInTables", tablesToCheckParameter);
  63. }
  64. public virtual int aspnet_Applications_CreateApplication(string applicationName, ObjectParameter applicationId)
  65. {
  66. var applicationNameParameter = applicationName != null ?
  67. new ObjectParameter("ApplicationName", applicationName) :
  68. new ObjectParameter("ApplicationName", typeof(string));
  69. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Applications_CreateApplication", applicationNameParameter, applicationId);
  70. }
  71. public virtual int aspnet_CheckSchemaVersion(string feature, string compatibleSchemaVersion)
  72. {
  73. var featureParameter = feature != null ?
  74. new ObjectParameter("Feature", feature) :
  75. new ObjectParameter("Feature", typeof(string));
  76. var compatibleSchemaVersionParameter = compatibleSchemaVersion != null ?
  77. new ObjectParameter("CompatibleSchemaVersion", compatibleSchemaVersion) :
  78. new ObjectParameter("CompatibleSchemaVersion", typeof(string));
  79. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_CheckSchemaVersion", featureParameter, compatibleSchemaVersionParameter);
  80. }
  81. public virtual int aspnet_Membership_ChangePasswordQuestionAndAnswer(string applicationName, string userName, string newPasswordQuestion, string newPasswordAnswer)
  82. {
  83. var applicationNameParameter = applicationName != null ?
  84. new ObjectParameter("ApplicationName", applicationName) :
  85. new ObjectParameter("ApplicationName", typeof(string));
  86. var userNameParameter = userName != null ?
  87. new ObjectParameter("UserName", userName) :
  88. new ObjectParameter("UserName", typeof(string));
  89. var newPasswordQuestionParameter = newPasswordQuestion != null ?
  90. new ObjectParameter("NewPasswordQuestion", newPasswordQuestion) :
  91. new ObjectParameter("NewPasswordQuestion", typeof(string));
  92. var newPasswordAnswerParameter = newPasswordAnswer != null ?
  93. new ObjectParameter("NewPasswordAnswer", newPasswordAnswer) :
  94. new ObjectParameter("NewPasswordAnswer", typeof(string));
  95. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_ChangePasswordQuestionAndAnswer", applicationNameParameter, userNameParameter, newPasswordQuestionParameter, newPasswordAnswerParameter);
  96. }
  97. 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)
  98. {
  99. var applicationNameParameter = applicationName != null ?
  100. new ObjectParameter("ApplicationName", applicationName) :
  101. new ObjectParameter("ApplicationName", typeof(string));
  102. var userNameParameter = userName != null ?
  103. new ObjectParameter("UserName", userName) :
  104. new ObjectParameter("UserName", typeof(string));
  105. var passwordParameter = password != null ?
  106. new ObjectParameter("Password", password) :
  107. new ObjectParameter("Password", typeof(string));
  108. var passwordSaltParameter = passwordSalt != null ?
  109. new ObjectParameter("PasswordSalt", passwordSalt) :
  110. new ObjectParameter("PasswordSalt", typeof(string));
  111. var emailParameter = email != null ?
  112. new ObjectParameter("Email", email) :
  113. new ObjectParameter("Email", typeof(string));
  114. var passwordQuestionParameter = passwordQuestion != null ?
  115. new ObjectParameter("PasswordQuestion", passwordQuestion) :
  116. new ObjectParameter("PasswordQuestion", typeof(string));
  117. var passwordAnswerParameter = passwordAnswer != null ?
  118. new ObjectParameter("PasswordAnswer", passwordAnswer) :
  119. new ObjectParameter("PasswordAnswer", typeof(string));
  120. var isApprovedParameter = isApproved.HasValue ?
  121. new ObjectParameter("IsApproved", isApproved) :
  122. new ObjectParameter("IsApproved", typeof(bool));
  123. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  124. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  125. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  126. var createDateParameter = createDate.HasValue ?
  127. new ObjectParameter("CreateDate", createDate) :
  128. new ObjectParameter("CreateDate", typeof(System.DateTime));
  129. var uniqueEmailParameter = uniqueEmail.HasValue ?
  130. new ObjectParameter("UniqueEmail", uniqueEmail) :
  131. new ObjectParameter("UniqueEmail", typeof(int));
  132. var passwordFormatParameter = passwordFormat.HasValue ?
  133. new ObjectParameter("PasswordFormat", passwordFormat) :
  134. new ObjectParameter("PasswordFormat", typeof(int));
  135. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_CreateUser", applicationNameParameter, userNameParameter, passwordParameter, passwordSaltParameter, emailParameter, passwordQuestionParameter, passwordAnswerParameter, isApprovedParameter, currentTimeUtcParameter, createDateParameter, uniqueEmailParameter, passwordFormatParameter, userId);
  136. }
  137. public virtual int aspnet_Membership_FindUsersByEmail(string applicationName, string emailToMatch, Nullable<int> pageIndex, Nullable<int> pageSize)
  138. {
  139. var applicationNameParameter = applicationName != null ?
  140. new ObjectParameter("ApplicationName", applicationName) :
  141. new ObjectParameter("ApplicationName", typeof(string));
  142. var emailToMatchParameter = emailToMatch != null ?
  143. new ObjectParameter("EmailToMatch", emailToMatch) :
  144. new ObjectParameter("EmailToMatch", typeof(string));
  145. var pageIndexParameter = pageIndex.HasValue ?
  146. new ObjectParameter("PageIndex", pageIndex) :
  147. new ObjectParameter("PageIndex", typeof(int));
  148. var pageSizeParameter = pageSize.HasValue ?
  149. new ObjectParameter("PageSize", pageSize) :
  150. new ObjectParameter("PageSize", typeof(int));
  151. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_FindUsersByEmail", applicationNameParameter, emailToMatchParameter, pageIndexParameter, pageSizeParameter);
  152. }
  153. public virtual int aspnet_Membership_FindUsersByName(string applicationName, string userNameToMatch, Nullable<int> pageIndex, Nullable<int> pageSize)
  154. {
  155. var applicationNameParameter = applicationName != null ?
  156. new ObjectParameter("ApplicationName", applicationName) :
  157. new ObjectParameter("ApplicationName", typeof(string));
  158. var userNameToMatchParameter = userNameToMatch != null ?
  159. new ObjectParameter("UserNameToMatch", userNameToMatch) :
  160. new ObjectParameter("UserNameToMatch", typeof(string));
  161. var pageIndexParameter = pageIndex.HasValue ?
  162. new ObjectParameter("PageIndex", pageIndex) :
  163. new ObjectParameter("PageIndex", typeof(int));
  164. var pageSizeParameter = pageSize.HasValue ?
  165. new ObjectParameter("PageSize", pageSize) :
  166. new ObjectParameter("PageSize", typeof(int));
  167. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_FindUsersByName", applicationNameParameter, userNameToMatchParameter, pageIndexParameter, pageSizeParameter);
  168. }
  169. public virtual int aspnet_Membership_GetAllUsers(string applicationName, Nullable<int> pageIndex, Nullable<int> pageSize)
  170. {
  171. var applicationNameParameter = applicationName != null ?
  172. new ObjectParameter("ApplicationName", applicationName) :
  173. new ObjectParameter("ApplicationName", typeof(string));
  174. var pageIndexParameter = pageIndex.HasValue ?
  175. new ObjectParameter("PageIndex", pageIndex) :
  176. new ObjectParameter("PageIndex", typeof(int));
  177. var pageSizeParameter = pageSize.HasValue ?
  178. new ObjectParameter("PageSize", pageSize) :
  179. new ObjectParameter("PageSize", typeof(int));
  180. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_GetAllUsers", applicationNameParameter, pageIndexParameter, pageSizeParameter);
  181. }
  182. public virtual int aspnet_Membership_GetNumberOfUsersOnline(string applicationName, Nullable<int> minutesSinceLastInActive, Nullable<System.DateTime> currentTimeUtc)
  183. {
  184. var applicationNameParameter = applicationName != null ?
  185. new ObjectParameter("ApplicationName", applicationName) :
  186. new ObjectParameter("ApplicationName", typeof(string));
  187. var minutesSinceLastInActiveParameter = minutesSinceLastInActive.HasValue ?
  188. new ObjectParameter("MinutesSinceLastInActive", minutesSinceLastInActive) :
  189. new ObjectParameter("MinutesSinceLastInActive", typeof(int));
  190. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  191. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  192. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  193. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_GetNumberOfUsersOnline", applicationNameParameter, minutesSinceLastInActiveParameter, currentTimeUtcParameter);
  194. }
  195. 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)
  196. {
  197. var applicationNameParameter = applicationName != null ?
  198. new ObjectParameter("ApplicationName", applicationName) :
  199. new ObjectParameter("ApplicationName", typeof(string));
  200. var userNameParameter = userName != null ?
  201. new ObjectParameter("UserName", userName) :
  202. new ObjectParameter("UserName", typeof(string));
  203. var maxInvalidPasswordAttemptsParameter = maxInvalidPasswordAttempts.HasValue ?
  204. new ObjectParameter("MaxInvalidPasswordAttempts", maxInvalidPasswordAttempts) :
  205. new ObjectParameter("MaxInvalidPasswordAttempts", typeof(int));
  206. var passwordAttemptWindowParameter = passwordAttemptWindow.HasValue ?
  207. new ObjectParameter("PasswordAttemptWindow", passwordAttemptWindow) :
  208. new ObjectParameter("PasswordAttemptWindow", typeof(int));
  209. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  210. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  211. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  212. var passwordAnswerParameter = passwordAnswer != null ?
  213. new ObjectParameter("PasswordAnswer", passwordAnswer) :
  214. new ObjectParameter("PasswordAnswer", typeof(string));
  215. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetPassword_Result>("aspnet_Membership_GetPassword", applicationNameParameter, userNameParameter, maxInvalidPasswordAttemptsParameter, passwordAttemptWindowParameter, currentTimeUtcParameter, passwordAnswerParameter);
  216. }
  217. public virtual ObjectResult<aspnet_Membership_GetPasswordWithFormat_Result> aspnet_Membership_GetPasswordWithFormat(string applicationName, string userName, Nullable<bool> updateLastLoginActivityDate, Nullable<System.DateTime> currentTimeUtc)
  218. {
  219. var applicationNameParameter = applicationName != null ?
  220. new ObjectParameter("ApplicationName", applicationName) :
  221. new ObjectParameter("ApplicationName", typeof(string));
  222. var userNameParameter = userName != null ?
  223. new ObjectParameter("UserName", userName) :
  224. new ObjectParameter("UserName", typeof(string));
  225. var updateLastLoginActivityDateParameter = updateLastLoginActivityDate.HasValue ?
  226. new ObjectParameter("UpdateLastLoginActivityDate", updateLastLoginActivityDate) :
  227. new ObjectParameter("UpdateLastLoginActivityDate", typeof(bool));
  228. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  229. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  230. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  231. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetPasswordWithFormat_Result>("aspnet_Membership_GetPasswordWithFormat", applicationNameParameter, userNameParameter, updateLastLoginActivityDateParameter, currentTimeUtcParameter);
  232. }
  233. public virtual ObjectResult<string> aspnet_Membership_GetUserByEmail(string applicationName, string email)
  234. {
  235. var applicationNameParameter = applicationName != null ?
  236. new ObjectParameter("ApplicationName", applicationName) :
  237. new ObjectParameter("ApplicationName", typeof(string));
  238. var emailParameter = email != null ?
  239. new ObjectParameter("Email", email) :
  240. new ObjectParameter("Email", typeof(string));
  241. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_Membership_GetUserByEmail", applicationNameParameter, emailParameter);
  242. }
  243. public virtual ObjectResult<aspnet_Membership_GetUserByName_Result> aspnet_Membership_GetUserByName(string applicationName, string userName, Nullable<System.DateTime> currentTimeUtc, Nullable<bool> updateLastActivity)
  244. {
  245. var applicationNameParameter = applicationName != null ?
  246. new ObjectParameter("ApplicationName", applicationName) :
  247. new ObjectParameter("ApplicationName", typeof(string));
  248. var userNameParameter = userName != null ?
  249. new ObjectParameter("UserName", userName) :
  250. new ObjectParameter("UserName", typeof(string));
  251. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  252. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  253. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  254. var updateLastActivityParameter = updateLastActivity.HasValue ?
  255. new ObjectParameter("UpdateLastActivity", updateLastActivity) :
  256. new ObjectParameter("UpdateLastActivity", typeof(bool));
  257. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetUserByName_Result>("aspnet_Membership_GetUserByName", applicationNameParameter, userNameParameter, currentTimeUtcParameter, updateLastActivityParameter);
  258. }
  259. public virtual ObjectResult<aspnet_Membership_GetUserByUserId_Result> aspnet_Membership_GetUserByUserId(Nullable<System.Guid> userId, Nullable<System.DateTime> currentTimeUtc, Nullable<bool> updateLastActivity)
  260. {
  261. var userIdParameter = userId.HasValue ?
  262. new ObjectParameter("UserId", userId) :
  263. new ObjectParameter("UserId", typeof(System.Guid));
  264. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  265. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  266. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  267. var updateLastActivityParameter = updateLastActivity.HasValue ?
  268. new ObjectParameter("UpdateLastActivity", updateLastActivity) :
  269. new ObjectParameter("UpdateLastActivity", typeof(bool));
  270. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Membership_GetUserByUserId_Result>("aspnet_Membership_GetUserByUserId", userIdParameter, currentTimeUtcParameter, updateLastActivityParameter);
  271. }
  272. 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)
  273. {
  274. var applicationNameParameter = applicationName != null ?
  275. new ObjectParameter("ApplicationName", applicationName) :
  276. new ObjectParameter("ApplicationName", typeof(string));
  277. var userNameParameter = userName != null ?
  278. new ObjectParameter("UserName", userName) :
  279. new ObjectParameter("UserName", typeof(string));
  280. var newPasswordParameter = newPassword != null ?
  281. new ObjectParameter("NewPassword", newPassword) :
  282. new ObjectParameter("NewPassword", typeof(string));
  283. var maxInvalidPasswordAttemptsParameter = maxInvalidPasswordAttempts.HasValue ?
  284. new ObjectParameter("MaxInvalidPasswordAttempts", maxInvalidPasswordAttempts) :
  285. new ObjectParameter("MaxInvalidPasswordAttempts", typeof(int));
  286. var passwordAttemptWindowParameter = passwordAttemptWindow.HasValue ?
  287. new ObjectParameter("PasswordAttemptWindow", passwordAttemptWindow) :
  288. new ObjectParameter("PasswordAttemptWindow", typeof(int));
  289. var passwordSaltParameter = passwordSalt != null ?
  290. new ObjectParameter("PasswordSalt", passwordSalt) :
  291. new ObjectParameter("PasswordSalt", typeof(string));
  292. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  293. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  294. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  295. var passwordFormatParameter = passwordFormat.HasValue ?
  296. new ObjectParameter("PasswordFormat", passwordFormat) :
  297. new ObjectParameter("PasswordFormat", typeof(int));
  298. var passwordAnswerParameter = passwordAnswer != null ?
  299. new ObjectParameter("PasswordAnswer", passwordAnswer) :
  300. new ObjectParameter("PasswordAnswer", typeof(string));
  301. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_ResetPassword", applicationNameParameter, userNameParameter, newPasswordParameter, maxInvalidPasswordAttemptsParameter, passwordAttemptWindowParameter, passwordSaltParameter, currentTimeUtcParameter, passwordFormatParameter, passwordAnswerParameter);
  302. }
  303. public virtual int aspnet_Membership_SetPassword(string applicationName, string userName, string newPassword, string passwordSalt, Nullable<System.DateTime> currentTimeUtc, Nullable<int> passwordFormat)
  304. {
  305. var applicationNameParameter = applicationName != null ?
  306. new ObjectParameter("ApplicationName", applicationName) :
  307. new ObjectParameter("ApplicationName", typeof(string));
  308. var userNameParameter = userName != null ?
  309. new ObjectParameter("UserName", userName) :
  310. new ObjectParameter("UserName", typeof(string));
  311. var newPasswordParameter = newPassword != null ?
  312. new ObjectParameter("NewPassword", newPassword) :
  313. new ObjectParameter("NewPassword", typeof(string));
  314. var passwordSaltParameter = passwordSalt != null ?
  315. new ObjectParameter("PasswordSalt", passwordSalt) :
  316. new ObjectParameter("PasswordSalt", typeof(string));
  317. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  318. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  319. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  320. var passwordFormatParameter = passwordFormat.HasValue ?
  321. new ObjectParameter("PasswordFormat", passwordFormat) :
  322. new ObjectParameter("PasswordFormat", typeof(int));
  323. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_SetPassword", applicationNameParameter, userNameParameter, newPasswordParameter, passwordSaltParameter, currentTimeUtcParameter, passwordFormatParameter);
  324. }
  325. public virtual int aspnet_Membership_UnlockUser(string applicationName, string userName)
  326. {
  327. var applicationNameParameter = applicationName != null ?
  328. new ObjectParameter("ApplicationName", applicationName) :
  329. new ObjectParameter("ApplicationName", typeof(string));
  330. var userNameParameter = userName != null ?
  331. new ObjectParameter("UserName", userName) :
  332. new ObjectParameter("UserName", typeof(string));
  333. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_UnlockUser", applicationNameParameter, userNameParameter);
  334. }
  335. 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)
  336. {
  337. var applicationNameParameter = applicationName != null ?
  338. new ObjectParameter("ApplicationName", applicationName) :
  339. new ObjectParameter("ApplicationName", typeof(string));
  340. var userNameParameter = userName != null ?
  341. new ObjectParameter("UserName", userName) :
  342. new ObjectParameter("UserName", typeof(string));
  343. var emailParameter = email != null ?
  344. new ObjectParameter("Email", email) :
  345. new ObjectParameter("Email", typeof(string));
  346. var commentParameter = comment != null ?
  347. new ObjectParameter("Comment", comment) :
  348. new ObjectParameter("Comment", typeof(string));
  349. var isApprovedParameter = isApproved.HasValue ?
  350. new ObjectParameter("IsApproved", isApproved) :
  351. new ObjectParameter("IsApproved", typeof(bool));
  352. var lastLoginDateParameter = lastLoginDate.HasValue ?
  353. new ObjectParameter("LastLoginDate", lastLoginDate) :
  354. new ObjectParameter("LastLoginDate", typeof(System.DateTime));
  355. var lastActivityDateParameter = lastActivityDate.HasValue ?
  356. new ObjectParameter("LastActivityDate", lastActivityDate) :
  357. new ObjectParameter("LastActivityDate", typeof(System.DateTime));
  358. var uniqueEmailParameter = uniqueEmail.HasValue ?
  359. new ObjectParameter("UniqueEmail", uniqueEmail) :
  360. new ObjectParameter("UniqueEmail", typeof(int));
  361. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  362. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  363. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  364. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_UpdateUser", applicationNameParameter, userNameParameter, emailParameter, commentParameter, isApprovedParameter, lastLoginDateParameter, lastActivityDateParameter, uniqueEmailParameter, currentTimeUtcParameter);
  365. }
  366. 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)
  367. {
  368. var applicationNameParameter = applicationName != null ?
  369. new ObjectParameter("ApplicationName", applicationName) :
  370. new ObjectParameter("ApplicationName", typeof(string));
  371. var userNameParameter = userName != null ?
  372. new ObjectParameter("UserName", userName) :
  373. new ObjectParameter("UserName", typeof(string));
  374. var isPasswordCorrectParameter = isPasswordCorrect.HasValue ?
  375. new ObjectParameter("IsPasswordCorrect", isPasswordCorrect) :
  376. new ObjectParameter("IsPasswordCorrect", typeof(bool));
  377. var updateLastLoginActivityDateParameter = updateLastLoginActivityDate.HasValue ?
  378. new ObjectParameter("UpdateLastLoginActivityDate", updateLastLoginActivityDate) :
  379. new ObjectParameter("UpdateLastLoginActivityDate", typeof(bool));
  380. var maxInvalidPasswordAttemptsParameter = maxInvalidPasswordAttempts.HasValue ?
  381. new ObjectParameter("MaxInvalidPasswordAttempts", maxInvalidPasswordAttempts) :
  382. new ObjectParameter("MaxInvalidPasswordAttempts", typeof(int));
  383. var passwordAttemptWindowParameter = passwordAttemptWindow.HasValue ?
  384. new ObjectParameter("PasswordAttemptWindow", passwordAttemptWindow) :
  385. new ObjectParameter("PasswordAttemptWindow", typeof(int));
  386. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  387. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  388. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  389. var lastLoginDateParameter = lastLoginDate.HasValue ?
  390. new ObjectParameter("LastLoginDate", lastLoginDate) :
  391. new ObjectParameter("LastLoginDate", typeof(System.DateTime));
  392. var lastActivityDateParameter = lastActivityDate.HasValue ?
  393. new ObjectParameter("LastActivityDate", lastActivityDate) :
  394. new ObjectParameter("LastActivityDate", typeof(System.DateTime));
  395. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Membership_UpdateUserInfo", applicationNameParameter, userNameParameter, isPasswordCorrectParameter, updateLastLoginActivityDateParameter, maxInvalidPasswordAttemptsParameter, passwordAttemptWindowParameter, currentTimeUtcParameter, lastLoginDateParameter, lastActivityDateParameter);
  396. }
  397. public virtual int aspnet_Paths_CreatePath(Nullable<System.Guid> applicationId, string path, ObjectParameter pathId)
  398. {
  399. var applicationIdParameter = applicationId.HasValue ?
  400. new ObjectParameter("ApplicationId", applicationId) :
  401. new ObjectParameter("ApplicationId", typeof(System.Guid));
  402. var pathParameter = path != null ?
  403. new ObjectParameter("Path", path) :
  404. new ObjectParameter("Path", typeof(string));
  405. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Paths_CreatePath", applicationIdParameter, pathParameter, pathId);
  406. }
  407. public virtual int aspnet_Personalization_GetApplicationId(string applicationName, ObjectParameter applicationId)
  408. {
  409. var applicationNameParameter = applicationName != null ?
  410. new ObjectParameter("ApplicationName", applicationName) :
  411. new ObjectParameter("ApplicationName", typeof(string));
  412. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Personalization_GetApplicationId", applicationNameParameter, applicationId);
  413. }
  414. public virtual int aspnet_PersonalizationAdministration_DeleteAllState(Nullable<bool> allUsersScope, string applicationName, ObjectParameter count)
  415. {
  416. var allUsersScopeParameter = allUsersScope.HasValue ?
  417. new ObjectParameter("AllUsersScope", allUsersScope) :
  418. new ObjectParameter("AllUsersScope", typeof(bool));
  419. var applicationNameParameter = applicationName != null ?
  420. new ObjectParameter("ApplicationName", applicationName) :
  421. new ObjectParameter("ApplicationName", typeof(string));
  422. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_DeleteAllState", allUsersScopeParameter, applicationNameParameter, count);
  423. }
  424. 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)
  425. {
  426. var allUsersScopeParameter = allUsersScope.HasValue ?
  427. new ObjectParameter("AllUsersScope", allUsersScope) :
  428. new ObjectParameter("AllUsersScope", typeof(bool));
  429. var applicationNameParameter = applicationName != null ?
  430. new ObjectParameter("ApplicationName", applicationName) :
  431. new ObjectParameter("ApplicationName", typeof(string));
  432. var pageIndexParameter = pageIndex.HasValue ?
  433. new ObjectParameter("PageIndex", pageIndex) :
  434. new ObjectParameter("PageIndex", typeof(int));
  435. var pageSizeParameter = pageSize.HasValue ?
  436. new ObjectParameter("PageSize", pageSize) :
  437. new ObjectParameter("PageSize", typeof(int));
  438. var pathParameter = path != null ?
  439. new ObjectParameter("Path", path) :
  440. new ObjectParameter("Path", typeof(string));
  441. var userNameParameter = userName != null ?
  442. new ObjectParameter("UserName", userName) :
  443. new ObjectParameter("UserName", typeof(string));
  444. var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
  445. new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
  446. new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
  447. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_FindState", allUsersScopeParameter, applicationNameParameter, pageIndexParameter, pageSizeParameter, pathParameter, userNameParameter, inactiveSinceDateParameter);
  448. }
  449. public virtual int aspnet_PersonalizationAdministration_GetCountOfState(ObjectParameter count, Nullable<bool> allUsersScope, string applicationName, string path, string userName, Nullable<System.DateTime> inactiveSinceDate)
  450. {
  451. var allUsersScopeParameter = allUsersScope.HasValue ?
  452. new ObjectParameter("AllUsersScope", allUsersScope) :
  453. new ObjectParameter("AllUsersScope", typeof(bool));
  454. var applicationNameParameter = applicationName != null ?
  455. new ObjectParameter("ApplicationName", applicationName) :
  456. new ObjectParameter("ApplicationName", typeof(string));
  457. var pathParameter = path != null ?
  458. new ObjectParameter("Path", path) :
  459. new ObjectParameter("Path", typeof(string));
  460. var userNameParameter = userName != null ?
  461. new ObjectParameter("UserName", userName) :
  462. new ObjectParameter("UserName", typeof(string));
  463. var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
  464. new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
  465. new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
  466. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_GetCountOfState", count, allUsersScopeParameter, applicationNameParameter, pathParameter, userNameParameter, inactiveSinceDateParameter);
  467. }
  468. public virtual int aspnet_PersonalizationAdministration_ResetSharedState(ObjectParameter count, string applicationName, string path)
  469. {
  470. var applicationNameParameter = applicationName != null ?
  471. new ObjectParameter("ApplicationName", applicationName) :
  472. new ObjectParameter("ApplicationName", typeof(string));
  473. var pathParameter = path != null ?
  474. new ObjectParameter("Path", path) :
  475. new ObjectParameter("Path", typeof(string));
  476. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_ResetSharedState", count, applicationNameParameter, pathParameter);
  477. }
  478. public virtual int aspnet_PersonalizationAdministration_ResetUserState(ObjectParameter count, string applicationName, Nullable<System.DateTime> inactiveSinceDate, string userName, string path)
  479. {
  480. var applicationNameParameter = applicationName != null ?
  481. new ObjectParameter("ApplicationName", applicationName) :
  482. new ObjectParameter("ApplicationName", typeof(string));
  483. var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
  484. new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
  485. new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
  486. var userNameParameter = userName != null ?
  487. new ObjectParameter("UserName", userName) :
  488. new ObjectParameter("UserName", typeof(string));
  489. var pathParameter = path != null ?
  490. new ObjectParameter("Path", path) :
  491. new ObjectParameter("Path", typeof(string));
  492. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAdministration_ResetUserState", count, applicationNameParameter, inactiveSinceDateParameter, userNameParameter, pathParameter);
  493. }
  494. public virtual ObjectResult<byte[]> aspnet_PersonalizationAllUsers_GetPageSettings(string applicationName, string path)
  495. {
  496. var applicationNameParameter = applicationName != null ?
  497. new ObjectParameter("ApplicationName", applicationName) :
  498. new ObjectParameter("ApplicationName", typeof(string));
  499. var pathParameter = path != null ?
  500. new ObjectParameter("Path", path) :
  501. new ObjectParameter("Path", typeof(string));
  502. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<byte[]>("aspnet_PersonalizationAllUsers_GetPageSettings", applicationNameParameter, pathParameter);
  503. }
  504. public virtual int aspnet_PersonalizationAllUsers_ResetPageSettings(string applicationName, string path)
  505. {
  506. var applicationNameParameter = applicationName != null ?
  507. new ObjectParameter("ApplicationName", applicationName) :
  508. new ObjectParameter("ApplicationName", typeof(string));
  509. var pathParameter = path != null ?
  510. new ObjectParameter("Path", path) :
  511. new ObjectParameter("Path", typeof(string));
  512. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAllUsers_ResetPageSettings", applicationNameParameter, pathParameter);
  513. }
  514. public virtual int aspnet_PersonalizationAllUsers_SetPageSettings(string applicationName, string path, byte[] pageSettings, Nullable<System.DateTime> currentTimeUtc)
  515. {
  516. var applicationNameParameter = applicationName != null ?
  517. new ObjectParameter("ApplicationName", applicationName) :
  518. new ObjectParameter("ApplicationName", typeof(string));
  519. var pathParameter = path != null ?
  520. new ObjectParameter("Path", path) :
  521. new ObjectParameter("Path", typeof(string));
  522. var pageSettingsParameter = pageSettings != null ?
  523. new ObjectParameter("PageSettings", pageSettings) :
  524. new ObjectParameter("PageSettings", typeof(byte[]));
  525. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  526. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  527. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  528. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationAllUsers_SetPageSettings", applicationNameParameter, pathParameter, pageSettingsParameter, currentTimeUtcParameter);
  529. }
  530. public virtual ObjectResult<byte[]> aspnet_PersonalizationPerUser_GetPageSettings(string applicationName, string userName, string path, Nullable<System.DateTime> currentTimeUtc)
  531. {
  532. var applicationNameParameter = applicationName != null ?
  533. new ObjectParameter("ApplicationName", applicationName) :
  534. new ObjectParameter("ApplicationName", typeof(string));
  535. var userNameParameter = userName != null ?
  536. new ObjectParameter("UserName", userName) :
  537. new ObjectParameter("UserName", typeof(string));
  538. var pathParameter = path != null ?
  539. new ObjectParameter("Path", path) :
  540. new ObjectParameter("Path", typeof(string));
  541. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  542. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  543. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  544. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<byte[]>("aspnet_PersonalizationPerUser_GetPageSettings", applicationNameParameter, userNameParameter, pathParameter, currentTimeUtcParameter);
  545. }
  546. public virtual int aspnet_PersonalizationPerUser_ResetPageSettings(string applicationName, string userName, string path, Nullable<System.DateTime> currentTimeUtc)
  547. {
  548. var applicationNameParameter = applicationName != null ?
  549. new ObjectParameter("ApplicationName", applicationName) :
  550. new ObjectParameter("ApplicationName", typeof(string));
  551. var userNameParameter = userName != null ?
  552. new ObjectParameter("UserName", userName) :
  553. new ObjectParameter("UserName", typeof(string));
  554. var pathParameter = path != null ?
  555. new ObjectParameter("Path", path) :
  556. new ObjectParameter("Path", typeof(string));
  557. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  558. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  559. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  560. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationPerUser_ResetPageSettings", applicationNameParameter, userNameParameter, pathParameter, currentTimeUtcParameter);
  561. }
  562. public virtual int aspnet_PersonalizationPerUser_SetPageSettings(string applicationName, string userName, string path, byte[] pageSettings, Nullable<System.DateTime> currentTimeUtc)
  563. {
  564. var applicationNameParameter = applicationName != null ?
  565. new ObjectParameter("ApplicationName", applicationName) :
  566. new ObjectParameter("ApplicationName", typeof(string));
  567. var userNameParameter = userName != null ?
  568. new ObjectParameter("UserName", userName) :
  569. new ObjectParameter("UserName", typeof(string));
  570. var pathParameter = path != null ?
  571. new ObjectParameter("Path", path) :
  572. new ObjectParameter("Path", typeof(string));
  573. var pageSettingsParameter = pageSettings != null ?
  574. new ObjectParameter("PageSettings", pageSettings) :
  575. new ObjectParameter("PageSettings", typeof(byte[]));
  576. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  577. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  578. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  579. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_PersonalizationPerUser_SetPageSettings", applicationNameParameter, userNameParameter, pathParameter, pageSettingsParameter, currentTimeUtcParameter);
  580. }
  581. public virtual ObjectResult<Nullable<int>> aspnet_Profile_DeleteInactiveProfiles(string applicationName, Nullable<int> profileAuthOptions, Nullable<System.DateTime> inactiveSinceDate)
  582. {
  583. var applicationNameParameter = applicationName != null ?
  584. new ObjectParameter("ApplicationName", applicationName) :
  585. new ObjectParameter("ApplicationName", typeof(string));
  586. var profileAuthOptionsParameter = profileAuthOptions.HasValue ?
  587. new ObjectParameter("ProfileAuthOptions", profileAuthOptions) :
  588. new ObjectParameter("ProfileAuthOptions", typeof(int));
  589. var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
  590. new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
  591. new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
  592. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("aspnet_Profile_DeleteInactiveProfiles", applicationNameParameter, profileAuthOptionsParameter, inactiveSinceDateParameter);
  593. }
  594. public virtual ObjectResult<Nullable<int>> aspnet_Profile_DeleteProfiles(string applicationName, string userNames)
  595. {
  596. var applicationNameParameter = applicationName != null ?
  597. new ObjectParameter("ApplicationName", applicationName) :
  598. new ObjectParameter("ApplicationName", typeof(string));
  599. var userNamesParameter = userNames != null ?
  600. new ObjectParameter("UserNames", userNames) :
  601. new ObjectParameter("UserNames", typeof(string));
  602. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("aspnet_Profile_DeleteProfiles", applicationNameParameter, userNamesParameter);
  603. }
  604. public virtual ObjectResult<Nullable<int>> aspnet_Profile_GetNumberOfInactiveProfiles(string applicationName, Nullable<int> profileAuthOptions, Nullable<System.DateTime> inactiveSinceDate)
  605. {
  606. var applicationNameParameter = applicationName != null ?
  607. new ObjectParameter("ApplicationName", applicationName) :
  608. new ObjectParameter("ApplicationName", typeof(string));
  609. var profileAuthOptionsParameter = profileAuthOptions.HasValue ?
  610. new ObjectParameter("ProfileAuthOptions", profileAuthOptions) :
  611. new ObjectParameter("ProfileAuthOptions", typeof(int));
  612. var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
  613. new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
  614. new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
  615. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<Nullable<int>>("aspnet_Profile_GetNumberOfInactiveProfiles", applicationNameParameter, profileAuthOptionsParameter, inactiveSinceDateParameter);
  616. }
  617. public virtual int aspnet_Profile_GetProfiles(string applicationName, Nullable<int> profileAuthOptions, Nullable<int> pageIndex, Nullable<int> pageSize, string userNameToMatch, Nullable<System.DateTime> inactiveSinceDate)
  618. {
  619. var applicationNameParameter = applicationName != null ?
  620. new ObjectParameter("ApplicationName", applicationName) :
  621. new ObjectParameter("ApplicationName", typeof(string));
  622. var profileAuthOptionsParameter = profileAuthOptions.HasValue ?
  623. new ObjectParameter("ProfileAuthOptions", profileAuthOptions) :
  624. new ObjectParameter("ProfileAuthOptions", typeof(int));
  625. var pageIndexParameter = pageIndex.HasValue ?
  626. new ObjectParameter("PageIndex", pageIndex) :
  627. new ObjectParameter("PageIndex", typeof(int));
  628. var pageSizeParameter = pageSize.HasValue ?
  629. new ObjectParameter("PageSize", pageSize) :
  630. new ObjectParameter("PageSize", typeof(int));
  631. var userNameToMatchParameter = userNameToMatch != null ?
  632. new ObjectParameter("UserNameToMatch", userNameToMatch) :
  633. new ObjectParameter("UserNameToMatch", typeof(string));
  634. var inactiveSinceDateParameter = inactiveSinceDate.HasValue ?
  635. new ObjectParameter("InactiveSinceDate", inactiveSinceDate) :
  636. new ObjectParameter("InactiveSinceDate", typeof(System.DateTime));
  637. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Profile_GetProfiles", applicationNameParameter, profileAuthOptionsParameter, pageIndexParameter, pageSizeParameter, userNameToMatchParameter, inactiveSinceDateParameter);
  638. }
  639. public virtual ObjectResult<aspnet_Profile_GetProperties_Result> aspnet_Profile_GetProperties(string applicationName, string userName, Nullable<System.DateTime> currentTimeUtc)
  640. {
  641. var applicationNameParameter = appl

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