PageRenderTime 78ms CodeModel.GetById 35ms RepoModel.GetById 1ms app.codeStats 0ms

/TaskrDomain/SaaSkit/Taskr/Repository/Db.designer.cs

#
C# | 547 lines | 474 code | 64 blank | 9 comment | 40 complexity | d38b50efd3212dd7e5aa351deb2e37ac MD5 | raw file
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.1
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace SaaSKit.Taskr.Repository
  12. {
  13. using System.Data.Linq;
  14. using System.Data.Linq.Mapping;
  15. using System.Data;
  16. using System.Collections.Generic;
  17. using System.Reflection;
  18. using System.Linq;
  19. using System.Linq.Expressions;
  20. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="taskrmvc")]
  21. public partial class DataContext : System.Data.Linq.DataContext
  22. {
  23. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  24. #region Extensibility Method Definitions
  25. partial void OnCreated();
  26. partial void InsertTask(SaaSKit.Taskr.Task instance);
  27. partial void UpdateTask(SaaSKit.Taskr.Task instance);
  28. partial void DeleteTask(SaaSKit.Taskr.Task instance);
  29. partial void InsertSettings(SaaSKit.Taskr.Settings instance);
  30. partial void UpdateSettings(SaaSKit.Taskr.Settings instance);
  31. partial void DeleteSettings(SaaSKit.Taskr.Settings instance);
  32. #endregion
  33. public DataContext() :
  34. base(global::Domain.Properties.Settings.Default.taskrmvcConnectionString, mappingSource)
  35. {
  36. OnCreated();
  37. }
  38. public DataContext(string connection) :
  39. base(connection, mappingSource)
  40. {
  41. OnCreated();
  42. }
  43. public DataContext(System.Data.IDbConnection connection) :
  44. base(connection, mappingSource)
  45. {
  46. OnCreated();
  47. }
  48. public DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  49. base(connection, mappingSource)
  50. {
  51. OnCreated();
  52. }
  53. public DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  54. base(connection, mappingSource)
  55. {
  56. OnCreated();
  57. }
  58. public System.Data.Linq.Table<SaaSKit.Taskr.Activity> Activities
  59. {
  60. get
  61. {
  62. return this.GetTable<SaaSKit.Taskr.Activity>();
  63. }
  64. }
  65. public System.Data.Linq.Table<SaaSKit.Taskr.Task> Tasks
  66. {
  67. get
  68. {
  69. return this.GetTable<SaaSKit.Taskr.Task>();
  70. }
  71. }
  72. public System.Data.Linq.Table<SaaSKit.Taskr.Settings> Settings
  73. {
  74. get
  75. {
  76. return this.GetTable<SaaSKit.Taskr.Settings>();
  77. }
  78. }
  79. }
  80. }
  81. namespace SaaSKit.Taskr
  82. {
  83. using System.Data.Linq;
  84. using System.Data.Linq.Mapping;
  85. using System.ComponentModel;
  86. using System;
  87. [global::System.Data.Linq.Mapping.TableAttribute()]
  88. public partial class Activity
  89. {
  90. private System.Guid _TaskId;
  91. private System.DateTime _CreatedDate;
  92. private string _Author;
  93. private string _Description;
  94. public Activity()
  95. {
  96. }
  97. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TaskId", DbType="UniqueIdentifier NOT NULL")]
  98. public System.Guid TaskId
  99. {
  100. get
  101. {
  102. return this._TaskId;
  103. }
  104. set
  105. {
  106. if ((this._TaskId != value))
  107. {
  108. this._TaskId = value;
  109. }
  110. }
  111. }
  112. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedDate", DbType="DateTime NOT NULL")]
  113. public System.DateTime CreatedDate
  114. {
  115. get
  116. {
  117. return this._CreatedDate;
  118. }
  119. set
  120. {
  121. if ((this._CreatedDate != value))
  122. {
  123. this._CreatedDate = value;
  124. }
  125. }
  126. }
  127. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Author", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  128. public string Author
  129. {
  130. get
  131. {
  132. return this._Author;
  133. }
  134. set
  135. {
  136. if ((this._Author != value))
  137. {
  138. this._Author = value;
  139. }
  140. }
  141. }
  142. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="Text", UpdateCheck=UpdateCheck.Never)]
  143. public string Description
  144. {
  145. get
  146. {
  147. return this._Description;
  148. }
  149. set
  150. {
  151. if ((this._Description != value))
  152. {
  153. this._Description = value;
  154. }
  155. }
  156. }
  157. }
  158. [global::System.Data.Linq.Mapping.TableAttribute()]
  159. public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged
  160. {
  161. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  162. private System.Guid _Id;
  163. private System.DateTime _CreatedDate;
  164. private string _Status;
  165. private string _Summary;
  166. private System.Nullable<System.Guid> _AssigneeId;
  167. private System.Nullable<System.DateTime> _DueDate;
  168. private System.Nullable<System.DateTime> _CompletedDate;
  169. private string _Description;
  170. #region Extensibility Method Definitions
  171. partial void OnLoaded();
  172. partial void OnValidate(System.Data.Linq.ChangeAction action);
  173. partial void OnCreated();
  174. partial void OnIdChanging(System.Guid value);
  175. partial void OnIdChanged();
  176. partial void OnCreatedDateChanging(System.DateTime value);
  177. partial void OnCreatedDateChanged();
  178. partial void OnStatusChanging(string value);
  179. partial void OnStatusChanged();
  180. partial void OnSummaryChanging(string value);
  181. partial void OnSummaryChanged();
  182. partial void OnAssigneeIdChanging(System.Nullable<System.Guid> value);
  183. partial void OnAssigneeIdChanged();
  184. partial void OnDueDateChanging(System.Nullable<System.DateTime> value);
  185. partial void OnDueDateChanged();
  186. partial void OnCompletedDateChanging(System.Nullable<System.DateTime> value);
  187. partial void OnCompletedDateChanged();
  188. partial void OnDescriptionChanging(string value);
  189. partial void OnDescriptionChanged();
  190. #endregion
  191. public Task()
  192. {
  193. OnCreated();
  194. }
  195. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
  196. public System.Guid Id
  197. {
  198. get
  199. {
  200. return this._Id;
  201. }
  202. set
  203. {
  204. if ((this._Id != value))
  205. {
  206. this.OnIdChanging(value);
  207. this.SendPropertyChanging();
  208. this._Id = value;
  209. this.SendPropertyChanged("Id");
  210. this.OnIdChanged();
  211. }
  212. }
  213. }
  214. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedDate", DbType="DateTime NOT NULL")]
  215. public System.DateTime CreatedDate
  216. {
  217. get
  218. {
  219. return this._CreatedDate;
  220. }
  221. set
  222. {
  223. if ((this._CreatedDate != value))
  224. {
  225. this.OnCreatedDateChanging(value);
  226. this.SendPropertyChanging();
  227. this._CreatedDate = value;
  228. this.SendPropertyChanged("CreatedDate");
  229. this.OnCreatedDateChanged();
  230. }
  231. }
  232. }
  233. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="NVarChar(50)")]
  234. public string Status
  235. {
  236. get
  237. {
  238. return this._Status;
  239. }
  240. set
  241. {
  242. if ((this._Status != value))
  243. {
  244. this.OnStatusChanging(value);
  245. this.SendPropertyChanging();
  246. this._Status = value;
  247. this.SendPropertyChanged("Status");
  248. this.OnStatusChanged();
  249. }
  250. }
  251. }
  252. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Summary", DbType="NVarChar(150) NOT NULL", CanBeNull=false)]
  253. public string Summary
  254. {
  255. get
  256. {
  257. return this._Summary;
  258. }
  259. set
  260. {
  261. if ((this._Summary != value))
  262. {
  263. this.OnSummaryChanging(value);
  264. this.SendPropertyChanging();
  265. this._Summary = value;
  266. this.SendPropertyChanged("Summary");
  267. this.OnSummaryChanged();
  268. }
  269. }
  270. }
  271. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AssigneeId", DbType="UniqueIdentifier")]
  272. public System.Nullable<System.Guid> AssigneeId
  273. {
  274. get
  275. {
  276. return this._AssigneeId;
  277. }
  278. set
  279. {
  280. if ((this._AssigneeId != value))
  281. {
  282. this.OnAssigneeIdChanging(value);
  283. this.SendPropertyChanging();
  284. this._AssigneeId = value;
  285. this.SendPropertyChanged("AssigneeId");
  286. this.OnAssigneeIdChanged();
  287. }
  288. }
  289. }
  290. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DueDate", DbType="DateTime")]
  291. public System.Nullable<System.DateTime> DueDate
  292. {
  293. get
  294. {
  295. return this._DueDate;
  296. }
  297. set
  298. {
  299. if ((this._DueDate != value))
  300. {
  301. this.OnDueDateChanging(value);
  302. this.SendPropertyChanging();
  303. this._DueDate = value;
  304. this.SendPropertyChanged("DueDate");
  305. this.OnDueDateChanged();
  306. }
  307. }
  308. }
  309. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletedDate", DbType="DateTime")]
  310. public System.Nullable<System.DateTime> CompletedDate
  311. {
  312. get
  313. {
  314. return this._CompletedDate;
  315. }
  316. set
  317. {
  318. if ((this._CompletedDate != value))
  319. {
  320. this.OnCompletedDateChanging(value);
  321. this.SendPropertyChanging();
  322. this._CompletedDate = value;
  323. this.SendPropertyChanged("CompletedDate");
  324. this.OnCompletedDateChanged();
  325. }
  326. }
  327. }
  328. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="Text", UpdateCheck=UpdateCheck.Never)]
  329. public string Description
  330. {
  331. get
  332. {
  333. return this._Description;
  334. }
  335. set
  336. {
  337. if ((this._Description != value))
  338. {
  339. this.OnDescriptionChanging(value);
  340. this.SendPropertyChanging();
  341. this._Description = value;
  342. this.SendPropertyChanged("Description");
  343. this.OnDescriptionChanged();
  344. }
  345. }
  346. }
  347. public event PropertyChangingEventHandler PropertyChanging;
  348. public event PropertyChangedEventHandler PropertyChanged;
  349. protected virtual void SendPropertyChanging()
  350. {
  351. if ((this.PropertyChanging != null))
  352. {
  353. this.PropertyChanging(this, emptyChangingEventArgs);
  354. }
  355. }
  356. protected virtual void SendPropertyChanged(String propertyName)
  357. {
  358. if ((this.PropertyChanged != null))
  359. {
  360. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  361. }
  362. }
  363. }
  364. [global::System.Data.Linq.Mapping.TableAttribute()]
  365. public partial class Settings : INotifyPropertyChanging, INotifyPropertyChanged
  366. {
  367. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  368. private System.Guid _Id;
  369. private string _CustomStyle;
  370. private string _CustomStatuses;
  371. private string _CustomLogoUrl;
  372. #region Extensibility Method Definitions
  373. partial void OnLoaded();
  374. partial void OnValidate(System.Data.Linq.ChangeAction action);
  375. partial void OnCreated();
  376. partial void OnIdChanging(System.Guid value);
  377. partial void OnIdChanged();
  378. partial void OnCustomStyleChanging(string value);
  379. partial void OnCustomStyleChanged();
  380. partial void OnCustomStatusesChanging(string value);
  381. partial void OnCustomStatusesChanged();
  382. partial void OnCustomLogoUrlChanging(string value);
  383. partial void OnCustomLogoUrlChanged();
  384. #endregion
  385. public Settings()
  386. {
  387. OnCreated();
  388. }
  389. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
  390. public System.Guid Id
  391. {
  392. get
  393. {
  394. return this._Id;
  395. }
  396. set
  397. {
  398. if ((this._Id != value))
  399. {
  400. this.OnIdChanging(value);
  401. this.SendPropertyChanging();
  402. this._Id = value;
  403. this.SendPropertyChanged("Id");
  404. this.OnIdChanged();
  405. }
  406. }
  407. }
  408. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CustomStyle", DbType="Text", UpdateCheck=UpdateCheck.Never)]
  409. public string CustomStyle
  410. {
  411. get
  412. {
  413. return this._CustomStyle;
  414. }
  415. set
  416. {
  417. if ((this._CustomStyle != value))
  418. {
  419. this.OnCustomStyleChanging(value);
  420. this.SendPropertyChanging();
  421. this._CustomStyle = value;
  422. this.SendPropertyChanged("CustomStyle");
  423. this.OnCustomStyleChanged();
  424. }
  425. }
  426. }
  427. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CustomStatuses", DbType="Text", UpdateCheck=UpdateCheck.Never)]
  428. public string CustomStatuses
  429. {
  430. get
  431. {
  432. return this._CustomStatuses;
  433. }
  434. set
  435. {
  436. if ((this._CustomStatuses != value))
  437. {
  438. this.OnCustomStatusesChanging(value);
  439. this.SendPropertyChanging();
  440. this._CustomStatuses = value;
  441. this.SendPropertyChanged("CustomStatuses");
  442. this.OnCustomStatusesChanged();
  443. }
  444. }
  445. }
  446. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CustomLogoUrl", DbType="NVarChar(255)")]
  447. public string CustomLogoUrl
  448. {
  449. get
  450. {
  451. return this._CustomLogoUrl;
  452. }
  453. set
  454. {
  455. if ((this._CustomLogoUrl != value))
  456. {
  457. this.OnCustomLogoUrlChanging(value);
  458. this.SendPropertyChanging();
  459. this._CustomLogoUrl = value;
  460. this.SendPropertyChanged("CustomLogoUrl");
  461. this.OnCustomLogoUrlChanged();
  462. }
  463. }
  464. }
  465. public event PropertyChangingEventHandler PropertyChanging;
  466. public event PropertyChangedEventHandler PropertyChanged;
  467. protected virtual void SendPropertyChanging()
  468. {
  469. if ((this.PropertyChanging != null))
  470. {
  471. this.PropertyChanging(this, emptyChangingEventArgs);
  472. }
  473. }
  474. protected virtual void SendPropertyChanged(String propertyName)
  475. {
  476. if ((this.PropertyChanged != null))
  477. {
  478. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  479. }
  480. }
  481. }
  482. }
  483. #pragma warning restore 1591