PageRenderTime 46ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Core/Model/DataAccess/DB.designer.cs

https://github.com/minhajuddin/openidauth
C# | 187 lines | 153 code | 25 blank | 9 comment | 10 complexity | c04b951d39a8bcdd93c93dbf571cafd8 MD5 | raw file
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:2.0.50727.3053
  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 OpenIdAuth.Core.Model.DataAccess.Context
  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. [System.Data.Linq.Mapping.DatabaseAttribute(Name="OpenIdAuth")]
  21. public partial class DB : 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 InsertUser(OpenIdAuth.Core.Model.DataAccess.Entity.User instance);
  27. partial void UpdateUser(OpenIdAuth.Core.Model.DataAccess.Entity.User instance);
  28. partial void DeleteUser(OpenIdAuth.Core.Model.DataAccess.Entity.User instance);
  29. #endregion
  30. public DB(string connection) :
  31. base(connection, mappingSource)
  32. {
  33. OnCreated();
  34. }
  35. public DB(System.Data.IDbConnection connection) :
  36. base(connection, mappingSource)
  37. {
  38. OnCreated();
  39. }
  40. public DB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  41. base(connection, mappingSource)
  42. {
  43. OnCreated();
  44. }
  45. public DB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  46. base(connection, mappingSource)
  47. {
  48. OnCreated();
  49. }
  50. public System.Data.Linq.Table<OpenIdAuth.Core.Model.DataAccess.Entity.User> Users
  51. {
  52. get
  53. {
  54. return this.GetTable<OpenIdAuth.Core.Model.DataAccess.Entity.User>();
  55. }
  56. }
  57. }
  58. }
  59. namespace OpenIdAuth.Core.Model.DataAccess.Entity
  60. {
  61. using System.Data.Linq;
  62. using System.Data.Linq.Mapping;
  63. using System.ComponentModel;
  64. using System;
  65. [Table(Name="dbo.Users")]
  66. public partial class User : INotifyPropertyChanging, INotifyPropertyChanged
  67. {
  68. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  69. private int _UserId;
  70. private string _UserName;
  71. private string _Password;
  72. #region Extensibility Method Definitions
  73. partial void OnLoaded();
  74. partial void OnValidate(System.Data.Linq.ChangeAction action);
  75. partial void OnCreated();
  76. partial void OnUserIdChanging(int value);
  77. partial void OnUserIdChanged();
  78. partial void OnUserNameChanging(string value);
  79. partial void OnUserNameChanged();
  80. partial void OnPasswordChanging(string value);
  81. partial void OnPasswordChanged();
  82. #endregion
  83. public User()
  84. {
  85. OnCreated();
  86. }
  87. [Column(Storage="_UserId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  88. public int UserId
  89. {
  90. get
  91. {
  92. return this._UserId;
  93. }
  94. set
  95. {
  96. if ((this._UserId != value))
  97. {
  98. this.OnUserIdChanging(value);
  99. this.SendPropertyChanging();
  100. this._UserId = value;
  101. this.SendPropertyChanged("UserId");
  102. this.OnUserIdChanged();
  103. }
  104. }
  105. }
  106. [Column(Storage="_UserName", DbType="VarChar(200) NOT NULL", CanBeNull=false)]
  107. public string UserName
  108. {
  109. get
  110. {
  111. return this._UserName;
  112. }
  113. set
  114. {
  115. if ((this._UserName != value))
  116. {
  117. this.OnUserNameChanging(value);
  118. this.SendPropertyChanging();
  119. this._UserName = value;
  120. this.SendPropertyChanged("UserName");
  121. this.OnUserNameChanged();
  122. }
  123. }
  124. }
  125. [Column(Storage="_Password", DbType="VarChar(200) NOT NULL", CanBeNull=false)]
  126. public string Password
  127. {
  128. get
  129. {
  130. return this._Password;
  131. }
  132. set
  133. {
  134. if ((this._Password != value))
  135. {
  136. this.OnPasswordChanging(value);
  137. this.SendPropertyChanging();
  138. this._Password = value;
  139. this.SendPropertyChanged("Password");
  140. this.OnPasswordChanged();
  141. }
  142. }
  143. }
  144. public event PropertyChangingEventHandler PropertyChanging;
  145. public event PropertyChangedEventHandler PropertyChanged;
  146. protected virtual void SendPropertyChanging()
  147. {
  148. if ((this.PropertyChanging != null))
  149. {
  150. this.PropertyChanging(this, emptyChangingEventArgs);
  151. }
  152. }
  153. protected virtual void SendPropertyChanged(String propertyName)
  154. {
  155. if ((this.PropertyChanged != null))
  156. {
  157. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  158. }
  159. }
  160. }
  161. }
  162. #pragma warning restore 1591