-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModel1.Designer.cs
More file actions
369 lines (329 loc) · 11.9 KB
/
Model1.Designer.cs
File metadata and controls
369 lines (329 loc) · 11.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;
[assembly: EdmSchemaAttribute()]
namespace Jad_Bot
{
#region Contexts
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public partial class UtilityBotDBContainer : ObjectContext
{
#region Constructors
/// <summary>
/// Initializes a new UtilityBotDBContainer object using the connection string found in the 'UtilityBotDBContainer' section of the application configuration file.
/// </summary>
public UtilityBotDBContainer() : base("name=UtilityBotDBContainer", "UtilityBotDBContainer")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new UtilityBotDBContainer object.
/// </summary>
public UtilityBotDBContainer(string connectionString) : base(connectionString, "UtilityBotDBContainer")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new UtilityBotDBContainer object.
/// </summary>
public UtilityBotDBContainer(EntityConnection connection) : base(connection, "UtilityBotDBContainer")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Account> Accounts
{
get
{
if ((_Accounts == null))
{
_Accounts = base.CreateObjectSet<Account>("Accounts");
}
return _Accounts;
}
}
private ObjectSet<Account> _Accounts;
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Message> Messages
{
get
{
if ((_Messages == null))
{
_Messages = base.CreateObjectSet<Message>("Messages");
}
return _Messages;
}
}
private ObjectSet<Message> _Messages;
#endregion
#region AddTo Methods
/// <summary>
/// Deprecated Method for adding a new object to the Accounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToAccounts(Account account)
{
base.AddObject("Accounts", account);
}
/// <summary>
/// Deprecated Method for adding a new object to the Messages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToMessages(Message message)
{
base.AddObject("Messages", message);
}
#endregion
}
#endregion
#region Entities
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="Jad_Bot", Name="Account")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Account : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Account object.
/// </summary>
/// <param name="username">Initial value of the Username property.</param>
/// <param name="password">Initial value of the Password property.</param>
/// <param name="userLevel">Initial value of the UserLevel property.</param>
public static Account CreateAccount(global::System.String username, global::System.String password, global::System.String userLevel)
{
Account account = new Account();
account.Username = username;
account.Password = password;
account.UserLevel = userLevel;
return account;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String Username
{
get
{
return _Username;
}
set
{
if (_Username != value)
{
OnUsernameChanging(value);
ReportPropertyChanging("Username");
_Username = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("Username");
OnUsernameChanged();
}
}
}
private global::System.String _Username;
partial void OnUsernameChanging(global::System.String value);
partial void OnUsernameChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String Password
{
get
{
return _Password;
}
set
{
OnPasswordChanging(value);
ReportPropertyChanging("Password");
_Password = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("Password");
OnPasswordChanged();
}
}
private global::System.String _Password;
partial void OnPasswordChanging(global::System.String value);
partial void OnPasswordChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String UserLevel
{
get
{
return _UserLevel;
}
set
{
OnUserLevelChanging(value);
ReportPropertyChanging("UserLevel");
_UserLevel = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("UserLevel");
OnUserLevelChanged();
}
}
private global::System.String _UserLevel;
partial void OnUserLevelChanging(global::System.String value);
partial void OnUserLevelChanged();
#endregion
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="Jad_Bot", Name="Message")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Message : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Message object.
/// </summary>
/// <param name="dateLeft">Initial value of the DateLeft property.</param>
/// <param name="ircNick">Initial value of the IrcNick property.</param>
/// <param name="messageText">Initial value of the MessageText property.</param>
/// <param name="fromIrcNick">Initial value of the FromIrcNick property.</param>
public static Message CreateMessage(global::System.String dateLeft, global::System.String ircNick, global::System.String messageText, global::System.String fromIrcNick)
{
Message message = new Message();
message.DateLeft = dateLeft;
message.IrcNick = ircNick;
message.MessageText = messageText;
message.FromIrcNick = fromIrcNick;
return message;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String DateLeft
{
get
{
return _DateLeft;
}
set
{
if (_DateLeft != value)
{
OnDateLeftChanging(value);
ReportPropertyChanging("DateLeft");
_DateLeft = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("DateLeft");
OnDateLeftChanged();
}
}
}
private global::System.String _DateLeft;
partial void OnDateLeftChanging(global::System.String value);
partial void OnDateLeftChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String IrcNick
{
get
{
return _IrcNick;
}
set
{
OnIrcNickChanging(value);
ReportPropertyChanging("IrcNick");
_IrcNick = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("IrcNick");
OnIrcNickChanged();
}
}
private global::System.String _IrcNick;
partial void OnIrcNickChanging(global::System.String value);
partial void OnIrcNickChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String MessageText
{
get
{
return _MessageText;
}
set
{
OnMessageTextChanging(value);
ReportPropertyChanging("MessageText");
_MessageText = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("MessageText");
OnMessageTextChanged();
}
}
private global::System.String _MessageText;
partial void OnMessageTextChanging(global::System.String value);
partial void OnMessageTextChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String FromIrcNick
{
get
{
return _FromIrcNick;
}
set
{
OnFromIrcNickChanging(value);
ReportPropertyChanging("FromIrcNick");
_FromIrcNick = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("FromIrcNick");
OnFromIrcNickChanged();
}
}
private global::System.String _FromIrcNick;
partial void OnFromIrcNickChanging(global::System.String value);
partial void OnFromIrcNickChanged();
#endregion
}
#endregion
}