PageRenderTime 69ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/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
  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 = applicationName != null ?
  642. new ObjectParameter("ApplicationName", applicationName) :
  643. new ObjectParameter("ApplicationName", typeof(string));
  644. var userNameParameter = userName != null ?
  645. new ObjectParameter("UserName", userName) :
  646. new ObjectParameter("UserName", typeof(string));
  647. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  648. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  649. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  650. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_Profile_GetProperties_Result>("aspnet_Profile_GetProperties", applicationNameParameter, userNameParameter, currentTimeUtcParameter);
  651. }
  652. public virtual int aspnet_Profile_SetProperties(string applicationName, string propertyNames, string propertyValuesString, byte[] propertyValuesBinary, string userName, Nullable<bool> isUserAnonymous, Nullable<System.DateTime> currentTimeUtc)
  653. {
  654. var applicationNameParameter = applicationName != null ?
  655. new ObjectParameter("ApplicationName", applicationName) :
  656. new ObjectParameter("ApplicationName", typeof(string));
  657. var propertyNamesParameter = propertyNames != null ?
  658. new ObjectParameter("PropertyNames", propertyNames) :
  659. new ObjectParameter("PropertyNames", typeof(string));
  660. var propertyValuesStringParameter = propertyValuesString != null ?
  661. new ObjectParameter("PropertyValuesString", propertyValuesString) :
  662. new ObjectParameter("PropertyValuesString", typeof(string));
  663. var propertyValuesBinaryParameter = propertyValuesBinary != null ?
  664. new ObjectParameter("PropertyValuesBinary", propertyValuesBinary) :
  665. new ObjectParameter("PropertyValuesBinary", typeof(byte[]));
  666. var userNameParameter = userName != null ?
  667. new ObjectParameter("UserName", userName) :
  668. new ObjectParameter("UserName", typeof(string));
  669. var isUserAnonymousParameter = isUserAnonymous.HasValue ?
  670. new ObjectParameter("IsUserAnonymous", isUserAnonymous) :
  671. new ObjectParameter("IsUserAnonymous", typeof(bool));
  672. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  673. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  674. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  675. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Profile_SetProperties", applicationNameParameter, propertyNamesParameter, propertyValuesStringParameter, propertyValuesBinaryParameter, userNameParameter, isUserAnonymousParameter, currentTimeUtcParameter);
  676. }
  677. public virtual int aspnet_RegisterSchemaVersion(string feature, string compatibleSchemaVersion, Nullable<bool> isCurrentVersion, Nullable<bool> removeIncompatibleSchema)
  678. {
  679. var featureParameter = feature != null ?
  680. new ObjectParameter("Feature", feature) :
  681. new ObjectParameter("Feature", typeof(string));
  682. var compatibleSchemaVersionParameter = compatibleSchemaVersion != null ?
  683. new ObjectParameter("CompatibleSchemaVersion", compatibleSchemaVersion) :
  684. new ObjectParameter("CompatibleSchemaVersion", typeof(string));
  685. var isCurrentVersionParameter = isCurrentVersion.HasValue ?
  686. new ObjectParameter("IsCurrentVersion", isCurrentVersion) :
  687. new ObjectParameter("IsCurrentVersion", typeof(bool));
  688. var removeIncompatibleSchemaParameter = removeIncompatibleSchema.HasValue ?
  689. new ObjectParameter("RemoveIncompatibleSchema", removeIncompatibleSchema) :
  690. new ObjectParameter("RemoveIncompatibleSchema", typeof(bool));
  691. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_RegisterSchemaVersion", featureParameter, compatibleSchemaVersionParameter, isCurrentVersionParameter, removeIncompatibleSchemaParameter);
  692. }
  693. public virtual int aspnet_Roles_CreateRole(string applicationName, string roleName)
  694. {
  695. var applicationNameParameter = applicationName != null ?
  696. new ObjectParameter("ApplicationName", applicationName) :
  697. new ObjectParameter("ApplicationName", typeof(string));
  698. var roleNameParameter = roleName != null ?
  699. new ObjectParameter("RoleName", roleName) :
  700. new ObjectParameter("RoleName", typeof(string));
  701. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Roles_CreateRole", applicationNameParameter, roleNameParameter);
  702. }
  703. public virtual int aspnet_Roles_DeleteRole(string applicationName, string roleName, Nullable<bool> deleteOnlyIfRoleIsEmpty)
  704. {
  705. var applicationNameParameter = applicationName != null ?
  706. new ObjectParameter("ApplicationName", applicationName) :
  707. new ObjectParameter("ApplicationName", typeof(string));
  708. var roleNameParameter = roleName != null ?
  709. new ObjectParameter("RoleName", roleName) :
  710. new ObjectParameter("RoleName", typeof(string));
  711. var deleteOnlyIfRoleIsEmptyParameter = deleteOnlyIfRoleIsEmpty.HasValue ?
  712. new ObjectParameter("DeleteOnlyIfRoleIsEmpty", deleteOnlyIfRoleIsEmpty) :
  713. new ObjectParameter("DeleteOnlyIfRoleIsEmpty", typeof(bool));
  714. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Roles_DeleteRole", applicationNameParameter, roleNameParameter, deleteOnlyIfRoleIsEmptyParameter);
  715. }
  716. public virtual ObjectResult<string> aspnet_Roles_GetAllRoles(string applicationName)
  717. {
  718. var applicationNameParameter = applicationName != null ?
  719. new ObjectParameter("ApplicationName", applicationName) :
  720. new ObjectParameter("ApplicationName", typeof(string));
  721. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_Roles_GetAllRoles", applicationNameParameter);
  722. }
  723. public virtual int aspnet_Roles_RoleExists(string applicationName, string roleName)
  724. {
  725. var applicationNameParameter = applicationName != null ?
  726. new ObjectParameter("ApplicationName", applicationName) :
  727. new ObjectParameter("ApplicationName", typeof(string));
  728. var roleNameParameter = roleName != null ?
  729. new ObjectParameter("RoleName", roleName) :
  730. new ObjectParameter("RoleName", typeof(string));
  731. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Roles_RoleExists", applicationNameParameter, roleNameParameter);
  732. }
  733. public virtual int aspnet_Setup_RemoveAllRoleMembers(string name)
  734. {
  735. var nameParameter = name != null ?
  736. new ObjectParameter("name", name) :
  737. new ObjectParameter("name", typeof(string));
  738. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Setup_RemoveAllRoleMembers", nameParameter);
  739. }
  740. public virtual int aspnet_Setup_RestorePermissions(string name)
  741. {
  742. var nameParameter = name != null ?
  743. new ObjectParameter("name", name) :
  744. new ObjectParameter("name", typeof(string));
  745. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Setup_RestorePermissions", nameParameter);
  746. }
  747. public virtual int aspnet_UnRegisterSchemaVersion(string feature, string compatibleSchemaVersion)
  748. {
  749. var featureParameter = feature != null ?
  750. new ObjectParameter("Feature", feature) :
  751. new ObjectParameter("Feature", typeof(string));
  752. var compatibleSchemaVersionParameter = compatibleSchemaVersion != null ?
  753. new ObjectParameter("CompatibleSchemaVersion", compatibleSchemaVersion) :
  754. new ObjectParameter("CompatibleSchemaVersion", typeof(string));
  755. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_UnRegisterSchemaVersion", featureParameter, compatibleSchemaVersionParameter);
  756. }
  757. public virtual int aspnet_Users_CreateUser(Nullable<System.Guid> applicationId, string userName, Nullable<bool> isUserAnonymous, Nullable<System.DateTime> lastActivityDate, ObjectParameter userId)
  758. {
  759. var applicationIdParameter = applicationId.HasValue ?
  760. new ObjectParameter("ApplicationId", applicationId) :
  761. new ObjectParameter("ApplicationId", typeof(System.Guid));
  762. var userNameParameter = userName != null ?
  763. new ObjectParameter("UserName", userName) :
  764. new ObjectParameter("UserName", typeof(string));
  765. var isUserAnonymousParameter = isUserAnonymous.HasValue ?
  766. new ObjectParameter("IsUserAnonymous", isUserAnonymous) :
  767. new ObjectParameter("IsUserAnonymous", typeof(bool));
  768. var lastActivityDateParameter = lastActivityDate.HasValue ?
  769. new ObjectParameter("LastActivityDate", lastActivityDate) :
  770. new ObjectParameter("LastActivityDate", typeof(System.DateTime));
  771. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Users_CreateUser", applicationIdParameter, userNameParameter, isUserAnonymousParameter, lastActivityDateParameter, userId);
  772. }
  773. public virtual int aspnet_Users_DeleteUser(string applicationName, string userName, Nullable<int> tablesToDeleteFrom, ObjectParameter numTablesDeletedFrom)
  774. {
  775. var applicationNameParameter = applicationName != null ?
  776. new ObjectParameter("ApplicationName", applicationName) :
  777. new ObjectParameter("ApplicationName", typeof(string));
  778. var userNameParameter = userName != null ?
  779. new ObjectParameter("UserName", userName) :
  780. new ObjectParameter("UserName", typeof(string));
  781. var tablesToDeleteFromParameter = tablesToDeleteFrom.HasValue ?
  782. new ObjectParameter("TablesToDeleteFrom", tablesToDeleteFrom) :
  783. new ObjectParameter("TablesToDeleteFrom", typeof(int));
  784. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_Users_DeleteUser", applicationNameParameter, userNameParameter, tablesToDeleteFromParameter, numTablesDeletedFrom);
  785. }
  786. public virtual ObjectResult<string> aspnet_UsersInRoles_AddUsersToRoles(string applicationName, string userNames, string roleNames, Nullable<System.DateTime> currentTimeUtc)
  787. {
  788. var applicationNameParameter = applicationName != null ?
  789. new ObjectParameter("ApplicationName", applicationName) :
  790. new ObjectParameter("ApplicationName", typeof(string));
  791. var userNamesParameter = userNames != null ?
  792. new ObjectParameter("UserNames", userNames) :
  793. new ObjectParameter("UserNames", typeof(string));
  794. var roleNamesParameter = roleNames != null ?
  795. new ObjectParameter("RoleNames", roleNames) :
  796. new ObjectParameter("RoleNames", typeof(string));
  797. var currentTimeUtcParameter = currentTimeUtc.HasValue ?
  798. new ObjectParameter("CurrentTimeUtc", currentTimeUtc) :
  799. new ObjectParameter("CurrentTimeUtc", typeof(System.DateTime));
  800. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_UsersInRoles_AddUsersToRoles", applicationNameParameter, userNamesParameter, roleNamesParameter, currentTimeUtcParameter);
  801. }
  802. public virtual ObjectResult<string> aspnet_UsersInRoles_FindUsersInRole(string applicationName, string roleName, string userNameToMatch)
  803. {
  804. var applicationNameParameter = applicationName != null ?
  805. new ObjectParameter("ApplicationName", applicationName) :
  806. new ObjectParameter("ApplicationName", typeof(string));
  807. var roleNameParameter = roleName != null ?
  808. new ObjectParameter("RoleName", roleName) :
  809. new ObjectParameter("RoleName", typeof(string));
  810. var userNameToMatchParameter = userNameToMatch != null ?
  811. new ObjectParameter("UserNameToMatch", userNameToMatch) :
  812. new ObjectParameter("UserNameToMatch", typeof(string));
  813. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_UsersInRoles_FindUsersInRole", applicationNameParameter, roleNameParameter, userNameToMatchParameter);
  814. }
  815. public virtual ObjectResult<string> aspnet_UsersInRoles_GetRolesForUser(string applicationName, string userName)
  816. {
  817. var applicationNameParameter = applicationName != null ?
  818. new ObjectParameter("ApplicationName", applicationName) :
  819. new ObjectParameter("ApplicationName", typeof(string));
  820. var userNameParameter = userName != null ?
  821. new ObjectParameter("UserName", userName) :
  822. new ObjectParameter("UserName", typeof(string));
  823. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_UsersInRoles_GetRolesForUser", applicationNameParameter, userNameParameter);
  824. }
  825. public virtual ObjectResult<string> aspnet_UsersInRoles_GetUsersInRoles(string applicationName, string roleName)
  826. {
  827. var applicationNameParameter = applicationName != null ?
  828. new ObjectParameter("ApplicationName", applicationName) :
  829. new ObjectParameter("ApplicationName", typeof(string));
  830. var roleNameParameter = roleName != null ?
  831. new ObjectParameter("RoleName", roleName) :
  832. new ObjectParameter("RoleName", typeof(string));
  833. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<string>("aspnet_UsersInRoles_GetUsersInRoles", applicationNameParameter, roleNameParameter);
  834. }
  835. public virtual int aspnet_UsersInRoles_IsUserInRole(string applicationName, string userName, string roleName)
  836. {
  837. var applicationNameParameter = applicationName != null ?
  838. new ObjectParameter("ApplicationName", applicationName) :
  839. new ObjectParameter("ApplicationName", typeof(string));
  840. var userNameParameter = userName != null ?
  841. new ObjectParameter("UserName", userName) :
  842. new ObjectParameter("UserName", typeof(string));
  843. var roleNameParameter = roleName != null ?
  844. new ObjectParameter("RoleName", roleName) :
  845. new ObjectParameter("RoleName", typeof(string));
  846. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_UsersInRoles_IsUserInRole", applicationNameParameter, userNameParameter, roleNameParameter);
  847. }
  848. public virtual ObjectResult<aspnet_UsersInRoles_RemoveUsersFromRoles_Result> aspnet_UsersInRoles_RemoveUsersFromRoles(string applicationName, string userNames, string roleNames)
  849. {
  850. var applicationNameParameter = applicationName != null ?
  851. new ObjectParameter("ApplicationName", applicationName) :
  852. new ObjectParameter("ApplicationName", typeof(string));
  853. var userNamesParameter = userNames != null ?
  854. new ObjectParameter("UserNames", userNames) :
  855. new ObjectParameter("UserNames", typeof(string));
  856. var roleNamesParameter = roleNames != null ?
  857. new ObjectParameter("RoleNames", roleNames) :
  858. new ObjectParameter("RoleNames", typeof(string));
  859. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<aspnet_UsersInRoles_RemoveUsersFromRoles_Result>("aspnet_UsersInRoles_RemoveUsersFromRoles", applicationNameParameter, userNamesParameter, roleNamesParameter);
  860. }
  861. public virtual int aspnet_WebEvent_LogEvent(string eventId, Nullable<System.DateTime> eventTimeUtc, Nullable<System.DateTime> eventTime, string eventType, Nullable<decimal> eventSequence, Nullable<decimal> eventOccurrence, Nullable<int> eventCode, Nullable<int> eventDetailCode, string message, string applicationPath, string applicationVirtualPath, string machineName, string requestUrl, string exceptionType, string details)
  862. {
  863. var eventIdParameter = eventId != null ?
  864. new ObjectParameter("EventId", eventId) :
  865. new ObjectParameter("EventId", typeof(string));
  866. var eventTimeUtcParameter = eventTimeUtc.HasValue ?
  867. new ObjectParameter("EventTimeUtc", eventTimeUtc) :
  868. new ObjectParameter("EventTimeUtc", typeof(System.DateTime));
  869. var eventTimeParameter = eventTime.HasValue ?
  870. new ObjectParameter("EventTime", eventTime) :
  871. new ObjectParameter("EventTime", typeof(System.DateTime));
  872. var eventTypeParameter = eventType != null ?
  873. new ObjectParameter("EventType", eventType) :
  874. new ObjectParameter("EventType", typeof(string));
  875. var eventSequenceParameter = eventSequence.HasValue ?
  876. new ObjectParameter("EventSequence", eventSequence) :
  877. new ObjectParameter("EventSequence", typeof(decimal));
  878. var eventOccurrenceParameter = eventOccurrence.HasValue ?
  879. new ObjectParameter("EventOccurrence", eventOccurrence) :
  880. new ObjectParameter("EventOccurrence", typeof(decimal));
  881. var eventCodeParameter = eventCode.HasValue ?
  882. new ObjectParameter("EventCode", eventCode) :
  883. new ObjectParameter("EventCode", typeof(int));
  884. var eventDetailCodeParameter = eventDetailCode.HasValue ?
  885. new ObjectParameter("EventDetailCode", eventDetailCode) :
  886. new ObjectParameter("EventDetailCode", typeof(int));
  887. var messageParameter = message != null ?
  888. new ObjectParameter("Message", message) :
  889. new ObjectParameter("Message", typeof(string));
  890. var applicationPathParameter = applicationPath != null ?
  891. new ObjectParameter("ApplicationPath", applicationPath) :
  892. new ObjectParameter("ApplicationPath", typeof(string));
  893. var applicationVirtualPathParameter = applicationVirtualPath != null ?
  894. new ObjectParameter("ApplicationVirtualPath", applicationVirtualPath) :
  895. new ObjectParameter("ApplicationVirtualPath", typeof(string));
  896. var machineNameParameter = machineName != null ?
  897. new ObjectParameter("MachineName", machineName) :
  898. new ObjectParameter("MachineName", typeof(string));
  899. var requestUrlParameter = requestUrl != null ?
  900. new ObjectParameter("RequestUrl", requestUrl) :
  901. new ObjectParameter("RequestUrl", typeof(string));
  902. var exceptionTypeParameter = exceptionType != null ?
  903. new ObjectParameter("ExceptionType", exceptionType) :
  904. new ObjectParameter("ExceptionType", typeof(string));
  905. var detailsParameter = details != null ?
  906. new ObjectParameter("Details", details) :
  907. new ObjectParameter("Details", typeof(string));
  908. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("aspnet_WebEvent_LogEvent", eventIdParameter, eventTimeUtcParameter, eventTimeParameter, eventTypeParameter, eventSequenceParameter, eventOccurrenceParameter, eventCodeParameter, eventDetailCodeParameter, messageParameter, applicationPathParameter, applicationVirtualPathParameter, machineNameParameter, requestUrlParameter, exceptionTypeParameter, detailsParameter);
  909. }
  910. public virtual int sp_alterdiagram(string diagramname, Nullable<int> owner_id, Nullable<int> version, byte[] definition)
  911. {
  912. var diagramnameParameter = diagramname != null ?
  913. new ObjectParameter("diagramname", diagramname) :
  914. new ObjectParameter("diagramname", typeof(string));
  915. var owner_idParameter = owner_id.HasValue ?
  916. new ObjectParameter("owner_id", owner_id) :
  917. new ObjectParameter("owner_id", typeof(int));
  918. var versionParameter = version.HasValue ?
  919. new ObjectParameter("version", version) :
  920. new ObjectParameter("version", typeof(int));
  921. var definitionParameter = definition != null ?
  922. new ObjectParameter("definition", definition) :
  923. new ObjectParameter("definition", typeof(byte[]));
  924. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_alterdiagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter);
  925. }
  926. public virtual int sp_creatediagram(string diagramname, Nullable<int> owner_id, Nullable<int> version, byte[] definition)
  927. {
  928. var diagramnameParameter = diagramname != null ?
  929. new ObjectParameter("diagramname", diagramname) :
  930. new ObjectParameter("diagramname", typeof(string));
  931. var owner_idParameter = owner_id.HasValue ?
  932. new ObjectParameter("owner_id", owner_id) :
  933. new ObjectParameter("owner_id", typeof(int));
  934. var versionParameter = version.HasValue ?
  935. new ObjectParameter("version", version) :
  936. new ObjectParameter("version", typeof(int));
  937. var definitionParameter = definition != null ?
  938. new ObjectParameter("definition", definition) :
  939. new ObjectParameter("definition", typeof(byte[]));
  940. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_creatediagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter);
  941. }
  942. public virtual int sp_dropdiagram(string diagramname, Nullable<int> owner_id)
  943. {
  944. var diagramnameParameter = diagramname != null ?
  945. new ObjectParameter("diagramname", diagramname) :
  946. new ObjectParameter("diagramname", typeof(string));
  947. var owner_idParameter = owner_id.HasValue ?
  948. new ObjectParameter("owner_id", owner_id) :
  949. new ObjectParameter("owner_id", typeof(int));
  950. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_dropdiagram", diagramnameParameter, owner_idParameter);
  951. }
  952. public virtual int sp_helpdiagramdefinition(string diagramname, Nullable<int> owner_id)
  953. {
  954. var diagramnameParameter = diagramname != null ?
  955. new ObjectParameter("diagramname", diagramname) :
  956. new ObjectParameter("diagramname", typeof(string));
  957. var owner_idParameter = owner_id.HasValue ?
  958. new ObjectParameter("owner_id", owner_id) :
  959. new ObjectParameter("owner_id", typeof(int));
  960. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagramdefinition", diagramnameParameter, owner_idParameter);
  961. }
  962. public virtual int sp_helpdiagrams(string diagramname, Nullable<int> owner_id)
  963. {
  964. var diagramnameParameter = diagramname != null ?
  965. new ObjectParameter("diagramname", diagramname) :
  966. new ObjectParameter("diagramname", typeof(string));
  967. var owner_idParameter = owner_id.HasValue ?
  968. new ObjectParameter("owner_id", owner_id) :
  969. new ObjectParameter("owner_id", typeof(int));
  970. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagrams", diagramnameParameter, owner_idParameter);
  971. }
  972. public virtual int sp_renamediagram(string diagramname, Nullable<int> owner_id, string new_diagramname)
  973. {
  974. var diagramnameParameter = diagramname != null ?
  975. new ObjectParameter("diagramname", diagramname) :
  976. new ObjectParameter("diagramname", typeof(string));
  977. var owner_idParameter = owner_id.HasValue ?
  978. new ObjectParameter("owner_id", owner_id) :
  979. new ObjectParameter("owner_id", typeof(int));
  980. var new_diagramnameParameter = new_diagramname != null ?
  981. new ObjectParameter("new_diagramname", new_diagramname) :
  982. new ObjectParameter("new_diagramname", typeof(string));
  983. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_renamediagram", diagramnameParameter, owner_idParameter, new_diagramnameParameter);
  984. }
  985. public virtual int sp_upgraddiagrams()
  986. {
  987. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_upgraddiagrams");
  988. }
  989. }
  990. }