Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2011
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.79 KB | None | 0 0
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.239
  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.  
  12. namespace OndernemersAward.Web
  13. {
  14. using System.Data.Linq;
  15. using System.Data.Linq.Mapping;
  16. using System.Data;
  17. using System.Collections.Generic;
  18. using System.Reflection;
  19. using System.Linq;
  20. using System.Linq.Expressions;
  21. using System.ComponentModel;
  22. using System;
  23.  
  24.  
  25. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="Database")]
  26. public partial class DataClassesDataContext : System.Data.Linq.DataContext
  27. {
  28.  
  29. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  30.  
  31. #region Extensibility Method Definitions
  32. partial void OnCreated();
  33. partial void InsertMedia(Media instance);
  34. partial void UpdateMedia(Media instance);
  35. partial void DeleteMedia(Media instance);
  36. partial void InsertInschrijvingen(Inschrijvingen instance);
  37. partial void UpdateInschrijvingen(Inschrijvingen instance);
  38. partial void DeleteInschrijvingen(Inschrijvingen instance);
  39. partial void InsertBedrijven(Bedrijven instance);
  40. partial void UpdateBedrijven(Bedrijven instance);
  41. partial void DeleteBedrijven(Bedrijven instance);
  42. partial void InsertAdmin(Admin instance);
  43. partial void UpdateAdmin(Admin instance);
  44. partial void DeleteAdmin(Admin instance);
  45. #endregion
  46.  
  47. public DataClassesDataContext() :
  48. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString, mappingSource)
  49. {
  50. OnCreated();
  51. }
  52.  
  53. public DataClassesDataContext(string connection) :
  54. base(connection, mappingSource)
  55. {
  56. OnCreated();
  57. }
  58.  
  59. public DataClassesDataContext(System.Data.IDbConnection connection) :
  60. base(connection, mappingSource)
  61. {
  62. OnCreated();
  63. }
  64.  
  65. public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  66. base(connection, mappingSource)
  67. {
  68. OnCreated();
  69. }
  70.  
  71. public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  72. base(connection, mappingSource)
  73. {
  74. OnCreated();
  75. }
  76.  
  77. public System.Data.Linq.Table<Media> Medias
  78. {
  79. get
  80. {
  81. return this.GetTable<Media>();
  82. }
  83. }
  84.  
  85. public System.Data.Linq.Table<Inschrijvingen> Inschrijvingens
  86. {
  87. get
  88. {
  89. return this.GetTable<Inschrijvingen>();
  90. }
  91. }
  92.  
  93. public System.Data.Linq.Table<Bedrijven> Bedrijvens
  94. {
  95. get
  96. {
  97. return this.GetTable<Bedrijven>();
  98. }
  99. }
  100.  
  101. public System.Data.Linq.Table<Admin> Admins
  102. {
  103. get
  104. {
  105. return this.GetTable<Admin>();
  106. }
  107. }
  108. }
  109.  
  110. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Media")]
  111. public partial class Media : INotifyPropertyChanging, INotifyPropertyChanged
  112. {
  113.  
  114. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  115.  
  116. private int _id;
  117.  
  118. private string _naam;
  119.  
  120. private string _url;
  121.  
  122. #region Extensibility Method Definitions
  123. partial void OnLoaded();
  124. partial void OnValidate(System.Data.Linq.ChangeAction action);
  125. partial void OnCreated();
  126. partial void OnidChanging(int value);
  127. partial void OnidChanged();
  128. partial void OnnaamChanging(string value);
  129. partial void OnnaamChanged();
  130. partial void OnurlChanging(string value);
  131. partial void OnurlChanged();
  132. #endregion
  133.  
  134. public Media()
  135. {
  136. OnCreated();
  137. }
  138.  
  139. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  140. public int id
  141. {
  142. get
  143. {
  144. return this._id;
  145. }
  146. set
  147. {
  148. if ((this._id != value))
  149. {
  150. this.OnidChanging(value);
  151. this.SendPropertyChanging();
  152. this._id = value;
  153. this.SendPropertyChanged("id");
  154. this.OnidChanged();
  155. }
  156. }
  157. }
  158.  
  159. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  160. public string naam
  161. {
  162. get
  163. {
  164. return this._naam;
  165. }
  166. set
  167. {
  168. if ((this._naam != value))
  169. {
  170. this.OnnaamChanging(value);
  171. this.SendPropertyChanging();
  172. this._naam = value;
  173. this.SendPropertyChanged("naam");
  174. this.OnnaamChanged();
  175. }
  176. }
  177. }
  178.  
  179. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_url", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  180. public string url
  181. {
  182. get
  183. {
  184. return this._url;
  185. }
  186. set
  187. {
  188. if ((this._url != value))
  189. {
  190. this.OnurlChanging(value);
  191. this.SendPropertyChanging();
  192. this._url = value;
  193. this.SendPropertyChanged("url");
  194. this.OnurlChanged();
  195. }
  196. }
  197. }
  198.  
  199. public event PropertyChangingEventHandler PropertyChanging;
  200.  
  201. public event PropertyChangedEventHandler PropertyChanged;
  202.  
  203. protected virtual void SendPropertyChanging()
  204. {
  205. if ((this.PropertyChanging != null))
  206. {
  207. this.PropertyChanging(this, emptyChangingEventArgs);
  208. }
  209. }
  210.  
  211. protected virtual void SendPropertyChanged(String propertyName)
  212. {
  213. if ((this.PropertyChanged != null))
  214. {
  215. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  216. }
  217. }
  218. }
  219.  
  220. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Inschrijvingen")]
  221. public partial class Inschrijvingen : INotifyPropertyChanging, INotifyPropertyChanged
  222. {
  223.  
  224. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  225.  
  226. private int _id;
  227.  
  228. private string _naam;
  229.  
  230. private string _voornaam;
  231.  
  232. private string _email;
  233.  
  234. #region Extensibility Method Definitions
  235. partial void OnLoaded();
  236. partial void OnValidate(System.Data.Linq.ChangeAction action);
  237. partial void OnCreated();
  238. partial void OnidChanging(int value);
  239. partial void OnidChanged();
  240. partial void OnnaamChanging(string value);
  241. partial void OnnaamChanged();
  242. partial void OnvoornaamChanging(string value);
  243. partial void OnvoornaamChanged();
  244. partial void OnemailChanging(string value);
  245. partial void OnemailChanged();
  246. #endregion
  247.  
  248. public Inschrijvingen()
  249. {
  250. OnCreated();
  251. }
  252.  
  253. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  254. public int id
  255. {
  256. get
  257. {
  258. return this._id;
  259. }
  260. set
  261. {
  262. if ((this._id != value))
  263. {
  264. this.OnidChanging(value);
  265. this.SendPropertyChanging();
  266. this._id = value;
  267. this.SendPropertyChanged("id");
  268. this.OnidChanged();
  269. }
  270. }
  271. }
  272.  
  273. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  274. public string naam
  275. {
  276. get
  277. {
  278. return this._naam;
  279. }
  280. set
  281. {
  282. if ((this._naam != value))
  283. {
  284. this.OnnaamChanging(value);
  285. this.SendPropertyChanging();
  286. this._naam = value;
  287. this.SendPropertyChanged("naam");
  288. this.OnnaamChanged();
  289. }
  290. }
  291. }
  292.  
  293. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_voornaam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  294. public string voornaam
  295. {
  296. get
  297. {
  298. return this._voornaam;
  299. }
  300. set
  301. {
  302. if ((this._voornaam != value))
  303. {
  304. this.OnvoornaamChanging(value);
  305. this.SendPropertyChanging();
  306. this._voornaam = value;
  307. this.SendPropertyChanged("voornaam");
  308. this.OnvoornaamChanged();
  309. }
  310. }
  311. }
  312.  
  313. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_email", DbType="VarChar(MAX)")]
  314. public string email
  315. {
  316. get
  317. {
  318. return this._email;
  319. }
  320. set
  321. {
  322. if ((this._email != value))
  323. {
  324. this.OnemailChanging(value);
  325. this.SendPropertyChanging();
  326. this._email = value;
  327. this.SendPropertyChanged("email");
  328. this.OnemailChanged();
  329. }
  330. }
  331. }
  332.  
  333. public event PropertyChangingEventHandler PropertyChanging;
  334.  
  335. public event PropertyChangedEventHandler PropertyChanged;
  336.  
  337. protected virtual void SendPropertyChanging()
  338. {
  339. if ((this.PropertyChanging != null))
  340. {
  341. this.PropertyChanging(this, emptyChangingEventArgs);
  342. }
  343. }
  344.  
  345. protected virtual void SendPropertyChanged(String propertyName)
  346. {
  347. if ((this.PropertyChanged != null))
  348. {
  349. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  350. }
  351. }
  352. }
  353.  
  354. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Bedrijven")]
  355. public partial class Bedrijven : INotifyPropertyChanging, INotifyPropertyChanged
  356. {
  357.  
  358. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  359.  
  360. private int _id;
  361.  
  362. private string _naam;
  363.  
  364. private string _beschrijving;
  365.  
  366. private System.Nullable<int> _rank;
  367.  
  368. #region Extensibility Method Definitions
  369. partial void OnLoaded();
  370. partial void OnValidate(System.Data.Linq.ChangeAction action);
  371. partial void OnCreated();
  372. partial void OnidChanging(int value);
  373. partial void OnidChanged();
  374. partial void OnnaamChanging(string value);
  375. partial void OnnaamChanged();
  376. partial void OnbeschrijvingChanging(string value);
  377. partial void OnbeschrijvingChanged();
  378. partial void OnrankChanging(System.Nullable<int> value);
  379. partial void OnrankChanged();
  380. #endregion
  381.  
  382. public Bedrijven()
  383. {
  384. OnCreated();
  385. }
  386.  
  387. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  388. public int id
  389. {
  390. get
  391. {
  392. return this._id;
  393. }
  394. set
  395. {
  396. if ((this._id != value))
  397. {
  398. this.OnidChanging(value);
  399. this.SendPropertyChanging();
  400. this._id = value;
  401. this.SendPropertyChanged("id");
  402. this.OnidChanged();
  403. }
  404. }
  405. }
  406.  
  407. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  408. public string naam
  409. {
  410. get
  411. {
  412. return this._naam;
  413. }
  414. set
  415. {
  416. if ((this._naam != value))
  417. {
  418. this.OnnaamChanging(value);
  419. this.SendPropertyChanging();
  420. this._naam = value;
  421. this.SendPropertyChanged("naam");
  422. this.OnnaamChanged();
  423. }
  424. }
  425. }
  426.  
  427. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_beschrijving", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  428. public string beschrijving
  429. {
  430. get
  431. {
  432. return this._beschrijving;
  433. }
  434. set
  435. {
  436. if ((this._beschrijving != value))
  437. {
  438. this.OnbeschrijvingChanging(value);
  439. this.SendPropertyChanging();
  440. this._beschrijving = value;
  441. this.SendPropertyChanged("beschrijving");
  442. this.OnbeschrijvingChanged();
  443. }
  444. }
  445. }
  446.  
  447. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_rank", DbType="Int")]
  448. public System.Nullable<int> rank
  449. {
  450. get
  451. {
  452. return this._rank;
  453. }
  454. set
  455. {
  456. if ((this._rank != value))
  457. {
  458. this.OnrankChanging(value);
  459. this.SendPropertyChanging();
  460. this._rank = value;
  461. this.SendPropertyChanged("rank");
  462. this.OnrankChanged();
  463. }
  464. }
  465. }
  466.  
  467. public event PropertyChangingEventHandler PropertyChanging;
  468.  
  469. public event PropertyChangedEventHandler PropertyChanged;
  470.  
  471. protected virtual void SendPropertyChanging()
  472. {
  473. if ((this.PropertyChanging != null))
  474. {
  475. this.PropertyChanging(this, emptyChangingEventArgs);
  476. }
  477. }
  478.  
  479. protected virtual void SendPropertyChanged(String propertyName)
  480. {
  481. if ((this.PropertyChanged != null))
  482. {
  483. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  484. }
  485. }
  486. }
  487.  
  488. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Admin")]
  489. public partial class Admin : INotifyPropertyChanging, INotifyPropertyChanged
  490. {
  491.  
  492. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  493.  
  494. private int _id;
  495.  
  496. private string _login;
  497.  
  498. private string _wachtwoord;
  499.  
  500. #region Extensibility Method Definitions
  501. partial void OnLoaded();
  502. partial void OnValidate(System.Data.Linq.ChangeAction action);
  503. partial void OnCreated();
  504. partial void OnidChanging(int value);
  505. partial void OnidChanged();
  506. partial void OnloginChanging(string value);
  507. partial void OnloginChanged();
  508. partial void OnwachtwoordChanging(string value);
  509. partial void OnwachtwoordChanged();
  510. #endregion
  511.  
  512. public Admin()
  513. {
  514. OnCreated();
  515. }
  516.  
  517. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  518. public int id
  519. {
  520. get
  521. {
  522. return this._id;
  523. }
  524. set
  525. {
  526. if ((this._id != value))
  527. {
  528. this.OnidChanging(value);
  529. this.SendPropertyChanging();
  530. this._id = value;
  531. this.SendPropertyChanged("id");
  532. this.OnidChanged();
  533. }
  534. }
  535. }
  536.  
  537. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_login", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  538. public string login
  539. {
  540. get
  541. {
  542. return this._login;
  543. }
  544. set
  545. {
  546. if ((this._login != value))
  547. {
  548. this.OnloginChanging(value);
  549. this.SendPropertyChanging();
  550. this._login = value;
  551. this.SendPropertyChanged("login");
  552. this.OnloginChanged();
  553. }
  554. }
  555. }
  556.  
  557. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_wachtwoord", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)]
  558. public string wachtwoord
  559. {
  560. get
  561. {
  562. return this._wachtwoord;
  563. }
  564. set
  565. {
  566. if ((this._wachtwoord != value))
  567. {
  568. this.OnwachtwoordChanging(value);
  569. this.SendPropertyChanging();
  570. this._wachtwoord = value;
  571. this.SendPropertyChanged("wachtwoord");
  572. this.OnwachtwoordChanged();
  573. }
  574. }
  575. }
  576.  
  577. public event PropertyChangingEventHandler PropertyChanging;
  578.  
  579. public event PropertyChangedEventHandler PropertyChanged;
  580.  
  581. protected virtual void SendPropertyChanging()
  582. {
  583. if ((this.PropertyChanging != null))
  584. {
  585. this.PropertyChanging(this, emptyChangingEventArgs);
  586. }
  587. }
  588.  
  589. protected virtual void SendPropertyChanged(String propertyName)
  590. {
  591. if ((this.PropertyChanged != null))
  592. {
  593. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  594. }
  595. }
  596. }
  597. }
  598. #pragma warning restore 1591
  599.  
  600.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement