-
Notifications
You must be signed in to change notification settings - Fork 1
/
PatientRecordModel.Designer.cs
306 lines (273 loc) · 9.45 KB
/
PatientRecordModel.Designer.cs
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
//------------------------------------------------------------------------------
// <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 Reporting
{
#region Contexts
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public partial class PatientDBEventStoreEntities : ObjectContext
{
#region Constructors
/// <summary>
/// Initializes a new PatientDBEventStoreEntities object using the connection string found in the 'PatientDBEventStoreEntities' section of the application configuration file.
/// </summary>
public PatientDBEventStoreEntities() : base("name=PatientDBEventStoreEntities", "PatientDBEventStoreEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new PatientDBEventStoreEntities object.
/// </summary>
public PatientDBEventStoreEntities(string connectionString) : base(connectionString, "PatientDBEventStoreEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new PatientDBEventStoreEntities object.
/// </summary>
public PatientDBEventStoreEntities(EntityConnection connection) : base(connection, "PatientDBEventStoreEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Patient> Patients
{
get
{
if ((_Patients == null))
{
_Patients = base.CreateObjectSet<Patient>("Patients");
}
return _Patients;
}
}
private ObjectSet<Patient> _Patients;
#endregion
#region AddTo Methods
/// <summary>
/// Deprecated Method for adding a new object to the Patients EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToPatients(Patient patient)
{
base.AddObject("Patients", patient);
}
#endregion
}
#endregion
#region Entities
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="Reporting", Name="Patient")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Patient : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Patient object.
/// </summary>
/// <param name="patientId">Initial value of the PatientId property.</param>
/// <param name="name">Initial value of the Name property.</param>
public static Patient CreatePatient(global::System.Guid patientId, global::System.String name)
{
Patient patient = new Patient();
patient.PatientId = patientId;
patient.Name = name;
return patient;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Guid PatientId
{
get
{
return _PatientId;
}
set
{
if (_PatientId != value)
{
OnPatientIdChanging(value);
ReportPropertyChanging("PatientId");
_PatientId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("PatientId");
OnPatientIdChanged();
}
}
}
private global::System.Guid _PatientId;
partial void OnPatientIdChanging(global::System.Guid value);
partial void OnPatientIdChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String Name
{
get
{
return _Name;
}
set
{
OnNameChanging(value);
ReportPropertyChanging("Name");
_Name = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("Name");
OnNameChanged();
}
}
private global::System.String _Name;
partial void OnNameChanging(global::System.String value);
partial void OnNameChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String Status
{
get
{
return _Status;
}
set
{
OnStatusChanging(value);
ReportPropertyChanging("Status");
_Status = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("Status");
OnStatusChanged();
}
}
private global::System.String _Status;
partial void OnStatusChanging(global::System.String value);
partial void OnStatusChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String Street
{
get
{
return _Street;
}
set
{
OnStreetChanging(value);
ReportPropertyChanging("Street");
_Street = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("Street");
OnStreetChanged();
}
}
private global::System.String _Street;
partial void OnStreetChanging(global::System.String value);
partial void OnStreetChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String City
{
get
{
return _City;
}
set
{
OnCityChanging(value);
ReportPropertyChanging("City");
_City = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("City");
OnCityChanged();
}
}
private global::System.String _City;
partial void OnCityChanging(global::System.String value);
partial void OnCityChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String State
{
get
{
return _State;
}
set
{
OnStateChanging(value);
ReportPropertyChanging("State");
_State = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("State");
OnStateChanged();
}
}
private global::System.String _State;
partial void OnStateChanging(global::System.String value);
partial void OnStateChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String Zip
{
get
{
return _Zip;
}
set
{
OnZipChanging(value);
ReportPropertyChanging("Zip");
_Zip = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("Zip");
OnZipChanged();
}
}
private global::System.String _Zip;
partial void OnZipChanging(global::System.String value);
partial void OnZipChanged();
#endregion
}
#endregion
}