Bez popisu

Model1.Designer.cs 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated from a template.
  4. //
  5. // Manual changes to this file may cause unexpected behavior in your application.
  6. // Manual changes to this file will be overwritten if the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. using System;
  10. using System.ComponentModel;
  11. using System.Data.EntityClient;
  12. using System.Data.Objects;
  13. using System.Data.Objects.DataClasses;
  14. using System.Linq;
  15. using System.Runtime.Serialization;
  16. using System.Xml.Serialization;
  17. [assembly: EdmSchemaAttribute()]
  18. namespace WpfApplication19
  19. {
  20. #region Contexts
  21. /// <summary>
  22. /// No Metadata Documentation available.
  23. /// </summary>
  24. public partial class labEntities : ObjectContext
  25. {
  26. #region Constructors
  27. /// <summary>
  28. /// Initializes a new labEntities object using the connection string found in the 'labEntities' section of the application configuration file.
  29. /// </summary>
  30. public labEntities() : base("name=labEntities", "labEntities")
  31. {
  32. this.ContextOptions.LazyLoadingEnabled = true;
  33. OnContextCreated();
  34. }
  35. /// <summary>
  36. /// Initialize a new labEntities object.
  37. /// </summary>
  38. public labEntities(string connectionString) : base(connectionString, "labEntities")
  39. {
  40. this.ContextOptions.LazyLoadingEnabled = true;
  41. OnContextCreated();
  42. }
  43. /// <summary>
  44. /// Initialize a new labEntities object.
  45. /// </summary>
  46. public labEntities(EntityConnection connection) : base(connection, "labEntities")
  47. {
  48. this.ContextOptions.LazyLoadingEnabled = true;
  49. OnContextCreated();
  50. }
  51. #endregion
  52. #region Partial Methods
  53. partial void OnContextCreated();
  54. #endregion
  55. #region ObjectSet Properties
  56. /// <summary>
  57. /// No Metadata Documentation available.
  58. /// </summary>
  59. public ObjectSet<user> users
  60. {
  61. get
  62. {
  63. if ((_users == null))
  64. {
  65. _users = base.CreateObjectSet<user>("users");
  66. }
  67. return _users;
  68. }
  69. }
  70. private ObjectSet<user> _users;
  71. #endregion
  72. #region AddTo Methods
  73. /// <summary>
  74. /// Deprecated Method for adding a new object to the users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  75. /// </summary>
  76. public void AddTousers(user user)
  77. {
  78. base.AddObject("users", user);
  79. }
  80. #endregion
  81. }
  82. #endregion
  83. #region Entities
  84. /// <summary>
  85. /// No Metadata Documentation available.
  86. /// </summary>
  87. [EdmEntityTypeAttribute(NamespaceName="labModel", Name="user")]
  88. [Serializable()]
  89. [DataContractAttribute(IsReference=true)]
  90. public partial class user : EntityObject
  91. {
  92. #region Factory Method
  93. /// <summary>
  94. /// Create a new user object.
  95. /// </summary>
  96. /// <param name="id">Initial value of the id property.</param>
  97. public static user Createuser(global::System.Int32 id)
  98. {
  99. user user = new user();
  100. user.id = id;
  101. return user;
  102. }
  103. #endregion
  104. #region Primitive Properties
  105. /// <summary>
  106. /// No Metadata Documentation available.
  107. /// </summary>
  108. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  109. [DataMemberAttribute()]
  110. public global::System.Int32 id
  111. {
  112. get
  113. {
  114. return _id;
  115. }
  116. set
  117. {
  118. if (_id != value)
  119. {
  120. OnidChanging(value);
  121. ReportPropertyChanging("id");
  122. _id = StructuralObject.SetValidValue(value);
  123. ReportPropertyChanged("id");
  124. OnidChanged();
  125. }
  126. }
  127. }
  128. private global::System.Int32 _id;
  129. partial void OnidChanging(global::System.Int32 value);
  130. partial void OnidChanged();
  131. /// <summary>
  132. /// No Metadata Documentation available.
  133. /// </summary>
  134. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  135. [DataMemberAttribute()]
  136. public global::System.String email
  137. {
  138. get
  139. {
  140. return _email;
  141. }
  142. set
  143. {
  144. OnemailChanging(value);
  145. ReportPropertyChanging("email");
  146. _email = StructuralObject.SetValidValue(value, true);
  147. ReportPropertyChanged("email");
  148. OnemailChanged();
  149. }
  150. }
  151. private global::System.String _email;
  152. partial void OnemailChanging(global::System.String value);
  153. partial void OnemailChanged();
  154. /// <summary>
  155. /// No Metadata Documentation available.
  156. /// </summary>
  157. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  158. [DataMemberAttribute()]
  159. public global::System.String hashed_password
  160. {
  161. get
  162. {
  163. return _hashed_password;
  164. }
  165. set
  166. {
  167. Onhashed_passwordChanging(value);
  168. ReportPropertyChanging("hashed_password");
  169. _hashed_password = StructuralObject.SetValidValue(value, true);
  170. ReportPropertyChanged("hashed_password");
  171. Onhashed_passwordChanged();
  172. }
  173. }
  174. private global::System.String _hashed_password;
  175. partial void Onhashed_passwordChanging(global::System.String value);
  176. partial void Onhashed_passwordChanged();
  177. /// <summary>
  178. /// No Metadata Documentation available.
  179. /// </summary>
  180. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  181. [DataMemberAttribute()]
  182. public Nullable<global::System.DateTime> created_at
  183. {
  184. get
  185. {
  186. return _created_at;
  187. }
  188. set
  189. {
  190. Oncreated_atChanging(value);
  191. ReportPropertyChanging("created_at");
  192. _created_at = StructuralObject.SetValidValue(value);
  193. ReportPropertyChanged("created_at");
  194. Oncreated_atChanged();
  195. }
  196. }
  197. private Nullable<global::System.DateTime> _created_at;
  198. partial void Oncreated_atChanging(Nullable<global::System.DateTime> value);
  199. partial void Oncreated_atChanged();
  200. /// <summary>
  201. /// No Metadata Documentation available.
  202. /// </summary>
  203. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  204. [DataMemberAttribute()]
  205. public Nullable<global::System.DateTime> updated_at
  206. {
  207. get
  208. {
  209. return _updated_at;
  210. }
  211. set
  212. {
  213. Onupdated_atChanging(value);
  214. ReportPropertyChanging("updated_at");
  215. _updated_at = StructuralObject.SetValidValue(value);
  216. ReportPropertyChanged("updated_at");
  217. Onupdated_atChanged();
  218. }
  219. }
  220. private Nullable<global::System.DateTime> _updated_at;
  221. partial void Onupdated_atChanging(Nullable<global::System.DateTime> value);
  222. partial void Onupdated_atChanged();
  223. /// <summary>
  224. /// No Metadata Documentation available.
  225. /// </summary>
  226. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  227. [DataMemberAttribute()]
  228. public Nullable<global::System.Boolean> active
  229. {
  230. get
  231. {
  232. return _active;
  233. }
  234. set
  235. {
  236. OnactiveChanging(value);
  237. ReportPropertyChanging("active");
  238. _active = StructuralObject.SetValidValue(value);
  239. ReportPropertyChanged("active");
  240. OnactiveChanged();
  241. }
  242. }
  243. private Nullable<global::System.Boolean> _active;
  244. partial void OnactiveChanging(Nullable<global::System.Boolean> value);
  245. partial void OnactiveChanged();
  246. #endregion
  247. }
  248. #endregion
  249. }