📄 skyisitedb.designer.cs
字号:
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:2.0.50727.3053
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace SkyiSite.Models
{
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;
[System.Data.Linq.Mapping.DatabaseAttribute(Name="SkyiSite")]
public partial class SkyiSiteDBDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertUsers(Users instance);
partial void UpdateUsers(Users instance);
partial void DeleteUsers(Users instance);
partial void Insertaspnet_Roles(aspnet_Roles instance);
partial void Updateaspnet_Roles(aspnet_Roles instance);
partial void Deleteaspnet_Roles(aspnet_Roles instance);
#endregion
public SkyiSiteDBDataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SkyiSiteConnectionString1"].ConnectionString, mappingSource)
{
OnCreated();
}
public SkyiSiteDBDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public SkyiSiteDBDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public SkyiSiteDBDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public SkyiSiteDBDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<Users> Users
{
get
{
return this.GetTable<Users>();
}
}
public System.Data.Linq.Table<aspnet_Roles> aspnet_Roles
{
get
{
return this.GetTable<aspnet_Roles>();
}
}
}
[Table(Name="dbo.Users")]
public partial class Users : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _UserName;
private string _RealName;
private string _Sex;
private string _Unit;
private string _Duty;
private string _Phone;
private string _Email;
private string _City;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnUserNameChanging(string value);
partial void OnUserNameChanged();
partial void OnRealNameChanging(string value);
partial void OnRealNameChanged();
partial void OnSexChanging(string value);
partial void OnSexChanged();
partial void OnUnitChanging(string value);
partial void OnUnitChanged();
partial void OnDutyChanging(string value);
partial void OnDutyChanged();
partial void OnPhoneChanging(string value);
partial void OnPhoneChanged();
partial void OnEmailChanging(string value);
partial void OnEmailChanged();
partial void OnCityChanging(string value);
partial void OnCityChanged();
#endregion
public Users()
{
OnCreated();
}
[Column(Storage="_UserName", DbType="VarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
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="_RealName", DbType="VarChar(50)")]
public string RealName
{
get
{
return this._RealName;
}
set
{
if ((this._RealName != value))
{
this.OnRealNameChanging(value);
this.SendPropertyChanging();
this._RealName = value;
this.SendPropertyChanged("RealName");
this.OnRealNameChanged();
}
}
}
[Column(Storage="_Sex", DbType="VarChar(10)")]
public string Sex
{
get
{
return this._Sex;
}
set
{
if ((this._Sex != value))
{
this.OnSexChanging(value);
this.SendPropertyChanging();
this._Sex = value;
this.SendPropertyChanged("Sex");
this.OnSexChanged();
}
}
}
[Column(Storage="_Unit", DbType="VarChar(500)")]
public string Unit
{
get
{
return this._Unit;
}
set
{
if ((this._Unit != value))
{
this.OnUnitChanging(value);
this.SendPropertyChanging();
this._Unit = value;
this.SendPropertyChanged("Unit");
this.OnUnitChanged();
}
}
}
[Column(Storage="_Duty", DbType="VarChar(100)")]
public string Duty
{
get
{
return this._Duty;
}
set
{
if ((this._Duty != value))
{
this.OnDutyChanging(value);
this.SendPropertyChanging();
this._Duty = value;
this.SendPropertyChanged("Duty");
this.OnDutyChanged();
}
}
}
[Column(Storage="_Phone", DbType="VarChar(50)")]
public string Phone
{
get
{
return this._Phone;
}
set
{
if ((this._Phone != value))
{
this.OnPhoneChanging(value);
this.SendPropertyChanging();
this._Phone = value;
this.SendPropertyChanged("Phone");
this.OnPhoneChanged();
}
}
}
[Column(Storage="_Email", DbType="VarChar(500)")]
public string Email
{
get
{
return this._Email;
}
set
{
if ((this._Email != value))
{
this.OnEmailChanging(value);
this.SendPropertyChanging();
this._Email = value;
this.SendPropertyChanged("Email");
this.OnEmailChanged();
}
}
}
[Column(Storage="_City", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
public string City
{
get
{
return this._City;
}
set
{
if ((this._City != value))
{
this.OnCityChanging(value);
this.SendPropertyChanging();
this._City = value;
this.SendPropertyChanged("City");
this.OnCityChanged();
}
}
}
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));
}
}
}
[Table(Name="dbo.aspnet_Roles")]
public partial class aspnet_Roles : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private System.Guid _ApplicationId;
private System.Guid _RoleId;
private string _RoleName;
private string _LoweredRoleName;
private string _Description;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnApplicationIdChanging(System.Guid value);
partial void OnApplicationIdChanged();
partial void OnRoleIdChanging(System.Guid value);
partial void OnRoleIdChanged();
partial void OnRoleNameChanging(string value);
partial void OnRoleNameChanged();
partial void OnLoweredRoleNameChanging(string value);
partial void OnLoweredRoleNameChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
#endregion
public aspnet_Roles()
{
OnCreated();
}
[Column(Storage="_ApplicationId", DbType="UniqueIdentifier NOT NULL")]
public System.Guid ApplicationId
{
get
{
return this._ApplicationId;
}
set
{
if ((this._ApplicationId != value))
{
this.OnApplicationIdChanging(value);
this.SendPropertyChanging();
this._ApplicationId = value;
this.SendPropertyChanged("ApplicationId");
this.OnApplicationIdChanged();
}
}
}
[Column(Storage="_RoleId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
public System.Guid RoleId
{
get
{
return this._RoleId;
}
set
{
if ((this._RoleId != value))
{
this.OnRoleIdChanging(value);
this.SendPropertyChanging();
this._RoleId = value;
this.SendPropertyChanged("RoleId");
this.OnRoleIdChanged();
}
}
}
[Column(Storage="_RoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string RoleName
{
get
{
return this._RoleName;
}
set
{
if ((this._RoleName != value))
{
this.OnRoleNameChanging(value);
this.SendPropertyChanging();
this._RoleName = value;
this.SendPropertyChanged("RoleName");
this.OnRoleNameChanged();
}
}
}
[Column(Storage="_LoweredRoleName", DbType="NVarChar(256) NOT NULL", CanBeNull=false)]
public string LoweredRoleName
{
get
{
return this._LoweredRoleName;
}
set
{
if ((this._LoweredRoleName != value))
{
this.OnLoweredRoleNameChanging(value);
this.SendPropertyChanging();
this._LoweredRoleName = value;
this.SendPropertyChanged("LoweredRoleName");
this.OnLoweredRoleNameChanged();
}
}
}
[Column(Storage="_Description", DbType="NVarChar(256)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -