DataClasses1.designer.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // Этот код создан программой.
  5. // Исполняемая версия:4.0.30319.42000
  6. //
  7. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  8. // повторной генерации кода.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace WindowsFormsApp1
  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. using System.ComponentModel;
  21. using System;
  22. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="aero")]
  23. public partial class DataClasses1DataContext : System.Data.Linq.DataContext
  24. {
  25. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  26. #region Определения метода расширяемости
  27. partial void OnCreated();
  28. partial void InsertUsers(Users instance);
  29. partial void UpdateUsers(Users instance);
  30. partial void DeleteUsers(Users instance);
  31. #endregion
  32. public DataClasses1DataContext() :
  33. base(global::WindowsFormsApp1.Properties.Settings.Default.aeroConnectionString, mappingSource)
  34. {
  35. OnCreated();
  36. }
  37. public DataClasses1DataContext(string connection) :
  38. base(connection, mappingSource)
  39. {
  40. OnCreated();
  41. }
  42. public DataClasses1DataContext(System.Data.IDbConnection connection) :
  43. base(connection, mappingSource)
  44. {
  45. OnCreated();
  46. }
  47. public DataClasses1DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  48. base(connection, mappingSource)
  49. {
  50. OnCreated();
  51. }
  52. public DataClasses1DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  53. base(connection, mappingSource)
  54. {
  55. OnCreated();
  56. }
  57. public System.Data.Linq.Table<Users> Users
  58. {
  59. get
  60. {
  61. return this.GetTable<Users>();
  62. }
  63. }
  64. }
  65. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Users")]
  66. public partial class Users : INotifyPropertyChanging, INotifyPropertyChanged
  67. {
  68. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  69. private int _id;
  70. private string _Login;
  71. private string _Password;
  72. #region Определения метода расширяемости
  73. partial void OnLoaded();
  74. partial void OnValidate(System.Data.Linq.ChangeAction action);
  75. partial void OnCreated();
  76. partial void OnidChanging(int value);
  77. partial void OnidChanged();
  78. partial void OnLoginChanging(string value);
  79. partial void OnLoginChanged();
  80. partial void OnPasswordChanging(string value);
  81. partial void OnPasswordChanged();
  82. #endregion
  83. public Users()
  84. {
  85. OnCreated();
  86. }
  87. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  88. public int id
  89. {
  90. get
  91. {
  92. return this._id;
  93. }
  94. set
  95. {
  96. if ((this._id != value))
  97. {
  98. this.OnidChanging(value);
  99. this.SendPropertyChanging();
  100. this._id = value;
  101. this.SendPropertyChanged("id");
  102. this.OnidChanged();
  103. }
  104. }
  105. }
  106. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Login", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  107. public string Login
  108. {
  109. get
  110. {
  111. return this._Login;
  112. }
  113. set
  114. {
  115. if ((this._Login != value))
  116. {
  117. this.OnLoginChanging(value);
  118. this.SendPropertyChanging();
  119. this._Login = value;
  120. this.SendPropertyChanged("Login");
  121. this.OnLoginChanged();
  122. }
  123. }
  124. }
  125. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(50) 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