Advertisement
Guest User

Untitled

a guest
Nov 21st, 2011
1,930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 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 SilverlightApplication1.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 DataClasses1DataContext : 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. #endregion
  34.  
  35. public DataClasses1DataContext() :
  36. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString, mappingSource)
  37. {
  38. OnCreated();
  39. }
  40.  
  41. public DataClasses1DataContext(string connection) :
  42. base(connection, mappingSource)
  43. {
  44. OnCreated();
  45. }
  46.  
  47. public DataClasses1DataContext(System.Data.IDbConnection connection) :
  48. base(connection, mappingSource)
  49. {
  50. OnCreated();
  51. }
  52.  
  53. public DataClasses1DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  54. base(connection, mappingSource)
  55. {
  56. OnCreated();
  57. }
  58.  
  59. public DataClasses1DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  60. base(connection, mappingSource)
  61. {
  62. OnCreated();
  63. }
  64.  
  65. public System.Data.Linq.Table<tblPersoon> tblPersoons
  66. {
  67. get
  68. {
  69. return this.GetTable<tblPersoon>();
  70. }
  71. }
  72. }
  73.  
  74. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tblPersoon")]
  75. public partial class tblPersoon
  76. {
  77.  
  78. private string _id;
  79.  
  80. private string _naam;
  81.  
  82. private string _voornaam;
  83.  
  84. private System.Nullable<int> _leeftijd;
  85.  
  86. public tblPersoon()
  87. {
  88. }
  89.  
  90. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", DbType="NChar(10) NOT NULL", CanBeNull=false)]
  91. public string id
  92. {
  93. get
  94. {
  95. return this._id;
  96. }
  97. set
  98. {
  99. if ((this._id != value))
  100. {
  101. this._id = value;
  102. }
  103. }
  104. }
  105.  
  106. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_naam", DbType="VarChar(50)")]
  107. public string naam
  108. {
  109. get
  110. {
  111. return this._naam;
  112. }
  113. set
  114. {
  115. if ((this._naam != value))
  116. {
  117. this._naam = value;
  118. }
  119. }
  120. }
  121.  
  122. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_voornaam", DbType="VarChar(50)")]
  123. public string voornaam
  124. {
  125. get
  126. {
  127. return this._voornaam;
  128. }
  129. set
  130. {
  131. if ((this._voornaam != value))
  132. {
  133. this._voornaam = value;
  134. }
  135. }
  136. }
  137.  
  138. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_leeftijd", DbType="Int")]
  139. public System.Nullable<int> leeftijd
  140. {
  141. get
  142. {
  143. return this._leeftijd;
  144. }
  145. set
  146. {
  147. if ((this._leeftijd != value))
  148. {
  149. this._leeftijd = value;
  150. }
  151. }
  152. }
  153. }
  154. }
  155. #pragma warning restore 1591
  156.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement