/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
- #pragma warning disable 1591
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.34209
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace API.Endpoints.Security.Models.Security
- {
- using System.Data.Linq;
- using System.Data.Linq.Mapping;
- using System.Data;
- using System.Collections.Generic;
- using System.Reflection;
- using System.Linq;
- using System.Linq.Expressions;
- using System.ComponentModel;
- using System;
-
-
- public partial class SecurityDataContext : System.Data.Linq.DataContext
- {
-
- private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
-
- #region Extensibility Method Definitions
- partial void OnCreated();
- partial void InsertRole(Role instance);
- partial void UpdateRole(Role instance);
- partial void DeleteRole(Role instance);
- #endregion
-
- public SecurityDataContext(string connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public SecurityDataContext(System.Data.IDbConnection connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public SecurityDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public SecurityDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public System.Data.Linq.Table<CustomCredentials> CustomCredentials
- {
- get
- {
- return this.GetTable<CustomCredentials>();
- }
- }
-
- public System.Data.Linq.Table<Account> Account
- {
- get
- {
- return this.GetTable<Account>();
- }
- }
-
- public System.Data.Linq.Table<Role> Roles
- {
- get
- {
- return this.GetTable<Role>();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
- public partial class CustomCredentials
- {
-
- private string _username;
-
- private string _password;
-
- public CustomCredentials()
- {
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_username", CanBeNull=false)]
- public string username
- {
- get
- {
- return this._username;
- }
- set
- {
- if ((this._username != value))
- {
- this._username = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_password", CanBeNull=false)]
- public string password
- {
- get
- {
- return this._password;
- }
- set
- {
- if ((this._password != value))
- {
- this._password = value;
- }
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.VT_Usuarios")]
- public partial class Account
- {
-
- private System.Guid _token;
-
- private System.DateTime _createdAt;
-
- private System.Nullable<System.Guid> _avatar;
-
- private string _email;
-
- private string _fullname;
-
- private System.DateTime _lastConnection;
-
- private List<Role> _roles;
-
- public Account()
- {
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_Token", Storage="_token", DbType="UniqueIdentifier NOT NULL")]
- public System.Guid token
- {
- get
- {
- return this._token;
- }
- set
- {
- if ((this._token != value))
- {
- this._token = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_FechaCreacion", Storage="_createdAt", DbType="DateTime NOT NULL")]
- public System.DateTime createdAt
- {
- get
- {
- return this._createdAt;
- }
- set
- {
- if ((this._createdAt != value))
- {
- this._createdAt = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_Avatar", Storage="_avatar", DbType="UniqueIdentifier")]
- public System.Nullable<System.Guid> avatar
- {
- get
- {
- return this._avatar;
- }
- set
- {
- if ((this._avatar != value))
- {
- this._avatar = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_Email", Storage="_email", DbType="VarChar(100) NOT NULL", CanBeNull=false)]
- public string email
- {
- get
- {
- return this._email;
- }
- set
- {
- if ((this._email != value))
- {
- this._email = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_NombreCompleto", Storage="_fullname", DbType="VarChar(250) NOT NULL", CanBeNull=false)]
- public string fullname
- {
- get
- {
- return this._fullname;
- }
- set
- {
- if ((this._fullname != value))
- {
- this._fullname = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="USUA_UltimaConexion", Storage="_lastConnection", DbType="DateTime NOT NULL")]
- public System.DateTime lastConnection
- {
- get
- {
- return this._lastConnection;
- }
- set
- {
- if ((this._lastConnection != value))
- {
- this._lastConnection = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="", Storage="_roles", CanBeNull=false)]
- public List<Role> roles
- {
- get
- {
- return this._roles;
- }
- set
- {
- if ((this._roles != value))
- {
- this._roles = value;
- }
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.V_Perfiles")]
- public partial class Role : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private System.Guid _token;
-
- private string _identifier;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OntokenChanging(System.Guid value);
- partial void OntokenChanged();
- partial void OnidentifierChanging(string value);
- partial void OnidentifierChanged();
- #endregion
-
- public Role()
- {
- OnCreated();
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ENTI_Token", Storage="_token", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
- public System.Guid token
- {
- get
- {
- return this._token;
- }
- set
- {
- if ((this._token != value))
- {
- this.OntokenChanging(value);
- this.SendPropertyChanging();
- this._token = value;
- this.SendPropertyChanged("token");
- this.OntokenChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="PERF_Identificador", Storage="_identifier", DbType="Char(5)")]
- public string identifier
- {
- get
- {
- return this._identifier;
- }
- set
- {
- if ((this._identifier != value))
- {
- this.OnidentifierChanging(value);
- this.SendPropertyChanging();
- this._identifier = value;
- this.SendPropertyChanged("identifier");
- this.OnidentifierChanged();
- }
- }
- }
-
- public event PropertyChangingEventHandler PropertyChanging;
-
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void SendPropertyChanging()
- {
- if ((this.PropertyChanging != null))
- {
- this.PropertyChanging(this, emptyChangingEventArgs);
- }
- }
-
- protected virtual void SendPropertyChanged(String propertyName)
- {
- if ((this.PropertyChanged != null))
- {
- this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
- }
- #pragma warning restore 1591