/API/v1/Endpoints/Security/Models/Security/Security.designer.cs

https://gitlab.com/DiruzCode/ingenio_streaming · C# · 352 lines · 297 code · 46 blank · 9 comment · 26 complexity · d8bd70bcebeef4fd2015c7715b6f6902 MD5 · raw file

  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.34209
  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 API.Endpoints.Security.Models.Security
  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. public partial class SecurityDataContext : System.Data.Linq.DataContext
  23. {
  24. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  25. #region Extensibility Method Definitions
  26. partial void OnCreated();
  27. partial void InsertRole(Role instance);
  28. partial void UpdateRole(Role instance);
  29. partial void DeleteRole(Role instance);
  30. #endregion
  31. public SecurityDataContext(string connection) :
  32. base(connection, mappingSource)
  33. {
  34. OnCreated();
  35. }
  36. public SecurityDataContext(System.Data.IDbConnection connection) :
  37. base(connection, mappingSource)
  38. {
  39. OnCreated();
  40. }
  41. public SecurityDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  42. base(connection, mappingSource)
  43. {
  44. OnCreated();
  45. }
  46. public SecurityDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  47. base(connection, mappingSource)
  48. {
  49. OnCreated();
  50. }
  51. public System.Data.Linq.Table<CustomCredentials> CustomCredentials
  52. {
  53. get
  54. {
  55. return this.GetTable<CustomCredentials>();
  56. }
  57. }
  58. public System.Data.Linq.Table<Account> Account
  59. {
  60. get
  61. {
  62. return this.GetTable<Account>();
  63. }
  64. }
  65. public System.Data.Linq.Table<Role> Roles
  66. {
  67. get
  68. {
  69. return this.GetTable<Role>();
  70. }
  71. }
  72. }
  73. [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
  74. public partial class CustomCredentials
  75. {
  76. private string _username;
  77. private string _password;
  78. public CustomCredentials()
  79. {
  80. }
  81. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_username", CanBeNull=false)]
  82. public string username
  83. {
  84. get
  85. {
  86. return this._username;
  87. }
  88. set
  89. {
  90. if ((this._username != value))
  91. {
  92. this._username = value;
  93. }
  94. }
  95. }
  96. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_password", CanBeNull=false)]
  97. public string password
  98. {
  99. get
  100. {
  101. return this._password;
  102. }
  103. set
  104. {
  105. if ((this._password != value))
  106. {
  107. this._password = value;
  108. }
  109. }
  110. }
  111. }
  112. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.VT_Usuarios")]
  113. public partial class Account
  114. {
  115. private System.Guid _token;
  116. private System.DateTime _createdAt;
  117. private System.Nullable<System.Guid> _avatar;
  118. private string _email;
  119. private string _fullname;
  120. private System.DateTime _lastConnection;
  121. private List<Role> _roles;
  122. public Account()
  123. {
  124. }
  125. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_Token", Storage="_token", DbType="UniqueIdentifier NOT NULL")]
  126. public System.Guid token
  127. {
  128. get
  129. {
  130. return this._token;
  131. }
  132. set
  133. {
  134. if ((this._token != value))
  135. {
  136. this._token = value;
  137. }
  138. }
  139. }
  140. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_FechaCreacion", Storage="_createdAt", DbType="DateTime NOT NULL")]
  141. public System.DateTime createdAt
  142. {
  143. get
  144. {
  145. return this._createdAt;
  146. }
  147. set
  148. {
  149. if ((this._createdAt != value))
  150. {
  151. this._createdAt = value;
  152. }
  153. }
  154. }
  155. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_Avatar", Storage="_avatar", DbType="UniqueIdentifier")]
  156. public System.Nullable<System.Guid> avatar
  157. {
  158. get
  159. {
  160. return this._avatar;
  161. }
  162. set
  163. {
  164. if ((this._avatar != value))
  165. {
  166. this._avatar = value;
  167. }
  168. }
  169. }
  170. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_Email", Storage="_email", DbType="VarChar(100) NOT NULL", CanBeNull=false)]
  171. public string email
  172. {
  173. get
  174. {
  175. return this._email;
  176. }
  177. set
  178. {
  179. if ((this._email != value))
  180. {
  181. this._email = value;
  182. }
  183. }
  184. }
  185. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_NombreCompleto", Storage="_fullname", DbType="VarChar(250) NOT NULL", CanBeNull=false)]
  186. public string fullname
  187. {
  188. get
  189. {
  190. return this._fullname;
  191. }
  192. set
  193. {
  194. if ((this._fullname != value))
  195. {
  196. this._fullname = value;
  197. }
  198. }
  199. }
  200. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_UltimaConexion", Storage="_lastConnection", DbType="DateTime NOT NULL")]
  201. public System.DateTime lastConnection
  202. {
  203. get
  204. {
  205. return this._lastConnection;
  206. }
  207. set
  208. {
  209. if ((this._lastConnection != value))
  210. {
  211. this._lastConnection = value;
  212. }
  213. }
  214. }
  215. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="", Storage="_roles", CanBeNull=false)]
  216. public List<Role> roles
  217. {
  218. get
  219. {
  220. return this._roles;
  221. }
  222. set
  223. {
  224. if ((this._roles != value))
  225. {
  226. this._roles = value;
  227. }
  228. }
  229. }
  230. }
  231. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.V_Perfiles")]
  232. public partial class Role : INotifyPropertyChanging, INotifyPropertyChanged
  233. {
  234. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  235. private System.Guid _token;
  236. private string _identifier;
  237. #region Extensibility Method Definitions
  238. partial void OnLoaded();
  239. partial void OnValidate(System.Data.Linq.ChangeAction action);
  240. partial void OnCreated();
  241. partial void OntokenChanging(System.Guid value);
  242. partial void OntokenChanged();
  243. partial void OnidentifierChanging(string value);
  244. partial void OnidentifierChanged();
  245. #endregion
  246. public Role()
  247. {
  248. OnCreated();
  249. }
  250. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ENTI_Token", Storage="_token", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
  251. public System.Guid token
  252. {
  253. get
  254. {
  255. return this._token;
  256. }
  257. set
  258. {
  259. if ((this._token != value))
  260. {
  261. this.OntokenChanging(value);
  262. this.SendPropertyChanging();
  263. this._token = value;
  264. this.SendPropertyChanged("token");
  265. this.OntokenChanged();
  266. }
  267. }
  268. }
  269. [global::System.Data.Linq.Mapping.ColumnAttribute(Name="PERF_Identificador", Storage="_identifier", DbType="Char(5)")]
  270. public string identifier
  271. {
  272. get
  273. {
  274. return this._identifier;
  275. }
  276. set
  277. {
  278. if ((this._identifier != value))
  279. {
  280. this.OnidentifierChanging(value);
  281. this.SendPropertyChanging();
  282. this._identifier = value;
  283. this.SendPropertyChanged("identifier");
  284. this.OnidentifierChanged();
  285. }
  286. }
  287. }
  288. public event PropertyChangingEventHandler PropertyChanging;
  289. public event PropertyChangedEventHandler PropertyChanged;
  290. protected virtual void SendPropertyChanging()
  291. {
  292. if ((this.PropertyChanging != null))
  293. {
  294. this.PropertyChanging(this, emptyChangingEventArgs);
  295. }
  296. }
  297. protected virtual void SendPropertyChanged(String propertyName)
  298. {
  299. if ((this.PropertyChanged != null))
  300. {
  301. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  302. }
  303. }
  304. }
  305. }
  306. #pragma warning restore 1591