温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:NChat简易聊天室源码(.Net 3.5,LINQ,AJAX)
当前文件路径:NChat/NChart.DBHelper/NChat.designer.cs

1#pragma warning disable 1591 2
//------------------------------------------------------------------------------ 3
// <auto-generated> 4
// This code was generated by a tool. 5
// Runtime Version:2.0.50727.1433 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
12
namespace NChart.DBHelper 13
{ 14
using System.Data.Linq; 15
using System.Data.Linq.Mapping; 16
using System.Data; 17
using System.Collections.Generic; 18
using System.Reflection; 19
using System.Linq; 20
using System.Linq.Expressions; 21
using System.ComponentModel; 22
using System; 23
24
25
[System.Data.Linq.Mapping.DatabaseAttribute(Name="NChat")] 26
public partial class NChatDataContext : System.Data.Linq.DataContext 27
{ 28
29
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); 30
31
Extensibility Method Definitions 37
38
public NChatDataContext() : 39
base(global::NChart.DBHelper.Properties.Settings.Default.NChatConnectionString, mappingSource) 40
{ 41
OnCreated(); 42
} 43
44
public NChatDataContext(string connection) : 45
base(connection, mappingSource) 46
{ 47
OnCreated(); 48
} 49
50
public NChatDataContext(System.Data.IDbConnection connection) : 51
base(connection, mappingSource) 52
{ 53
OnCreated(); 54
} 55
56
public NChatDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 57
base(connection, mappingSource) 58
{ 59
OnCreated(); 60
} 61
62
public NChatDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 63
base(connection, mappingSource) 64
{ 65
OnCreated(); 66
} 67
68
public System.Data.Linq.Table<User> Users 69
{ 70
get 71
{ 72
return this.GetTable<User>(); 73
} 74
} 75
} 76
77
[Table(Name="dbo.Users")] 78
public partial class User : INotifyPropertyChanging, INotifyPropertyChanged 79
{ 80
81
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 82
83
private int _ID; 84
85
private string _Name; 86
87
private string _Password; 88
89
private System.Nullable<int> _Code; 90
91
private System.Nullable<int> _Gread; 92
93
Extensibility Method Definitions 108
109
public User() 110
{ 111
OnCreated(); 112
} 113
114
[Column(Storage="_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] 115
public int ID 116
{ 117
get 118
{ 119
return this._ID; 120
} 121
set 122
{ 123
if ((this._ID != value)) 124
{ 125
this.OnIDChanging(value); 126
this.SendPropertyChanging(); 127
this._ID = value; 128
this.SendPropertyChanged("ID"); 129
this.OnIDChanged(); 130
} 131
} 132
} 133
134
[Column(Storage="_Name", DbType="NVarChar(50)")] 135
public string Name 136
{ 137
get 138
{ 139
return this._Name; 140
} 141
set 142
{ 143
if ((this._Name != value)) 144
{ 145
this.OnNameChanging(value); 146
this.SendPropertyChanging(); 147
this._Name = value; 148
this.SendPropertyChanged("Name"); 149
this.OnNameChanged(); 150
} 151
} 152
} 153
154
[Column(Storage="_Password", DbType="Char(32)")] 155
public string Password 156
{ 157
get 158
{ 159
return this._Password; 160
} 161
set 162
{ 163
if ((this._Password != value)) 164
{ 165
this.OnPasswordChanging(value); 166
this.SendPropertyChanging(); 167
this._Password = value; 168
this.SendPropertyChanged("Password"); 169
this.OnPasswordChanged(); 170
} 171
} 172
} 173
174
[Column(Storage="_Code", DbType="Int")] 175
public System.Nullable<int> Code 176
{ 177
get 178
{ 179
return this._Code; 180
} 181
set 182
{ 183
if ((this._Code != value)) 184
{ 185
this.OnCodeChanging(value); 186
this.SendPropertyChanging(); 187
this._Code = value; 188
this.SendPropertyChanged("Code"); 189
this.OnCodeChanged(); 190
} 191
} 192
} 193
194
[Column(Storage="_Gread", DbType="Int")] 195
public System.Nullable<int> Gread 196
{ 197
get 198
{ 199
return this._Gread; 200
} 201
set 202
{ 203
if ((this._Gread != value)) 204
{ 205
this.OnGreadChanging(value); 206
this.SendPropertyChanging(); 207
this._Gread = value; 208
this.SendPropertyChanged("Gread"); 209
this.OnGreadChanged(); 210
} 211
} 212
} 213
214
public event PropertyChangingEventHandler PropertyChanging; 215
216
public event PropertyChangedEventHandler PropertyChanged; 217
218
protected virtual void SendPropertyChanging() 219
{ 220
if ((this.PropertyChanging != null)) 221
{ 222
this.PropertyChanging(this, emptyChangingEventArgs); 223
} 224
} 225
226
protected virtual void SendPropertyChanged(String propertyName) 227
{ 228
if ((this.PropertyChanged != null)) 229
{ 230
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 231
} 232
} 233
} 234
} 235
#pragma warning restore 1591 236





}