/src/Core/Model/DataAccess/DB.designer.cs
C# | 187 lines | 153 code | 25 blank | 9 comment | 10 complexity | c04b951d39a8bcdd93c93dbf571cafd8 MD5 | raw file
- #pragma warning disable 1591
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:2.0.50727.3053
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace OpenIdAuth.Core.Model.DataAccess.Context
- {
- 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;
-
-
- [System.Data.Linq.Mapping.DatabaseAttribute(Name="OpenIdAuth")]
- public partial class DB : System.Data.Linq.DataContext
- {
-
- private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
-
- #region Extensibility Method Definitions
- partial void OnCreated();
- partial void InsertUser(OpenIdAuth.Core.Model.DataAccess.Entity.User instance);
- partial void UpdateUser(OpenIdAuth.Core.Model.DataAccess.Entity.User instance);
- partial void DeleteUser(OpenIdAuth.Core.Model.DataAccess.Entity.User instance);
- #endregion
-
- public DB(string connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public DB(System.Data.IDbConnection connection) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public DB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public DB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
- base(connection, mappingSource)
- {
- OnCreated();
- }
-
- public System.Data.Linq.Table<OpenIdAuth.Core.Model.DataAccess.Entity.User> Users
- {
- get
- {
- return this.GetTable<OpenIdAuth.Core.Model.DataAccess.Entity.User>();
- }
- }
- }
- }
- namespace OpenIdAuth.Core.Model.DataAccess.Entity
- {
- using System.Data.Linq;
- using System.Data.Linq.Mapping;
- using System.ComponentModel;
- using System;
-
-
- [Table(Name="dbo.Users")]
- public partial class User : INotifyPropertyChanging, INotifyPropertyChanged
- {
-
- private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
-
- private int _UserId;
-
- private string _UserName;
-
- private string _Password;
-
- #region Extensibility Method Definitions
- partial void OnLoaded();
- partial void OnValidate(System.Data.Linq.ChangeAction action);
- partial void OnCreated();
- partial void OnUserIdChanging(int value);
- partial void OnUserIdChanged();
- partial void OnUserNameChanging(string value);
- partial void OnUserNameChanged();
- partial void OnPasswordChanging(string value);
- partial void OnPasswordChanged();
- #endregion
-
- public User()
- {
- OnCreated();
- }
-
- [Column(Storage="_UserId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
- public int UserId
- {
- get
- {
- return this._UserId;
- }
- set
- {
- if ((this._UserId != value))
- {
- this.OnUserIdChanging(value);
- this.SendPropertyChanging();
- this._UserId = value;
- this.SendPropertyChanged("UserId");
- this.OnUserIdChanged();
- }
- }
- }
-
- [Column(Storage="_UserName", DbType="VarChar(200) NOT NULL", CanBeNull=false)]
- public string UserName
- {
- get
- {
- return this._UserName;
- }
- set
- {
- if ((this._UserName != value))
- {
- this.OnUserNameChanging(value);
- this.SendPropertyChanging();
- this._UserName = value;
- this.SendPropertyChanged("UserName");
- this.OnUserNameChanged();
- }
- }
- }
-
- [Column(Storage="_Password", DbType="VarChar(200) NOT NULL", CanBeNull=false)]
- public string Password
- {
- get
- {
- return this._Password;
- }
- set
- {
- if ((this._Password != value))
- {
- this.OnPasswordChanging(value);
- this.SendPropertyChanging();
- this._Password = value;
- this.SendPropertyChanged("Password");
- this.OnPasswordChanged();
- }
- }
- }
-
- 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