Sin descripción

Model1.Designer.cs 8.8KB

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