1 | //------------------------------------------------------------------------------
|
---|
2 | // <auto-generated>
|
---|
3 | // This code was generated by a tool.
|
---|
4 | // Runtime Version:2.0.50727.3053
|
---|
5 | //
|
---|
6 | // Changes to this file may cause incorrect behavior and will be lost if
|
---|
7 | // the code is regenerated.
|
---|
8 | // </auto-generated>
|
---|
9 | //------------------------------------------------------------------------------
|
---|
10 |
|
---|
11 | #pragma warning disable 1591
|
---|
12 |
|
---|
13 | namespace HeuristicLab.Hive.Server.ADODataAccess {
|
---|
14 |
|
---|
15 |
|
---|
16 | /// <summary>
|
---|
17 | ///Represents a strongly typed in-memory cache of data.
|
---|
18 | ///</summary>
|
---|
19 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
20 | [global::System.Serializable()]
|
---|
21 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
22 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
23 | [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
|
---|
24 | [global::System.Xml.Serialization.XmlRootAttribute("dsHiveServer")]
|
---|
25 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
---|
26 | public partial class dsHiveServer : global::System.Data.DataSet {
|
---|
27 |
|
---|
28 | private ResourceDataTable tableResource;
|
---|
29 |
|
---|
30 | private ClientDataTable tableClient;
|
---|
31 |
|
---|
32 | private HiveUserDataTable tableHiveUser;
|
---|
33 |
|
---|
34 | private PermissionOwnerDataTable tablePermissionOwner;
|
---|
35 |
|
---|
36 | private global::System.Data.DataRelation relationClient_is_a_Resource;
|
---|
37 |
|
---|
38 | private global::System.Data.DataRelation relationUser_is_a_PermissionOwner;
|
---|
39 |
|
---|
40 | private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
---|
41 |
|
---|
42 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
43 | public dsHiveServer() {
|
---|
44 | this.BeginInit();
|
---|
45 | this.InitClass();
|
---|
46 | global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
---|
47 | base.Tables.CollectionChanged += schemaChangedHandler;
|
---|
48 | base.Relations.CollectionChanged += schemaChangedHandler;
|
---|
49 | this.EndInit();
|
---|
50 | }
|
---|
51 |
|
---|
52 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
53 | protected dsHiveServer(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
---|
54 | base(info, context, false) {
|
---|
55 | if ((this.IsBinarySerialized(info, context) == true)) {
|
---|
56 | this.InitVars(false);
|
---|
57 | global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
---|
58 | this.Tables.CollectionChanged += schemaChangedHandler1;
|
---|
59 | this.Relations.CollectionChanged += schemaChangedHandler1;
|
---|
60 | return;
|
---|
61 | }
|
---|
62 | string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
|
---|
63 | if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
---|
64 | global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
---|
65 | ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
---|
66 | if ((ds.Tables["Resource"] != null)) {
|
---|
67 | base.Tables.Add(new ResourceDataTable(ds.Tables["Resource"]));
|
---|
68 | }
|
---|
69 | if ((ds.Tables["Client"] != null)) {
|
---|
70 | base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
|
---|
71 | }
|
---|
72 | if ((ds.Tables["HiveUser"] != null)) {
|
---|
73 | base.Tables.Add(new HiveUserDataTable(ds.Tables["HiveUser"]));
|
---|
74 | }
|
---|
75 | if ((ds.Tables["PermissionOwner"] != null)) {
|
---|
76 | base.Tables.Add(new PermissionOwnerDataTable(ds.Tables["PermissionOwner"]));
|
---|
77 | }
|
---|
78 | this.DataSetName = ds.DataSetName;
|
---|
79 | this.Prefix = ds.Prefix;
|
---|
80 | this.Namespace = ds.Namespace;
|
---|
81 | this.Locale = ds.Locale;
|
---|
82 | this.CaseSensitive = ds.CaseSensitive;
|
---|
83 | this.EnforceConstraints = ds.EnforceConstraints;
|
---|
84 | this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
---|
85 | this.InitVars();
|
---|
86 | }
|
---|
87 | else {
|
---|
88 | this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
---|
89 | }
|
---|
90 | this.GetSerializationData(info, context);
|
---|
91 | global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
---|
92 | base.Tables.CollectionChanged += schemaChangedHandler;
|
---|
93 | this.Relations.CollectionChanged += schemaChangedHandler;
|
---|
94 | }
|
---|
95 |
|
---|
96 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
97 | [global::System.ComponentModel.Browsable(false)]
|
---|
98 | [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
---|
99 | public ResourceDataTable Resource {
|
---|
100 | get {
|
---|
101 | return this.tableResource;
|
---|
102 | }
|
---|
103 | }
|
---|
104 |
|
---|
105 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
106 | [global::System.ComponentModel.Browsable(false)]
|
---|
107 | [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
---|
108 | public ClientDataTable Client {
|
---|
109 | get {
|
---|
110 | return this.tableClient;
|
---|
111 | }
|
---|
112 | }
|
---|
113 |
|
---|
114 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
115 | [global::System.ComponentModel.Browsable(false)]
|
---|
116 | [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
---|
117 | public HiveUserDataTable HiveUser {
|
---|
118 | get {
|
---|
119 | return this.tableHiveUser;
|
---|
120 | }
|
---|
121 | }
|
---|
122 |
|
---|
123 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
124 | [global::System.ComponentModel.Browsable(false)]
|
---|
125 | [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
---|
126 | public PermissionOwnerDataTable PermissionOwner {
|
---|
127 | get {
|
---|
128 | return this.tablePermissionOwner;
|
---|
129 | }
|
---|
130 | }
|
---|
131 |
|
---|
132 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
133 | [global::System.ComponentModel.BrowsableAttribute(true)]
|
---|
134 | [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
---|
135 | public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
---|
136 | get {
|
---|
137 | return this._schemaSerializationMode;
|
---|
138 | }
|
---|
139 | set {
|
---|
140 | this._schemaSerializationMode = value;
|
---|
141 | }
|
---|
142 | }
|
---|
143 |
|
---|
144 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
145 | [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
---|
146 | public new global::System.Data.DataTableCollection Tables {
|
---|
147 | get {
|
---|
148 | return base.Tables;
|
---|
149 | }
|
---|
150 | }
|
---|
151 |
|
---|
152 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
153 | [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
---|
154 | public new global::System.Data.DataRelationCollection Relations {
|
---|
155 | get {
|
---|
156 | return base.Relations;
|
---|
157 | }
|
---|
158 | }
|
---|
159 |
|
---|
160 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
161 | protected override void InitializeDerivedDataSet() {
|
---|
162 | this.BeginInit();
|
---|
163 | this.InitClass();
|
---|
164 | this.EndInit();
|
---|
165 | }
|
---|
166 |
|
---|
167 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
168 | public override global::System.Data.DataSet Clone() {
|
---|
169 | dsHiveServer cln = ((dsHiveServer)(base.Clone()));
|
---|
170 | cln.InitVars();
|
---|
171 | cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
---|
172 | return cln;
|
---|
173 | }
|
---|
174 |
|
---|
175 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
176 | protected override bool ShouldSerializeTables() {
|
---|
177 | return false;
|
---|
178 | }
|
---|
179 |
|
---|
180 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
181 | protected override bool ShouldSerializeRelations() {
|
---|
182 | return false;
|
---|
183 | }
|
---|
184 |
|
---|
185 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
186 | protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
---|
187 | if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
---|
188 | this.Reset();
|
---|
189 | global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
---|
190 | ds.ReadXml(reader);
|
---|
191 | if ((ds.Tables["Resource"] != null)) {
|
---|
192 | base.Tables.Add(new ResourceDataTable(ds.Tables["Resource"]));
|
---|
193 | }
|
---|
194 | if ((ds.Tables["Client"] != null)) {
|
---|
195 | base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
|
---|
196 | }
|
---|
197 | if ((ds.Tables["HiveUser"] != null)) {
|
---|
198 | base.Tables.Add(new HiveUserDataTable(ds.Tables["HiveUser"]));
|
---|
199 | }
|
---|
200 | if ((ds.Tables["PermissionOwner"] != null)) {
|
---|
201 | base.Tables.Add(new PermissionOwnerDataTable(ds.Tables["PermissionOwner"]));
|
---|
202 | }
|
---|
203 | this.DataSetName = ds.DataSetName;
|
---|
204 | this.Prefix = ds.Prefix;
|
---|
205 | this.Namespace = ds.Namespace;
|
---|
206 | this.Locale = ds.Locale;
|
---|
207 | this.CaseSensitive = ds.CaseSensitive;
|
---|
208 | this.EnforceConstraints = ds.EnforceConstraints;
|
---|
209 | this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
---|
210 | this.InitVars();
|
---|
211 | }
|
---|
212 | else {
|
---|
213 | this.ReadXml(reader);
|
---|
214 | this.InitVars();
|
---|
215 | }
|
---|
216 | }
|
---|
217 |
|
---|
218 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
219 | protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
---|
220 | global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
---|
221 | this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
---|
222 | stream.Position = 0;
|
---|
223 | return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
|
---|
224 | }
|
---|
225 |
|
---|
226 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
227 | internal void InitVars() {
|
---|
228 | this.InitVars(true);
|
---|
229 | }
|
---|
230 |
|
---|
231 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
232 | internal void InitVars(bool initTable) {
|
---|
233 | this.tableResource = ((ResourceDataTable)(base.Tables["Resource"]));
|
---|
234 | if ((initTable == true)) {
|
---|
235 | if ((this.tableResource != null)) {
|
---|
236 | this.tableResource.InitVars();
|
---|
237 | }
|
---|
238 | }
|
---|
239 | this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
|
---|
240 | if ((initTable == true)) {
|
---|
241 | if ((this.tableClient != null)) {
|
---|
242 | this.tableClient.InitVars();
|
---|
243 | }
|
---|
244 | }
|
---|
245 | this.tableHiveUser = ((HiveUserDataTable)(base.Tables["HiveUser"]));
|
---|
246 | if ((initTable == true)) {
|
---|
247 | if ((this.tableHiveUser != null)) {
|
---|
248 | this.tableHiveUser.InitVars();
|
---|
249 | }
|
---|
250 | }
|
---|
251 | this.tablePermissionOwner = ((PermissionOwnerDataTable)(base.Tables["PermissionOwner"]));
|
---|
252 | if ((initTable == true)) {
|
---|
253 | if ((this.tablePermissionOwner != null)) {
|
---|
254 | this.tablePermissionOwner.InitVars();
|
---|
255 | }
|
---|
256 | }
|
---|
257 | this.relationClient_is_a_Resource = this.Relations["Client_is_a_Resource"];
|
---|
258 | this.relationUser_is_a_PermissionOwner = this.Relations["User_is_a_PermissionOwner"];
|
---|
259 | }
|
---|
260 |
|
---|
261 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
262 | private void InitClass() {
|
---|
263 | this.DataSetName = "dsHiveServer";
|
---|
264 | this.Prefix = "";
|
---|
265 | this.Namespace = "http://tempuri.org/dsHiveServer.xsd";
|
---|
266 | this.EnforceConstraints = true;
|
---|
267 | this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
---|
268 | this.tableResource = new ResourceDataTable();
|
---|
269 | base.Tables.Add(this.tableResource);
|
---|
270 | this.tableClient = new ClientDataTable();
|
---|
271 | base.Tables.Add(this.tableClient);
|
---|
272 | this.tableHiveUser = new HiveUserDataTable();
|
---|
273 | base.Tables.Add(this.tableHiveUser);
|
---|
274 | this.tablePermissionOwner = new PermissionOwnerDataTable();
|
---|
275 | base.Tables.Add(this.tablePermissionOwner);
|
---|
276 | this.relationClient_is_a_Resource = new global::System.Data.DataRelation("Client_is_a_Resource", new global::System.Data.DataColumn[] {
|
---|
277 | this.tableResource.ResourceIdColumn}, new global::System.Data.DataColumn[] {
|
---|
278 | this.tableClient.ResourceIdColumn}, false);
|
---|
279 | this.Relations.Add(this.relationClient_is_a_Resource);
|
---|
280 | this.relationUser_is_a_PermissionOwner = new global::System.Data.DataRelation("User_is_a_PermissionOwner", new global::System.Data.DataColumn[] {
|
---|
281 | this.tablePermissionOwner.PermissionOwnerIdColumn}, new global::System.Data.DataColumn[] {
|
---|
282 | this.tableHiveUser.PermissionOwnerIdColumn}, false);
|
---|
283 | this.Relations.Add(this.relationUser_is_a_PermissionOwner);
|
---|
284 | }
|
---|
285 |
|
---|
286 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
287 | private bool ShouldSerializeResource() {
|
---|
288 | return false;
|
---|
289 | }
|
---|
290 |
|
---|
291 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
292 | private bool ShouldSerializeClient() {
|
---|
293 | return false;
|
---|
294 | }
|
---|
295 |
|
---|
296 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
297 | private bool ShouldSerializeHiveUser() {
|
---|
298 | return false;
|
---|
299 | }
|
---|
300 |
|
---|
301 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
302 | private bool ShouldSerializePermissionOwner() {
|
---|
303 | return false;
|
---|
304 | }
|
---|
305 |
|
---|
306 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
307 | private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
---|
308 | if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
---|
309 | this.InitVars();
|
---|
310 | }
|
---|
311 | }
|
---|
312 |
|
---|
313 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
314 | public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
---|
315 | dsHiveServer ds = new dsHiveServer();
|
---|
316 | global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
---|
317 | global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
---|
318 | global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
319 | any.Namespace = ds.Namespace;
|
---|
320 | sequence.Items.Add(any);
|
---|
321 | type.Particle = sequence;
|
---|
322 | global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
---|
323 | if (xs.Contains(dsSchema.TargetNamespace)) {
|
---|
324 | global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
---|
325 | global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
---|
326 | try {
|
---|
327 | global::System.Xml.Schema.XmlSchema schema = null;
|
---|
328 | dsSchema.Write(s1);
|
---|
329 | for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
---|
330 | schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
---|
331 | s2.SetLength(0);
|
---|
332 | schema.Write(s2);
|
---|
333 | if ((s1.Length == s2.Length)) {
|
---|
334 | s1.Position = 0;
|
---|
335 | s2.Position = 0;
|
---|
336 | for (; ((s1.Position != s1.Length)
|
---|
337 | && (s1.ReadByte() == s2.ReadByte())); ) {
|
---|
338 | ;
|
---|
339 | }
|
---|
340 | if ((s1.Position == s1.Length)) {
|
---|
341 | return type;
|
---|
342 | }
|
---|
343 | }
|
---|
344 | }
|
---|
345 | }
|
---|
346 | finally {
|
---|
347 | if ((s1 != null)) {
|
---|
348 | s1.Close();
|
---|
349 | }
|
---|
350 | if ((s2 != null)) {
|
---|
351 | s2.Close();
|
---|
352 | }
|
---|
353 | }
|
---|
354 | }
|
---|
355 | xs.Add(dsSchema);
|
---|
356 | return type;
|
---|
357 | }
|
---|
358 |
|
---|
359 | public delegate void ResourceRowChangeEventHandler(object sender, ResourceRowChangeEvent e);
|
---|
360 |
|
---|
361 | public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
|
---|
362 |
|
---|
363 | public delegate void HiveUserRowChangeEventHandler(object sender, HiveUserRowChangeEvent e);
|
---|
364 |
|
---|
365 | public delegate void PermissionOwnerRowChangeEventHandler(object sender, PermissionOwnerRowChangeEvent e);
|
---|
366 |
|
---|
367 | /// <summary>
|
---|
368 | ///Represents the strongly named DataTable class.
|
---|
369 | ///</summary>
|
---|
370 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
371 | [global::System.Serializable()]
|
---|
372 | [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
---|
373 | public partial class ResourceDataTable : global::System.Data.TypedTableBase<ResourceRow> {
|
---|
374 |
|
---|
375 | private global::System.Data.DataColumn columnResourceId;
|
---|
376 |
|
---|
377 | private global::System.Data.DataColumn columnName;
|
---|
378 |
|
---|
379 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
380 | public ResourceDataTable() {
|
---|
381 | this.TableName = "Resource";
|
---|
382 | this.BeginInit();
|
---|
383 | this.InitClass();
|
---|
384 | this.EndInit();
|
---|
385 | }
|
---|
386 |
|
---|
387 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
388 | internal ResourceDataTable(global::System.Data.DataTable table) {
|
---|
389 | this.TableName = table.TableName;
|
---|
390 | if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
---|
391 | this.CaseSensitive = table.CaseSensitive;
|
---|
392 | }
|
---|
393 | if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
---|
394 | this.Locale = table.Locale;
|
---|
395 | }
|
---|
396 | if ((table.Namespace != table.DataSet.Namespace)) {
|
---|
397 | this.Namespace = table.Namespace;
|
---|
398 | }
|
---|
399 | this.Prefix = table.Prefix;
|
---|
400 | this.MinimumCapacity = table.MinimumCapacity;
|
---|
401 | }
|
---|
402 |
|
---|
403 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
404 | protected ResourceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
---|
405 | base(info, context) {
|
---|
406 | this.InitVars();
|
---|
407 | }
|
---|
408 |
|
---|
409 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
410 | public global::System.Data.DataColumn ResourceIdColumn {
|
---|
411 | get {
|
---|
412 | return this.columnResourceId;
|
---|
413 | }
|
---|
414 | }
|
---|
415 |
|
---|
416 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
417 | public global::System.Data.DataColumn NameColumn {
|
---|
418 | get {
|
---|
419 | return this.columnName;
|
---|
420 | }
|
---|
421 | }
|
---|
422 |
|
---|
423 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
424 | [global::System.ComponentModel.Browsable(false)]
|
---|
425 | public int Count {
|
---|
426 | get {
|
---|
427 | return this.Rows.Count;
|
---|
428 | }
|
---|
429 | }
|
---|
430 |
|
---|
431 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
432 | public ResourceRow this[int index] {
|
---|
433 | get {
|
---|
434 | return ((ResourceRow)(this.Rows[index]));
|
---|
435 | }
|
---|
436 | }
|
---|
437 |
|
---|
438 | public event ResourceRowChangeEventHandler ResourceRowChanging;
|
---|
439 |
|
---|
440 | public event ResourceRowChangeEventHandler ResourceRowChanged;
|
---|
441 |
|
---|
442 | public event ResourceRowChangeEventHandler ResourceRowDeleting;
|
---|
443 |
|
---|
444 | public event ResourceRowChangeEventHandler ResourceRowDeleted;
|
---|
445 |
|
---|
446 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
447 | public void AddResourceRow(ResourceRow row) {
|
---|
448 | this.Rows.Add(row);
|
---|
449 | }
|
---|
450 |
|
---|
451 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
452 | public ResourceRow AddResourceRow(string Name) {
|
---|
453 | ResourceRow rowResourceRow = ((ResourceRow)(this.NewRow()));
|
---|
454 | object[] columnValuesArray = new object[] {
|
---|
455 | null,
|
---|
456 | Name};
|
---|
457 | rowResourceRow.ItemArray = columnValuesArray;
|
---|
458 | this.Rows.Add(rowResourceRow);
|
---|
459 | return rowResourceRow;
|
---|
460 | }
|
---|
461 |
|
---|
462 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
463 | public ResourceRow FindByResourceId(long ResourceId) {
|
---|
464 | return ((ResourceRow)(this.Rows.Find(new object[] {
|
---|
465 | ResourceId})));
|
---|
466 | }
|
---|
467 |
|
---|
468 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
469 | public override global::System.Data.DataTable Clone() {
|
---|
470 | ResourceDataTable cln = ((ResourceDataTable)(base.Clone()));
|
---|
471 | cln.InitVars();
|
---|
472 | return cln;
|
---|
473 | }
|
---|
474 |
|
---|
475 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
476 | protected override global::System.Data.DataTable CreateInstance() {
|
---|
477 | return new ResourceDataTable();
|
---|
478 | }
|
---|
479 |
|
---|
480 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
481 | internal void InitVars() {
|
---|
482 | this.columnResourceId = base.Columns["ResourceId"];
|
---|
483 | this.columnName = base.Columns["Name"];
|
---|
484 | }
|
---|
485 |
|
---|
486 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
487 | private void InitClass() {
|
---|
488 | this.columnResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element);
|
---|
489 | base.Columns.Add(this.columnResourceId);
|
---|
490 | this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
|
---|
491 | base.Columns.Add(this.columnName);
|
---|
492 | this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
---|
493 | this.columnResourceId}, true));
|
---|
494 | this.columnResourceId.AutoIncrement = true;
|
---|
495 | this.columnResourceId.AutoIncrementSeed = -1;
|
---|
496 | this.columnResourceId.AutoIncrementStep = -1;
|
---|
497 | this.columnResourceId.AllowDBNull = false;
|
---|
498 | this.columnResourceId.ReadOnly = true;
|
---|
499 | this.columnResourceId.Unique = true;
|
---|
500 | this.columnName.MaxLength = 18;
|
---|
501 | }
|
---|
502 |
|
---|
503 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
504 | public ResourceRow NewResourceRow() {
|
---|
505 | return ((ResourceRow)(this.NewRow()));
|
---|
506 | }
|
---|
507 |
|
---|
508 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
509 | protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
---|
510 | return new ResourceRow(builder);
|
---|
511 | }
|
---|
512 |
|
---|
513 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
514 | protected override global::System.Type GetRowType() {
|
---|
515 | return typeof(ResourceRow);
|
---|
516 | }
|
---|
517 |
|
---|
518 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
519 | protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
---|
520 | base.OnRowChanged(e);
|
---|
521 | if ((this.ResourceRowChanged != null)) {
|
---|
522 | this.ResourceRowChanged(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));
|
---|
523 | }
|
---|
524 | }
|
---|
525 |
|
---|
526 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
527 | protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
---|
528 | base.OnRowChanging(e);
|
---|
529 | if ((this.ResourceRowChanging != null)) {
|
---|
530 | this.ResourceRowChanging(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));
|
---|
531 | }
|
---|
532 | }
|
---|
533 |
|
---|
534 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
535 | protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
---|
536 | base.OnRowDeleted(e);
|
---|
537 | if ((this.ResourceRowDeleted != null)) {
|
---|
538 | this.ResourceRowDeleted(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));
|
---|
539 | }
|
---|
540 | }
|
---|
541 |
|
---|
542 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
543 | protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
---|
544 | base.OnRowDeleting(e);
|
---|
545 | if ((this.ResourceRowDeleting != null)) {
|
---|
546 | this.ResourceRowDeleting(this, new ResourceRowChangeEvent(((ResourceRow)(e.Row)), e.Action));
|
---|
547 | }
|
---|
548 | }
|
---|
549 |
|
---|
550 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
551 | public void RemoveResourceRow(ResourceRow row) {
|
---|
552 | this.Rows.Remove(row);
|
---|
553 | }
|
---|
554 |
|
---|
555 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
556 | public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
---|
557 | global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
---|
558 | global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
---|
559 | dsHiveServer ds = new dsHiveServer();
|
---|
560 | global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
561 | any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
---|
562 | any1.MinOccurs = new decimal(0);
|
---|
563 | any1.MaxOccurs = decimal.MaxValue;
|
---|
564 | any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
565 | sequence.Items.Add(any1);
|
---|
566 | global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
567 | any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
---|
568 | any2.MinOccurs = new decimal(1);
|
---|
569 | any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
570 | sequence.Items.Add(any2);
|
---|
571 | global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
572 | attribute1.Name = "namespace";
|
---|
573 | attribute1.FixedValue = ds.Namespace;
|
---|
574 | type.Attributes.Add(attribute1);
|
---|
575 | global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
576 | attribute2.Name = "tableTypeName";
|
---|
577 | attribute2.FixedValue = "ResourceDataTable";
|
---|
578 | type.Attributes.Add(attribute2);
|
---|
579 | type.Particle = sequence;
|
---|
580 | global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
---|
581 | if (xs.Contains(dsSchema.TargetNamespace)) {
|
---|
582 | global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
---|
583 | global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
---|
584 | try {
|
---|
585 | global::System.Xml.Schema.XmlSchema schema = null;
|
---|
586 | dsSchema.Write(s1);
|
---|
587 | for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
---|
588 | schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
---|
589 | s2.SetLength(0);
|
---|
590 | schema.Write(s2);
|
---|
591 | if ((s1.Length == s2.Length)) {
|
---|
592 | s1.Position = 0;
|
---|
593 | s2.Position = 0;
|
---|
594 | for (; ((s1.Position != s1.Length)
|
---|
595 | && (s1.ReadByte() == s2.ReadByte())); ) {
|
---|
596 | ;
|
---|
597 | }
|
---|
598 | if ((s1.Position == s1.Length)) {
|
---|
599 | return type;
|
---|
600 | }
|
---|
601 | }
|
---|
602 | }
|
---|
603 | }
|
---|
604 | finally {
|
---|
605 | if ((s1 != null)) {
|
---|
606 | s1.Close();
|
---|
607 | }
|
---|
608 | if ((s2 != null)) {
|
---|
609 | s2.Close();
|
---|
610 | }
|
---|
611 | }
|
---|
612 | }
|
---|
613 | xs.Add(dsSchema);
|
---|
614 | return type;
|
---|
615 | }
|
---|
616 | }
|
---|
617 |
|
---|
618 | /// <summary>
|
---|
619 | ///Represents the strongly named DataTable class.
|
---|
620 | ///</summary>
|
---|
621 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
622 | [global::System.Serializable()]
|
---|
623 | [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
---|
624 | public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
|
---|
625 |
|
---|
626 | private global::System.Data.DataColumn columnResourceId;
|
---|
627 |
|
---|
628 | private global::System.Data.DataColumn columnGUID;
|
---|
629 |
|
---|
630 | private global::System.Data.DataColumn columnCPUSpeed;
|
---|
631 |
|
---|
632 | private global::System.Data.DataColumn columnMemory;
|
---|
633 |
|
---|
634 | private global::System.Data.DataColumn columnLogin;
|
---|
635 |
|
---|
636 | private global::System.Data.DataColumn columnStatus;
|
---|
637 |
|
---|
638 | private global::System.Data.DataColumn columnClientConfigId;
|
---|
639 |
|
---|
640 | private global::System.Data.DataColumn columnNumberOfCores;
|
---|
641 |
|
---|
642 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
643 | public ClientDataTable() {
|
---|
644 | this.TableName = "Client";
|
---|
645 | this.BeginInit();
|
---|
646 | this.InitClass();
|
---|
647 | this.EndInit();
|
---|
648 | }
|
---|
649 |
|
---|
650 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
651 | internal ClientDataTable(global::System.Data.DataTable table) {
|
---|
652 | this.TableName = table.TableName;
|
---|
653 | if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
---|
654 | this.CaseSensitive = table.CaseSensitive;
|
---|
655 | }
|
---|
656 | if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
---|
657 | this.Locale = table.Locale;
|
---|
658 | }
|
---|
659 | if ((table.Namespace != table.DataSet.Namespace)) {
|
---|
660 | this.Namespace = table.Namespace;
|
---|
661 | }
|
---|
662 | this.Prefix = table.Prefix;
|
---|
663 | this.MinimumCapacity = table.MinimumCapacity;
|
---|
664 | }
|
---|
665 |
|
---|
666 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
667 | protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
---|
668 | base(info, context) {
|
---|
669 | this.InitVars();
|
---|
670 | }
|
---|
671 |
|
---|
672 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
673 | public global::System.Data.DataColumn ResourceIdColumn {
|
---|
674 | get {
|
---|
675 | return this.columnResourceId;
|
---|
676 | }
|
---|
677 | }
|
---|
678 |
|
---|
679 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
680 | public global::System.Data.DataColumn GUIDColumn {
|
---|
681 | get {
|
---|
682 | return this.columnGUID;
|
---|
683 | }
|
---|
684 | }
|
---|
685 |
|
---|
686 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
687 | public global::System.Data.DataColumn CPUSpeedColumn {
|
---|
688 | get {
|
---|
689 | return this.columnCPUSpeed;
|
---|
690 | }
|
---|
691 | }
|
---|
692 |
|
---|
693 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
694 | public global::System.Data.DataColumn MemoryColumn {
|
---|
695 | get {
|
---|
696 | return this.columnMemory;
|
---|
697 | }
|
---|
698 | }
|
---|
699 |
|
---|
700 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
701 | public global::System.Data.DataColumn LoginColumn {
|
---|
702 | get {
|
---|
703 | return this.columnLogin;
|
---|
704 | }
|
---|
705 | }
|
---|
706 |
|
---|
707 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
708 | public global::System.Data.DataColumn StatusColumn {
|
---|
709 | get {
|
---|
710 | return this.columnStatus;
|
---|
711 | }
|
---|
712 | }
|
---|
713 |
|
---|
714 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
715 | public global::System.Data.DataColumn ClientConfigIdColumn {
|
---|
716 | get {
|
---|
717 | return this.columnClientConfigId;
|
---|
718 | }
|
---|
719 | }
|
---|
720 |
|
---|
721 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
722 | public global::System.Data.DataColumn NumberOfCoresColumn {
|
---|
723 | get {
|
---|
724 | return this.columnNumberOfCores;
|
---|
725 | }
|
---|
726 | }
|
---|
727 |
|
---|
728 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
729 | [global::System.ComponentModel.Browsable(false)]
|
---|
730 | public int Count {
|
---|
731 | get {
|
---|
732 | return this.Rows.Count;
|
---|
733 | }
|
---|
734 | }
|
---|
735 |
|
---|
736 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
737 | public ClientRow this[int index] {
|
---|
738 | get {
|
---|
739 | return ((ClientRow)(this.Rows[index]));
|
---|
740 | }
|
---|
741 | }
|
---|
742 |
|
---|
743 | public event ClientRowChangeEventHandler ClientRowChanging;
|
---|
744 |
|
---|
745 | public event ClientRowChangeEventHandler ClientRowChanged;
|
---|
746 |
|
---|
747 | public event ClientRowChangeEventHandler ClientRowDeleting;
|
---|
748 |
|
---|
749 | public event ClientRowChangeEventHandler ClientRowDeleted;
|
---|
750 |
|
---|
751 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
752 | public void AddClientRow(ClientRow row) {
|
---|
753 | this.Rows.Add(row);
|
---|
754 | }
|
---|
755 |
|
---|
756 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
757 | public ClientRow AddClientRow(ResourceRow parentResourceRowByClient_is_a_Resource, System.Guid GUID, int CPUSpeed, int Memory, System.DateTime Login, string Status, long ClientConfigId, int NumberOfCores) {
|
---|
758 | ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
|
---|
759 | object[] columnValuesArray = new object[] {
|
---|
760 | null,
|
---|
761 | GUID,
|
---|
762 | CPUSpeed,
|
---|
763 | Memory,
|
---|
764 | Login,
|
---|
765 | Status,
|
---|
766 | ClientConfigId,
|
---|
767 | NumberOfCores};
|
---|
768 | if ((parentResourceRowByClient_is_a_Resource != null)) {
|
---|
769 | columnValuesArray[0] = parentResourceRowByClient_is_a_Resource[0];
|
---|
770 | }
|
---|
771 | rowClientRow.ItemArray = columnValuesArray;
|
---|
772 | this.Rows.Add(rowClientRow);
|
---|
773 | return rowClientRow;
|
---|
774 | }
|
---|
775 |
|
---|
776 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
777 | public ClientRow FindByResourceId(long ResourceId) {
|
---|
778 | return ((ClientRow)(this.Rows.Find(new object[] {
|
---|
779 | ResourceId})));
|
---|
780 | }
|
---|
781 |
|
---|
782 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
783 | public override global::System.Data.DataTable Clone() {
|
---|
784 | ClientDataTable cln = ((ClientDataTable)(base.Clone()));
|
---|
785 | cln.InitVars();
|
---|
786 | return cln;
|
---|
787 | }
|
---|
788 |
|
---|
789 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
790 | protected override global::System.Data.DataTable CreateInstance() {
|
---|
791 | return new ClientDataTable();
|
---|
792 | }
|
---|
793 |
|
---|
794 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
795 | internal void InitVars() {
|
---|
796 | this.columnResourceId = base.Columns["ResourceId"];
|
---|
797 | this.columnGUID = base.Columns["GUID"];
|
---|
798 | this.columnCPUSpeed = base.Columns["CPUSpeed"];
|
---|
799 | this.columnMemory = base.Columns["Memory"];
|
---|
800 | this.columnLogin = base.Columns["Login"];
|
---|
801 | this.columnStatus = base.Columns["Status"];
|
---|
802 | this.columnClientConfigId = base.Columns["ClientConfigId"];
|
---|
803 | this.columnNumberOfCores = base.Columns["NumberOfCores"];
|
---|
804 | }
|
---|
805 |
|
---|
806 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
807 | private void InitClass() {
|
---|
808 | this.columnResourceId = new global::System.Data.DataColumn("ResourceId", typeof(long), null, global::System.Data.MappingType.Element);
|
---|
809 | base.Columns.Add(this.columnResourceId);
|
---|
810 | this.columnGUID = new global::System.Data.DataColumn("GUID", typeof(global::System.Guid), null, global::System.Data.MappingType.Element);
|
---|
811 | base.Columns.Add(this.columnGUID);
|
---|
812 | this.columnCPUSpeed = new global::System.Data.DataColumn("CPUSpeed", typeof(int), null, global::System.Data.MappingType.Element);
|
---|
813 | base.Columns.Add(this.columnCPUSpeed);
|
---|
814 | this.columnMemory = new global::System.Data.DataColumn("Memory", typeof(int), null, global::System.Data.MappingType.Element);
|
---|
815 | base.Columns.Add(this.columnMemory);
|
---|
816 | this.columnLogin = new global::System.Data.DataColumn("Login", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
---|
817 | base.Columns.Add(this.columnLogin);
|
---|
818 | this.columnStatus = new global::System.Data.DataColumn("Status", typeof(string), null, global::System.Data.MappingType.Element);
|
---|
819 | base.Columns.Add(this.columnStatus);
|
---|
820 | this.columnClientConfigId = new global::System.Data.DataColumn("ClientConfigId", typeof(long), null, global::System.Data.MappingType.Element);
|
---|
821 | base.Columns.Add(this.columnClientConfigId);
|
---|
822 | this.columnNumberOfCores = new global::System.Data.DataColumn("NumberOfCores", typeof(int), null, global::System.Data.MappingType.Element);
|
---|
823 | base.Columns.Add(this.columnNumberOfCores);
|
---|
824 | this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
---|
825 | this.columnResourceId}, true));
|
---|
826 | this.columnResourceId.AllowDBNull = false;
|
---|
827 | this.columnResourceId.Unique = true;
|
---|
828 | this.columnStatus.MaxLength = 18;
|
---|
829 | }
|
---|
830 |
|
---|
831 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
832 | public ClientRow NewClientRow() {
|
---|
833 | return ((ClientRow)(this.NewRow()));
|
---|
834 | }
|
---|
835 |
|
---|
836 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
837 | protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
---|
838 | return new ClientRow(builder);
|
---|
839 | }
|
---|
840 |
|
---|
841 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
842 | protected override global::System.Type GetRowType() {
|
---|
843 | return typeof(ClientRow);
|
---|
844 | }
|
---|
845 |
|
---|
846 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
847 | protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
---|
848 | base.OnRowChanged(e);
|
---|
849 | if ((this.ClientRowChanged != null)) {
|
---|
850 | this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
|
---|
851 | }
|
---|
852 | }
|
---|
853 |
|
---|
854 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
855 | protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
---|
856 | base.OnRowChanging(e);
|
---|
857 | if ((this.ClientRowChanging != null)) {
|
---|
858 | this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
|
---|
859 | }
|
---|
860 | }
|
---|
861 |
|
---|
862 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
863 | protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
---|
864 | base.OnRowDeleted(e);
|
---|
865 | if ((this.ClientRowDeleted != null)) {
|
---|
866 | this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
|
---|
867 | }
|
---|
868 | }
|
---|
869 |
|
---|
870 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
871 | protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
---|
872 | base.OnRowDeleting(e);
|
---|
873 | if ((this.ClientRowDeleting != null)) {
|
---|
874 | this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
|
---|
875 | }
|
---|
876 | }
|
---|
877 |
|
---|
878 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
879 | public void RemoveClientRow(ClientRow row) {
|
---|
880 | this.Rows.Remove(row);
|
---|
881 | }
|
---|
882 |
|
---|
883 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
884 | public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
---|
885 | global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
---|
886 | global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
---|
887 | dsHiveServer ds = new dsHiveServer();
|
---|
888 | global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
889 | any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
---|
890 | any1.MinOccurs = new decimal(0);
|
---|
891 | any1.MaxOccurs = decimal.MaxValue;
|
---|
892 | any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
893 | sequence.Items.Add(any1);
|
---|
894 | global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
895 | any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
---|
896 | any2.MinOccurs = new decimal(1);
|
---|
897 | any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
898 | sequence.Items.Add(any2);
|
---|
899 | global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
900 | attribute1.Name = "namespace";
|
---|
901 | attribute1.FixedValue = ds.Namespace;
|
---|
902 | type.Attributes.Add(attribute1);
|
---|
903 | global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
904 | attribute2.Name = "tableTypeName";
|
---|
905 | attribute2.FixedValue = "ClientDataTable";
|
---|
906 | type.Attributes.Add(attribute2);
|
---|
907 | type.Particle = sequence;
|
---|
908 | global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
---|
909 | if (xs.Contains(dsSchema.TargetNamespace)) {
|
---|
910 | global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
---|
911 | global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
---|
912 | try {
|
---|
913 | global::System.Xml.Schema.XmlSchema schema = null;
|
---|
914 | dsSchema.Write(s1);
|
---|
915 | for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
---|
916 | schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
---|
917 | s2.SetLength(0);
|
---|
918 | schema.Write(s2);
|
---|
919 | if ((s1.Length == s2.Length)) {
|
---|
920 | s1.Position = 0;
|
---|
921 | s2.Position = 0;
|
---|
922 | for (; ((s1.Position != s1.Length)
|
---|
923 | && (s1.ReadByte() == s2.ReadByte())); ) {
|
---|
924 | ;
|
---|
925 | }
|
---|
926 | if ((s1.Position == s1.Length)) {
|
---|
927 | return type;
|
---|
928 | }
|
---|
929 | }
|
---|
930 | }
|
---|
931 | }
|
---|
932 | finally {
|
---|
933 | if ((s1 != null)) {
|
---|
934 | s1.Close();
|
---|
935 | }
|
---|
936 | if ((s2 != null)) {
|
---|
937 | s2.Close();
|
---|
938 | }
|
---|
939 | }
|
---|
940 | }
|
---|
941 | xs.Add(dsSchema);
|
---|
942 | return type;
|
---|
943 | }
|
---|
944 | }
|
---|
945 |
|
---|
946 | /// <summary>
|
---|
947 | ///Represents the strongly named DataTable class.
|
---|
948 | ///</summary>
|
---|
949 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
950 | [global::System.Serializable()]
|
---|
951 | [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
---|
952 | public partial class HiveUserDataTable : global::System.Data.TypedTableBase<HiveUserRow> {
|
---|
953 |
|
---|
954 | private global::System.Data.DataColumn columnPermissionOwnerId;
|
---|
955 |
|
---|
956 | private global::System.Data.DataColumn columnPassword;
|
---|
957 |
|
---|
958 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
959 | public HiveUserDataTable() {
|
---|
960 | this.TableName = "HiveUser";
|
---|
961 | this.BeginInit();
|
---|
962 | this.InitClass();
|
---|
963 | this.EndInit();
|
---|
964 | }
|
---|
965 |
|
---|
966 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
967 | internal HiveUserDataTable(global::System.Data.DataTable table) {
|
---|
968 | this.TableName = table.TableName;
|
---|
969 | if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
---|
970 | this.CaseSensitive = table.CaseSensitive;
|
---|
971 | }
|
---|
972 | if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
---|
973 | this.Locale = table.Locale;
|
---|
974 | }
|
---|
975 | if ((table.Namespace != table.DataSet.Namespace)) {
|
---|
976 | this.Namespace = table.Namespace;
|
---|
977 | }
|
---|
978 | this.Prefix = table.Prefix;
|
---|
979 | this.MinimumCapacity = table.MinimumCapacity;
|
---|
980 | }
|
---|
981 |
|
---|
982 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
983 | protected HiveUserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
---|
984 | base(info, context) {
|
---|
985 | this.InitVars();
|
---|
986 | }
|
---|
987 |
|
---|
988 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
989 | public global::System.Data.DataColumn PermissionOwnerIdColumn {
|
---|
990 | get {
|
---|
991 | return this.columnPermissionOwnerId;
|
---|
992 | }
|
---|
993 | }
|
---|
994 |
|
---|
995 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
996 | public global::System.Data.DataColumn PasswordColumn {
|
---|
997 | get {
|
---|
998 | return this.columnPassword;
|
---|
999 | }
|
---|
1000 | }
|
---|
1001 |
|
---|
1002 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1003 | [global::System.ComponentModel.Browsable(false)]
|
---|
1004 | public int Count {
|
---|
1005 | get {
|
---|
1006 | return this.Rows.Count;
|
---|
1007 | }
|
---|
1008 | }
|
---|
1009 |
|
---|
1010 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1011 | public HiveUserRow this[int index] {
|
---|
1012 | get {
|
---|
1013 | return ((HiveUserRow)(this.Rows[index]));
|
---|
1014 | }
|
---|
1015 | }
|
---|
1016 |
|
---|
1017 | public event HiveUserRowChangeEventHandler HiveUserRowChanging;
|
---|
1018 |
|
---|
1019 | public event HiveUserRowChangeEventHandler HiveUserRowChanged;
|
---|
1020 |
|
---|
1021 | public event HiveUserRowChangeEventHandler HiveUserRowDeleting;
|
---|
1022 |
|
---|
1023 | public event HiveUserRowChangeEventHandler HiveUserRowDeleted;
|
---|
1024 |
|
---|
1025 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1026 | public void AddHiveUserRow(HiveUserRow row) {
|
---|
1027 | this.Rows.Add(row);
|
---|
1028 | }
|
---|
1029 |
|
---|
1030 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1031 | public HiveUserRow AddHiveUserRow(PermissionOwnerRow parentPermissionOwnerRowByUser_is_a_PermissionOwner, string Password) {
|
---|
1032 | HiveUserRow rowHiveUserRow = ((HiveUserRow)(this.NewRow()));
|
---|
1033 | object[] columnValuesArray = new object[] {
|
---|
1034 | null,
|
---|
1035 | Password};
|
---|
1036 | if ((parentPermissionOwnerRowByUser_is_a_PermissionOwner != null)) {
|
---|
1037 | columnValuesArray[0] = parentPermissionOwnerRowByUser_is_a_PermissionOwner[0];
|
---|
1038 | }
|
---|
1039 | rowHiveUserRow.ItemArray = columnValuesArray;
|
---|
1040 | this.Rows.Add(rowHiveUserRow);
|
---|
1041 | return rowHiveUserRow;
|
---|
1042 | }
|
---|
1043 |
|
---|
1044 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1045 | public HiveUserRow FindByPermissionOwnerId(long PermissionOwnerId) {
|
---|
1046 | return ((HiveUserRow)(this.Rows.Find(new object[] {
|
---|
1047 | PermissionOwnerId})));
|
---|
1048 | }
|
---|
1049 |
|
---|
1050 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1051 | public override global::System.Data.DataTable Clone() {
|
---|
1052 | HiveUserDataTable cln = ((HiveUserDataTable)(base.Clone()));
|
---|
1053 | cln.InitVars();
|
---|
1054 | return cln;
|
---|
1055 | }
|
---|
1056 |
|
---|
1057 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1058 | protected override global::System.Data.DataTable CreateInstance() {
|
---|
1059 | return new HiveUserDataTable();
|
---|
1060 | }
|
---|
1061 |
|
---|
1062 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1063 | internal void InitVars() {
|
---|
1064 | this.columnPermissionOwnerId = base.Columns["PermissionOwnerId"];
|
---|
1065 | this.columnPassword = base.Columns["Password"];
|
---|
1066 | }
|
---|
1067 |
|
---|
1068 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1069 | private void InitClass() {
|
---|
1070 | this.columnPermissionOwnerId = new global::System.Data.DataColumn("PermissionOwnerId", typeof(long), null, global::System.Data.MappingType.Element);
|
---|
1071 | base.Columns.Add(this.columnPermissionOwnerId);
|
---|
1072 | this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
|
---|
1073 | base.Columns.Add(this.columnPassword);
|
---|
1074 | this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
---|
1075 | this.columnPermissionOwnerId}, true));
|
---|
1076 | this.columnPermissionOwnerId.AllowDBNull = false;
|
---|
1077 | this.columnPermissionOwnerId.Unique = true;
|
---|
1078 | this.columnPassword.MaxLength = 18;
|
---|
1079 | }
|
---|
1080 |
|
---|
1081 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1082 | public HiveUserRow NewHiveUserRow() {
|
---|
1083 | return ((HiveUserRow)(this.NewRow()));
|
---|
1084 | }
|
---|
1085 |
|
---|
1086 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1087 | protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
---|
1088 | return new HiveUserRow(builder);
|
---|
1089 | }
|
---|
1090 |
|
---|
1091 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1092 | protected override global::System.Type GetRowType() {
|
---|
1093 | return typeof(HiveUserRow);
|
---|
1094 | }
|
---|
1095 |
|
---|
1096 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1097 | protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1098 | base.OnRowChanged(e);
|
---|
1099 | if ((this.HiveUserRowChanged != null)) {
|
---|
1100 | this.HiveUserRowChanged(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action));
|
---|
1101 | }
|
---|
1102 | }
|
---|
1103 |
|
---|
1104 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1105 | protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1106 | base.OnRowChanging(e);
|
---|
1107 | if ((this.HiveUserRowChanging != null)) {
|
---|
1108 | this.HiveUserRowChanging(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action));
|
---|
1109 | }
|
---|
1110 | }
|
---|
1111 |
|
---|
1112 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1113 | protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1114 | base.OnRowDeleted(e);
|
---|
1115 | if ((this.HiveUserRowDeleted != null)) {
|
---|
1116 | this.HiveUserRowDeleted(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action));
|
---|
1117 | }
|
---|
1118 | }
|
---|
1119 |
|
---|
1120 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1121 | protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1122 | base.OnRowDeleting(e);
|
---|
1123 | if ((this.HiveUserRowDeleting != null)) {
|
---|
1124 | this.HiveUserRowDeleting(this, new HiveUserRowChangeEvent(((HiveUserRow)(e.Row)), e.Action));
|
---|
1125 | }
|
---|
1126 | }
|
---|
1127 |
|
---|
1128 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1129 | public void RemoveHiveUserRow(HiveUserRow row) {
|
---|
1130 | this.Rows.Remove(row);
|
---|
1131 | }
|
---|
1132 |
|
---|
1133 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1134 | public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
---|
1135 | global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
---|
1136 | global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
---|
1137 | dsHiveServer ds = new dsHiveServer();
|
---|
1138 | global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
1139 | any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
---|
1140 | any1.MinOccurs = new decimal(0);
|
---|
1141 | any1.MaxOccurs = decimal.MaxValue;
|
---|
1142 | any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
1143 | sequence.Items.Add(any1);
|
---|
1144 | global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
1145 | any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
---|
1146 | any2.MinOccurs = new decimal(1);
|
---|
1147 | any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
1148 | sequence.Items.Add(any2);
|
---|
1149 | global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
1150 | attribute1.Name = "namespace";
|
---|
1151 | attribute1.FixedValue = ds.Namespace;
|
---|
1152 | type.Attributes.Add(attribute1);
|
---|
1153 | global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
1154 | attribute2.Name = "tableTypeName";
|
---|
1155 | attribute2.FixedValue = "HiveUserDataTable";
|
---|
1156 | type.Attributes.Add(attribute2);
|
---|
1157 | type.Particle = sequence;
|
---|
1158 | global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
---|
1159 | if (xs.Contains(dsSchema.TargetNamespace)) {
|
---|
1160 | global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
---|
1161 | global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
---|
1162 | try {
|
---|
1163 | global::System.Xml.Schema.XmlSchema schema = null;
|
---|
1164 | dsSchema.Write(s1);
|
---|
1165 | for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
---|
1166 | schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
---|
1167 | s2.SetLength(0);
|
---|
1168 | schema.Write(s2);
|
---|
1169 | if ((s1.Length == s2.Length)) {
|
---|
1170 | s1.Position = 0;
|
---|
1171 | s2.Position = 0;
|
---|
1172 | for (; ((s1.Position != s1.Length)
|
---|
1173 | && (s1.ReadByte() == s2.ReadByte())); ) {
|
---|
1174 | ;
|
---|
1175 | }
|
---|
1176 | if ((s1.Position == s1.Length)) {
|
---|
1177 | return type;
|
---|
1178 | }
|
---|
1179 | }
|
---|
1180 | }
|
---|
1181 | }
|
---|
1182 | finally {
|
---|
1183 | if ((s1 != null)) {
|
---|
1184 | s1.Close();
|
---|
1185 | }
|
---|
1186 | if ((s2 != null)) {
|
---|
1187 | s2.Close();
|
---|
1188 | }
|
---|
1189 | }
|
---|
1190 | }
|
---|
1191 | xs.Add(dsSchema);
|
---|
1192 | return type;
|
---|
1193 | }
|
---|
1194 | }
|
---|
1195 |
|
---|
1196 | /// <summary>
|
---|
1197 | ///Represents the strongly named DataTable class.
|
---|
1198 | ///</summary>
|
---|
1199 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1200 | [global::System.Serializable()]
|
---|
1201 | [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
---|
1202 | public partial class PermissionOwnerDataTable : global::System.Data.TypedTableBase<PermissionOwnerRow> {
|
---|
1203 |
|
---|
1204 | private global::System.Data.DataColumn columnPermissionOwnerId;
|
---|
1205 |
|
---|
1206 | private global::System.Data.DataColumn columnName;
|
---|
1207 |
|
---|
1208 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1209 | public PermissionOwnerDataTable() {
|
---|
1210 | this.TableName = "PermissionOwner";
|
---|
1211 | this.BeginInit();
|
---|
1212 | this.InitClass();
|
---|
1213 | this.EndInit();
|
---|
1214 | }
|
---|
1215 |
|
---|
1216 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1217 | internal PermissionOwnerDataTable(global::System.Data.DataTable table) {
|
---|
1218 | this.TableName = table.TableName;
|
---|
1219 | if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
---|
1220 | this.CaseSensitive = table.CaseSensitive;
|
---|
1221 | }
|
---|
1222 | if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
---|
1223 | this.Locale = table.Locale;
|
---|
1224 | }
|
---|
1225 | if ((table.Namespace != table.DataSet.Namespace)) {
|
---|
1226 | this.Namespace = table.Namespace;
|
---|
1227 | }
|
---|
1228 | this.Prefix = table.Prefix;
|
---|
1229 | this.MinimumCapacity = table.MinimumCapacity;
|
---|
1230 | }
|
---|
1231 |
|
---|
1232 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1233 | protected PermissionOwnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
---|
1234 | base(info, context) {
|
---|
1235 | this.InitVars();
|
---|
1236 | }
|
---|
1237 |
|
---|
1238 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1239 | public global::System.Data.DataColumn PermissionOwnerIdColumn {
|
---|
1240 | get {
|
---|
1241 | return this.columnPermissionOwnerId;
|
---|
1242 | }
|
---|
1243 | }
|
---|
1244 |
|
---|
1245 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1246 | public global::System.Data.DataColumn NameColumn {
|
---|
1247 | get {
|
---|
1248 | return this.columnName;
|
---|
1249 | }
|
---|
1250 | }
|
---|
1251 |
|
---|
1252 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1253 | [global::System.ComponentModel.Browsable(false)]
|
---|
1254 | public int Count {
|
---|
1255 | get {
|
---|
1256 | return this.Rows.Count;
|
---|
1257 | }
|
---|
1258 | }
|
---|
1259 |
|
---|
1260 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1261 | public PermissionOwnerRow this[int index] {
|
---|
1262 | get {
|
---|
1263 | return ((PermissionOwnerRow)(this.Rows[index]));
|
---|
1264 | }
|
---|
1265 | }
|
---|
1266 |
|
---|
1267 | public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowChanging;
|
---|
1268 |
|
---|
1269 | public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowChanged;
|
---|
1270 |
|
---|
1271 | public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowDeleting;
|
---|
1272 |
|
---|
1273 | public event PermissionOwnerRowChangeEventHandler PermissionOwnerRowDeleted;
|
---|
1274 |
|
---|
1275 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1276 | public void AddPermissionOwnerRow(PermissionOwnerRow row) {
|
---|
1277 | this.Rows.Add(row);
|
---|
1278 | }
|
---|
1279 |
|
---|
1280 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1281 | public PermissionOwnerRow AddPermissionOwnerRow(string Name) {
|
---|
1282 | PermissionOwnerRow rowPermissionOwnerRow = ((PermissionOwnerRow)(this.NewRow()));
|
---|
1283 | object[] columnValuesArray = new object[] {
|
---|
1284 | null,
|
---|
1285 | Name};
|
---|
1286 | rowPermissionOwnerRow.ItemArray = columnValuesArray;
|
---|
1287 | this.Rows.Add(rowPermissionOwnerRow);
|
---|
1288 | return rowPermissionOwnerRow;
|
---|
1289 | }
|
---|
1290 |
|
---|
1291 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1292 | public PermissionOwnerRow FindByPermissionOwnerId(long PermissionOwnerId) {
|
---|
1293 | return ((PermissionOwnerRow)(this.Rows.Find(new object[] {
|
---|
1294 | PermissionOwnerId})));
|
---|
1295 | }
|
---|
1296 |
|
---|
1297 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1298 | public override global::System.Data.DataTable Clone() {
|
---|
1299 | PermissionOwnerDataTable cln = ((PermissionOwnerDataTable)(base.Clone()));
|
---|
1300 | cln.InitVars();
|
---|
1301 | return cln;
|
---|
1302 | }
|
---|
1303 |
|
---|
1304 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1305 | protected override global::System.Data.DataTable CreateInstance() {
|
---|
1306 | return new PermissionOwnerDataTable();
|
---|
1307 | }
|
---|
1308 |
|
---|
1309 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1310 | internal void InitVars() {
|
---|
1311 | this.columnPermissionOwnerId = base.Columns["PermissionOwnerId"];
|
---|
1312 | this.columnName = base.Columns["Name"];
|
---|
1313 | }
|
---|
1314 |
|
---|
1315 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1316 | private void InitClass() {
|
---|
1317 | this.columnPermissionOwnerId = new global::System.Data.DataColumn("PermissionOwnerId", typeof(long), null, global::System.Data.MappingType.Element);
|
---|
1318 | base.Columns.Add(this.columnPermissionOwnerId);
|
---|
1319 | this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
|
---|
1320 | base.Columns.Add(this.columnName);
|
---|
1321 | this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
---|
1322 | this.columnPermissionOwnerId}, true));
|
---|
1323 | this.columnPermissionOwnerId.AutoIncrement = true;
|
---|
1324 | this.columnPermissionOwnerId.AutoIncrementSeed = -1;
|
---|
1325 | this.columnPermissionOwnerId.AutoIncrementStep = -1;
|
---|
1326 | this.columnPermissionOwnerId.AllowDBNull = false;
|
---|
1327 | this.columnPermissionOwnerId.ReadOnly = true;
|
---|
1328 | this.columnPermissionOwnerId.Unique = true;
|
---|
1329 | this.columnName.MaxLength = 18;
|
---|
1330 | }
|
---|
1331 |
|
---|
1332 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1333 | public PermissionOwnerRow NewPermissionOwnerRow() {
|
---|
1334 | return ((PermissionOwnerRow)(this.NewRow()));
|
---|
1335 | }
|
---|
1336 |
|
---|
1337 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1338 | protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
---|
1339 | return new PermissionOwnerRow(builder);
|
---|
1340 | }
|
---|
1341 |
|
---|
1342 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1343 | protected override global::System.Type GetRowType() {
|
---|
1344 | return typeof(PermissionOwnerRow);
|
---|
1345 | }
|
---|
1346 |
|
---|
1347 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1348 | protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1349 | base.OnRowChanged(e);
|
---|
1350 | if ((this.PermissionOwnerRowChanged != null)) {
|
---|
1351 | this.PermissionOwnerRowChanged(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action));
|
---|
1352 | }
|
---|
1353 | }
|
---|
1354 |
|
---|
1355 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1356 | protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1357 | base.OnRowChanging(e);
|
---|
1358 | if ((this.PermissionOwnerRowChanging != null)) {
|
---|
1359 | this.PermissionOwnerRowChanging(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action));
|
---|
1360 | }
|
---|
1361 | }
|
---|
1362 |
|
---|
1363 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1364 | protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1365 | base.OnRowDeleted(e);
|
---|
1366 | if ((this.PermissionOwnerRowDeleted != null)) {
|
---|
1367 | this.PermissionOwnerRowDeleted(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action));
|
---|
1368 | }
|
---|
1369 | }
|
---|
1370 |
|
---|
1371 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1372 | protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
---|
1373 | base.OnRowDeleting(e);
|
---|
1374 | if ((this.PermissionOwnerRowDeleting != null)) {
|
---|
1375 | this.PermissionOwnerRowDeleting(this, new PermissionOwnerRowChangeEvent(((PermissionOwnerRow)(e.Row)), e.Action));
|
---|
1376 | }
|
---|
1377 | }
|
---|
1378 |
|
---|
1379 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1380 | public void RemovePermissionOwnerRow(PermissionOwnerRow row) {
|
---|
1381 | this.Rows.Remove(row);
|
---|
1382 | }
|
---|
1383 |
|
---|
1384 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1385 | public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
---|
1386 | global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
---|
1387 | global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
---|
1388 | dsHiveServer ds = new dsHiveServer();
|
---|
1389 | global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
1390 | any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
---|
1391 | any1.MinOccurs = new decimal(0);
|
---|
1392 | any1.MaxOccurs = decimal.MaxValue;
|
---|
1393 | any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
1394 | sequence.Items.Add(any1);
|
---|
1395 | global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
---|
1396 | any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
---|
1397 | any2.MinOccurs = new decimal(1);
|
---|
1398 | any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
---|
1399 | sequence.Items.Add(any2);
|
---|
1400 | global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
1401 | attribute1.Name = "namespace";
|
---|
1402 | attribute1.FixedValue = ds.Namespace;
|
---|
1403 | type.Attributes.Add(attribute1);
|
---|
1404 | global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
---|
1405 | attribute2.Name = "tableTypeName";
|
---|
1406 | attribute2.FixedValue = "PermissionOwnerDataTable";
|
---|
1407 | type.Attributes.Add(attribute2);
|
---|
1408 | type.Particle = sequence;
|
---|
1409 | global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
---|
1410 | if (xs.Contains(dsSchema.TargetNamespace)) {
|
---|
1411 | global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
---|
1412 | global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
---|
1413 | try {
|
---|
1414 | global::System.Xml.Schema.XmlSchema schema = null;
|
---|
1415 | dsSchema.Write(s1);
|
---|
1416 | for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
---|
1417 | schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
---|
1418 | s2.SetLength(0);
|
---|
1419 | schema.Write(s2);
|
---|
1420 | if ((s1.Length == s2.Length)) {
|
---|
1421 | s1.Position = 0;
|
---|
1422 | s2.Position = 0;
|
---|
1423 | for (; ((s1.Position != s1.Length)
|
---|
1424 | && (s1.ReadByte() == s2.ReadByte())); ) {
|
---|
1425 | ;
|
---|
1426 | }
|
---|
1427 | if ((s1.Position == s1.Length)) {
|
---|
1428 | return type;
|
---|
1429 | }
|
---|
1430 | }
|
---|
1431 | }
|
---|
1432 | }
|
---|
1433 | finally {
|
---|
1434 | if ((s1 != null)) {
|
---|
1435 | s1.Close();
|
---|
1436 | }
|
---|
1437 | if ((s2 != null)) {
|
---|
1438 | s2.Close();
|
---|
1439 | }
|
---|
1440 | }
|
---|
1441 | }
|
---|
1442 | xs.Add(dsSchema);
|
---|
1443 | return type;
|
---|
1444 | }
|
---|
1445 | }
|
---|
1446 |
|
---|
1447 | /// <summary>
|
---|
1448 | ///Represents strongly named DataRow class.
|
---|
1449 | ///</summary>
|
---|
1450 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1451 | public partial class ResourceRow : global::System.Data.DataRow {
|
---|
1452 |
|
---|
1453 | private ResourceDataTable tableResource;
|
---|
1454 |
|
---|
1455 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1456 | internal ResourceRow(global::System.Data.DataRowBuilder rb) :
|
---|
1457 | base(rb) {
|
---|
1458 | this.tableResource = ((ResourceDataTable)(this.Table));
|
---|
1459 | }
|
---|
1460 |
|
---|
1461 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1462 | public long ResourceId {
|
---|
1463 | get {
|
---|
1464 | return ((long)(this[this.tableResource.ResourceIdColumn]));
|
---|
1465 | }
|
---|
1466 | set {
|
---|
1467 | this[this.tableResource.ResourceIdColumn] = value;
|
---|
1468 | }
|
---|
1469 | }
|
---|
1470 |
|
---|
1471 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1472 | public string Name {
|
---|
1473 | get {
|
---|
1474 | try {
|
---|
1475 | return ((string)(this[this.tableResource.NameColumn]));
|
---|
1476 | }
|
---|
1477 | catch (global::System.InvalidCastException e) {
|
---|
1478 | throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Resource\' is DBNull.", e);
|
---|
1479 | }
|
---|
1480 | }
|
---|
1481 | set {
|
---|
1482 | this[this.tableResource.NameColumn] = value;
|
---|
1483 | }
|
---|
1484 | }
|
---|
1485 |
|
---|
1486 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1487 | public bool IsNameNull() {
|
---|
1488 | return this.IsNull(this.tableResource.NameColumn);
|
---|
1489 | }
|
---|
1490 |
|
---|
1491 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1492 | public void SetNameNull() {
|
---|
1493 | this[this.tableResource.NameColumn] = global::System.Convert.DBNull;
|
---|
1494 | }
|
---|
1495 |
|
---|
1496 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1497 | public ClientRow[] GetClientRows() {
|
---|
1498 | if ((this.Table.ChildRelations["Client_is_a_Resource"] == null)) {
|
---|
1499 | return new ClientRow[0];
|
---|
1500 | }
|
---|
1501 | else {
|
---|
1502 | return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["Client_is_a_Resource"])));
|
---|
1503 | }
|
---|
1504 | }
|
---|
1505 | }
|
---|
1506 |
|
---|
1507 | /// <summary>
|
---|
1508 | ///Represents strongly named DataRow class.
|
---|
1509 | ///</summary>
|
---|
1510 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1511 | public partial class ClientRow : global::System.Data.DataRow {
|
---|
1512 |
|
---|
1513 | private ClientDataTable tableClient;
|
---|
1514 |
|
---|
1515 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1516 | internal ClientRow(global::System.Data.DataRowBuilder rb) :
|
---|
1517 | base(rb) {
|
---|
1518 | this.tableClient = ((ClientDataTable)(this.Table));
|
---|
1519 | }
|
---|
1520 |
|
---|
1521 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1522 | public long ResourceId {
|
---|
1523 | get {
|
---|
1524 | return ((long)(this[this.tableClient.ResourceIdColumn]));
|
---|
1525 | }
|
---|
1526 | set {
|
---|
1527 | this[this.tableClient.ResourceIdColumn] = value;
|
---|
1528 | }
|
---|
1529 | }
|
---|
1530 |
|
---|
1531 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1532 | public System.Guid GUID {
|
---|
1533 | get {
|
---|
1534 | try {
|
---|
1535 | return ((global::System.Guid)(this[this.tableClient.GUIDColumn]));
|
---|
1536 | }
|
---|
1537 | catch (global::System.InvalidCastException e) {
|
---|
1538 | throw new global::System.Data.StrongTypingException("The value for column \'GUID\' in table \'Client\' is DBNull.", e);
|
---|
1539 | }
|
---|
1540 | }
|
---|
1541 | set {
|
---|
1542 | this[this.tableClient.GUIDColumn] = value;
|
---|
1543 | }
|
---|
1544 | }
|
---|
1545 |
|
---|
1546 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1547 | public int CPUSpeed {
|
---|
1548 | get {
|
---|
1549 | try {
|
---|
1550 | return ((int)(this[this.tableClient.CPUSpeedColumn]));
|
---|
1551 | }
|
---|
1552 | catch (global::System.InvalidCastException e) {
|
---|
1553 | throw new global::System.Data.StrongTypingException("The value for column \'CPUSpeed\' in table \'Client\' is DBNull.", e);
|
---|
1554 | }
|
---|
1555 | }
|
---|
1556 | set {
|
---|
1557 | this[this.tableClient.CPUSpeedColumn] = value;
|
---|
1558 | }
|
---|
1559 | }
|
---|
1560 |
|
---|
1561 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1562 | public int Memory {
|
---|
1563 | get {
|
---|
1564 | try {
|
---|
1565 | return ((int)(this[this.tableClient.MemoryColumn]));
|
---|
1566 | }
|
---|
1567 | catch (global::System.InvalidCastException e) {
|
---|
1568 | throw new global::System.Data.StrongTypingException("The value for column \'Memory\' in table \'Client\' is DBNull.", e);
|
---|
1569 | }
|
---|
1570 | }
|
---|
1571 | set {
|
---|
1572 | this[this.tableClient.MemoryColumn] = value;
|
---|
1573 | }
|
---|
1574 | }
|
---|
1575 |
|
---|
1576 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1577 | public System.DateTime Login {
|
---|
1578 | get {
|
---|
1579 | try {
|
---|
1580 | return ((global::System.DateTime)(this[this.tableClient.LoginColumn]));
|
---|
1581 | }
|
---|
1582 | catch (global::System.InvalidCastException e) {
|
---|
1583 | throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Client\' is DBNull.", e);
|
---|
1584 | }
|
---|
1585 | }
|
---|
1586 | set {
|
---|
1587 | this[this.tableClient.LoginColumn] = value;
|
---|
1588 | }
|
---|
1589 | }
|
---|
1590 |
|
---|
1591 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1592 | public string Status {
|
---|
1593 | get {
|
---|
1594 | try {
|
---|
1595 | return ((string)(this[this.tableClient.StatusColumn]));
|
---|
1596 | }
|
---|
1597 | catch (global::System.InvalidCastException e) {
|
---|
1598 | throw new global::System.Data.StrongTypingException("The value for column \'Status\' in table \'Client\' is DBNull.", e);
|
---|
1599 | }
|
---|
1600 | }
|
---|
1601 | set {
|
---|
1602 | this[this.tableClient.StatusColumn] = value;
|
---|
1603 | }
|
---|
1604 | }
|
---|
1605 |
|
---|
1606 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1607 | public long ClientConfigId {
|
---|
1608 | get {
|
---|
1609 | try {
|
---|
1610 | return ((long)(this[this.tableClient.ClientConfigIdColumn]));
|
---|
1611 | }
|
---|
1612 | catch (global::System.InvalidCastException e) {
|
---|
1613 | throw new global::System.Data.StrongTypingException("The value for column \'ClientConfigId\' in table \'Client\' is DBNull.", e);
|
---|
1614 | }
|
---|
1615 | }
|
---|
1616 | set {
|
---|
1617 | this[this.tableClient.ClientConfigIdColumn] = value;
|
---|
1618 | }
|
---|
1619 | }
|
---|
1620 |
|
---|
1621 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1622 | public int NumberOfCores {
|
---|
1623 | get {
|
---|
1624 | try {
|
---|
1625 | return ((int)(this[this.tableClient.NumberOfCoresColumn]));
|
---|
1626 | }
|
---|
1627 | catch (global::System.InvalidCastException e) {
|
---|
1628 | throw new global::System.Data.StrongTypingException("The value for column \'NumberOfCores\' in table \'Client\' is DBNull.", e);
|
---|
1629 | }
|
---|
1630 | }
|
---|
1631 | set {
|
---|
1632 | this[this.tableClient.NumberOfCoresColumn] = value;
|
---|
1633 | }
|
---|
1634 | }
|
---|
1635 |
|
---|
1636 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1637 | public ResourceRow ResourceRow {
|
---|
1638 | get {
|
---|
1639 | return ((ResourceRow)(this.GetParentRow(this.Table.ParentRelations["Client_is_a_Resource"])));
|
---|
1640 | }
|
---|
1641 | set {
|
---|
1642 | this.SetParentRow(value, this.Table.ParentRelations["Client_is_a_Resource"]);
|
---|
1643 | }
|
---|
1644 | }
|
---|
1645 |
|
---|
1646 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1647 | public bool IsGUIDNull() {
|
---|
1648 | return this.IsNull(this.tableClient.GUIDColumn);
|
---|
1649 | }
|
---|
1650 |
|
---|
1651 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1652 | public void SetGUIDNull() {
|
---|
1653 | this[this.tableClient.GUIDColumn] = global::System.Convert.DBNull;
|
---|
1654 | }
|
---|
1655 |
|
---|
1656 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1657 | public bool IsCPUSpeedNull() {
|
---|
1658 | return this.IsNull(this.tableClient.CPUSpeedColumn);
|
---|
1659 | }
|
---|
1660 |
|
---|
1661 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1662 | public void SetCPUSpeedNull() {
|
---|
1663 | this[this.tableClient.CPUSpeedColumn] = global::System.Convert.DBNull;
|
---|
1664 | }
|
---|
1665 |
|
---|
1666 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1667 | public bool IsMemoryNull() {
|
---|
1668 | return this.IsNull(this.tableClient.MemoryColumn);
|
---|
1669 | }
|
---|
1670 |
|
---|
1671 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1672 | public void SetMemoryNull() {
|
---|
1673 | this[this.tableClient.MemoryColumn] = global::System.Convert.DBNull;
|
---|
1674 | }
|
---|
1675 |
|
---|
1676 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1677 | public bool IsLoginNull() {
|
---|
1678 | return this.IsNull(this.tableClient.LoginColumn);
|
---|
1679 | }
|
---|
1680 |
|
---|
1681 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1682 | public void SetLoginNull() {
|
---|
1683 | this[this.tableClient.LoginColumn] = global::System.Convert.DBNull;
|
---|
1684 | }
|
---|
1685 |
|
---|
1686 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1687 | public bool IsStatusNull() {
|
---|
1688 | return this.IsNull(this.tableClient.StatusColumn);
|
---|
1689 | }
|
---|
1690 |
|
---|
1691 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1692 | public void SetStatusNull() {
|
---|
1693 | this[this.tableClient.StatusColumn] = global::System.Convert.DBNull;
|
---|
1694 | }
|
---|
1695 |
|
---|
1696 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1697 | public bool IsClientConfigIdNull() {
|
---|
1698 | return this.IsNull(this.tableClient.ClientConfigIdColumn);
|
---|
1699 | }
|
---|
1700 |
|
---|
1701 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1702 | public void SetClientConfigIdNull() {
|
---|
1703 | this[this.tableClient.ClientConfigIdColumn] = global::System.Convert.DBNull;
|
---|
1704 | }
|
---|
1705 |
|
---|
1706 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1707 | public bool IsNumberOfCoresNull() {
|
---|
1708 | return this.IsNull(this.tableClient.NumberOfCoresColumn);
|
---|
1709 | }
|
---|
1710 |
|
---|
1711 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1712 | public void SetNumberOfCoresNull() {
|
---|
1713 | this[this.tableClient.NumberOfCoresColumn] = global::System.Convert.DBNull;
|
---|
1714 | }
|
---|
1715 | }
|
---|
1716 |
|
---|
1717 | /// <summary>
|
---|
1718 | ///Represents strongly named DataRow class.
|
---|
1719 | ///</summary>
|
---|
1720 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1721 | public partial class HiveUserRow : global::System.Data.DataRow {
|
---|
1722 |
|
---|
1723 | private HiveUserDataTable tableHiveUser;
|
---|
1724 |
|
---|
1725 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1726 | internal HiveUserRow(global::System.Data.DataRowBuilder rb) :
|
---|
1727 | base(rb) {
|
---|
1728 | this.tableHiveUser = ((HiveUserDataTable)(this.Table));
|
---|
1729 | }
|
---|
1730 |
|
---|
1731 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1732 | public long PermissionOwnerId {
|
---|
1733 | get {
|
---|
1734 | return ((long)(this[this.tableHiveUser.PermissionOwnerIdColumn]));
|
---|
1735 | }
|
---|
1736 | set {
|
---|
1737 | this[this.tableHiveUser.PermissionOwnerIdColumn] = value;
|
---|
1738 | }
|
---|
1739 | }
|
---|
1740 |
|
---|
1741 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1742 | public string Password {
|
---|
1743 | get {
|
---|
1744 | try {
|
---|
1745 | return ((string)(this[this.tableHiveUser.PasswordColumn]));
|
---|
1746 | }
|
---|
1747 | catch (global::System.InvalidCastException e) {
|
---|
1748 | throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'HiveUser\' is DBNull.", e);
|
---|
1749 | }
|
---|
1750 | }
|
---|
1751 | set {
|
---|
1752 | this[this.tableHiveUser.PasswordColumn] = value;
|
---|
1753 | }
|
---|
1754 | }
|
---|
1755 |
|
---|
1756 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1757 | public PermissionOwnerRow PermissionOwnerRow {
|
---|
1758 | get {
|
---|
1759 | return ((PermissionOwnerRow)(this.GetParentRow(this.Table.ParentRelations["User_is_a_PermissionOwner"])));
|
---|
1760 | }
|
---|
1761 | set {
|
---|
1762 | this.SetParentRow(value, this.Table.ParentRelations["User_is_a_PermissionOwner"]);
|
---|
1763 | }
|
---|
1764 | }
|
---|
1765 |
|
---|
1766 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1767 | public bool IsPasswordNull() {
|
---|
1768 | return this.IsNull(this.tableHiveUser.PasswordColumn);
|
---|
1769 | }
|
---|
1770 |
|
---|
1771 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1772 | public void SetPasswordNull() {
|
---|
1773 | this[this.tableHiveUser.PasswordColumn] = global::System.Convert.DBNull;
|
---|
1774 | }
|
---|
1775 | }
|
---|
1776 |
|
---|
1777 | /// <summary>
|
---|
1778 | ///Represents strongly named DataRow class.
|
---|
1779 | ///</summary>
|
---|
1780 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1781 | public partial class PermissionOwnerRow : global::System.Data.DataRow {
|
---|
1782 |
|
---|
1783 | private PermissionOwnerDataTable tablePermissionOwner;
|
---|
1784 |
|
---|
1785 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1786 | internal PermissionOwnerRow(global::System.Data.DataRowBuilder rb) :
|
---|
1787 | base(rb) {
|
---|
1788 | this.tablePermissionOwner = ((PermissionOwnerDataTable)(this.Table));
|
---|
1789 | }
|
---|
1790 |
|
---|
1791 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1792 | public long PermissionOwnerId {
|
---|
1793 | get {
|
---|
1794 | return ((long)(this[this.tablePermissionOwner.PermissionOwnerIdColumn]));
|
---|
1795 | }
|
---|
1796 | set {
|
---|
1797 | this[this.tablePermissionOwner.PermissionOwnerIdColumn] = value;
|
---|
1798 | }
|
---|
1799 | }
|
---|
1800 |
|
---|
1801 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1802 | public string Name {
|
---|
1803 | get {
|
---|
1804 | try {
|
---|
1805 | return ((string)(this[this.tablePermissionOwner.NameColumn]));
|
---|
1806 | }
|
---|
1807 | catch (global::System.InvalidCastException e) {
|
---|
1808 | throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'PermissionOwner\' is DBNull.", e);
|
---|
1809 | }
|
---|
1810 | }
|
---|
1811 | set {
|
---|
1812 | this[this.tablePermissionOwner.NameColumn] = value;
|
---|
1813 | }
|
---|
1814 | }
|
---|
1815 |
|
---|
1816 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1817 | public bool IsNameNull() {
|
---|
1818 | return this.IsNull(this.tablePermissionOwner.NameColumn);
|
---|
1819 | }
|
---|
1820 |
|
---|
1821 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1822 | public void SetNameNull() {
|
---|
1823 | this[this.tablePermissionOwner.NameColumn] = global::System.Convert.DBNull;
|
---|
1824 | }
|
---|
1825 |
|
---|
1826 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1827 | public HiveUserRow[] GetHiveUserRows() {
|
---|
1828 | if ((this.Table.ChildRelations["User_is_a_PermissionOwner"] == null)) {
|
---|
1829 | return new HiveUserRow[0];
|
---|
1830 | }
|
---|
1831 | else {
|
---|
1832 | return ((HiveUserRow[])(base.GetChildRows(this.Table.ChildRelations["User_is_a_PermissionOwner"])));
|
---|
1833 | }
|
---|
1834 | }
|
---|
1835 | }
|
---|
1836 |
|
---|
1837 | /// <summary>
|
---|
1838 | ///Row event argument class
|
---|
1839 | ///</summary>
|
---|
1840 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1841 | public class ResourceRowChangeEvent : global::System.EventArgs {
|
---|
1842 |
|
---|
1843 | private ResourceRow eventRow;
|
---|
1844 |
|
---|
1845 | private global::System.Data.DataRowAction eventAction;
|
---|
1846 |
|
---|
1847 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1848 | public ResourceRowChangeEvent(ResourceRow row, global::System.Data.DataRowAction action) {
|
---|
1849 | this.eventRow = row;
|
---|
1850 | this.eventAction = action;
|
---|
1851 | }
|
---|
1852 |
|
---|
1853 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1854 | public ResourceRow Row {
|
---|
1855 | get {
|
---|
1856 | return this.eventRow;
|
---|
1857 | }
|
---|
1858 | }
|
---|
1859 |
|
---|
1860 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1861 | public global::System.Data.DataRowAction Action {
|
---|
1862 | get {
|
---|
1863 | return this.eventAction;
|
---|
1864 | }
|
---|
1865 | }
|
---|
1866 | }
|
---|
1867 |
|
---|
1868 | /// <summary>
|
---|
1869 | ///Row event argument class
|
---|
1870 | ///</summary>
|
---|
1871 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1872 | public class ClientRowChangeEvent : global::System.EventArgs {
|
---|
1873 |
|
---|
1874 | private ClientRow eventRow;
|
---|
1875 |
|
---|
1876 | private global::System.Data.DataRowAction eventAction;
|
---|
1877 |
|
---|
1878 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1879 | public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
|
---|
1880 | this.eventRow = row;
|
---|
1881 | this.eventAction = action;
|
---|
1882 | }
|
---|
1883 |
|
---|
1884 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1885 | public ClientRow Row {
|
---|
1886 | get {
|
---|
1887 | return this.eventRow;
|
---|
1888 | }
|
---|
1889 | }
|
---|
1890 |
|
---|
1891 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1892 | public global::System.Data.DataRowAction Action {
|
---|
1893 | get {
|
---|
1894 | return this.eventAction;
|
---|
1895 | }
|
---|
1896 | }
|
---|
1897 | }
|
---|
1898 |
|
---|
1899 | /// <summary>
|
---|
1900 | ///Row event argument class
|
---|
1901 | ///</summary>
|
---|
1902 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1903 | public class HiveUserRowChangeEvent : global::System.EventArgs {
|
---|
1904 |
|
---|
1905 | private HiveUserRow eventRow;
|
---|
1906 |
|
---|
1907 | private global::System.Data.DataRowAction eventAction;
|
---|
1908 |
|
---|
1909 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1910 | public HiveUserRowChangeEvent(HiveUserRow row, global::System.Data.DataRowAction action) {
|
---|
1911 | this.eventRow = row;
|
---|
1912 | this.eventAction = action;
|
---|
1913 | }
|
---|
1914 |
|
---|
1915 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1916 | public HiveUserRow Row {
|
---|
1917 | get {
|
---|
1918 | return this.eventRow;
|
---|
1919 | }
|
---|
1920 | }
|
---|
1921 |
|
---|
1922 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1923 | public global::System.Data.DataRowAction Action {
|
---|
1924 | get {
|
---|
1925 | return this.eventAction;
|
---|
1926 | }
|
---|
1927 | }
|
---|
1928 | }
|
---|
1929 |
|
---|
1930 | /// <summary>
|
---|
1931 | ///Row event argument class
|
---|
1932 | ///</summary>
|
---|
1933 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1934 | public class PermissionOwnerRowChangeEvent : global::System.EventArgs {
|
---|
1935 |
|
---|
1936 | private PermissionOwnerRow eventRow;
|
---|
1937 |
|
---|
1938 | private global::System.Data.DataRowAction eventAction;
|
---|
1939 |
|
---|
1940 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1941 | public PermissionOwnerRowChangeEvent(PermissionOwnerRow row, global::System.Data.DataRowAction action) {
|
---|
1942 | this.eventRow = row;
|
---|
1943 | this.eventAction = action;
|
---|
1944 | }
|
---|
1945 |
|
---|
1946 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1947 | public PermissionOwnerRow Row {
|
---|
1948 | get {
|
---|
1949 | return this.eventRow;
|
---|
1950 | }
|
---|
1951 | }
|
---|
1952 |
|
---|
1953 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1954 | public global::System.Data.DataRowAction Action {
|
---|
1955 | get {
|
---|
1956 | return this.eventAction;
|
---|
1957 | }
|
---|
1958 | }
|
---|
1959 | }
|
---|
1960 | }
|
---|
1961 | }
|
---|
1962 | namespace HeuristicLab.Hive.Server.ADODataAccess.dsHiveServerTableAdapters {
|
---|
1963 |
|
---|
1964 |
|
---|
1965 | /// <summary>
|
---|
1966 | ///Represents the connection and commands used to retrieve and save data.
|
---|
1967 | ///</summary>
|
---|
1968 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
1969 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
1970 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
1971 | [global::System.ComponentModel.DataObjectAttribute(true)]
|
---|
1972 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
---|
1973 | ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
1974 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
1975 | public partial class ResourceTableAdapter : global::System.ComponentModel.Component {
|
---|
1976 |
|
---|
1977 | private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
---|
1978 |
|
---|
1979 | private global::System.Data.SqlClient.SqlConnection _connection;
|
---|
1980 |
|
---|
1981 | private global::System.Data.SqlClient.SqlTransaction _transaction;
|
---|
1982 |
|
---|
1983 | private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
---|
1984 |
|
---|
1985 | private bool _clearBeforeFill;
|
---|
1986 |
|
---|
1987 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1988 | public ResourceTableAdapter() {
|
---|
1989 | this.ClearBeforeFill = true;
|
---|
1990 | }
|
---|
1991 |
|
---|
1992 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
1993 | protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
---|
1994 | get {
|
---|
1995 | if ((this._adapter == null)) {
|
---|
1996 | this.InitAdapter();
|
---|
1997 | }
|
---|
1998 | return this._adapter;
|
---|
1999 | }
|
---|
2000 | }
|
---|
2001 |
|
---|
2002 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2003 | internal global::System.Data.SqlClient.SqlConnection Connection {
|
---|
2004 | get {
|
---|
2005 | if ((this._connection == null)) {
|
---|
2006 | this.InitConnection();
|
---|
2007 | }
|
---|
2008 | return this._connection;
|
---|
2009 | }
|
---|
2010 | set {
|
---|
2011 | this._connection = value;
|
---|
2012 | if ((this.Adapter.InsertCommand != null)) {
|
---|
2013 | this.Adapter.InsertCommand.Connection = value;
|
---|
2014 | }
|
---|
2015 | if ((this.Adapter.DeleteCommand != null)) {
|
---|
2016 | this.Adapter.DeleteCommand.Connection = value;
|
---|
2017 | }
|
---|
2018 | if ((this.Adapter.UpdateCommand != null)) {
|
---|
2019 | this.Adapter.UpdateCommand.Connection = value;
|
---|
2020 | }
|
---|
2021 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
2022 | if ((this.CommandCollection[i] != null)) {
|
---|
2023 | ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
---|
2024 | }
|
---|
2025 | }
|
---|
2026 | }
|
---|
2027 | }
|
---|
2028 |
|
---|
2029 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2030 | internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
---|
2031 | get {
|
---|
2032 | return this._transaction;
|
---|
2033 | }
|
---|
2034 | set {
|
---|
2035 | this._transaction = value;
|
---|
2036 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
2037 | this.CommandCollection[i].Transaction = this._transaction;
|
---|
2038 | }
|
---|
2039 | if (((this.Adapter != null)
|
---|
2040 | && (this.Adapter.DeleteCommand != null))) {
|
---|
2041 | this.Adapter.DeleteCommand.Transaction = this._transaction;
|
---|
2042 | }
|
---|
2043 | if (((this.Adapter != null)
|
---|
2044 | && (this.Adapter.InsertCommand != null))) {
|
---|
2045 | this.Adapter.InsertCommand.Transaction = this._transaction;
|
---|
2046 | }
|
---|
2047 | if (((this.Adapter != null)
|
---|
2048 | && (this.Adapter.UpdateCommand != null))) {
|
---|
2049 | this.Adapter.UpdateCommand.Transaction = this._transaction;
|
---|
2050 | }
|
---|
2051 | }
|
---|
2052 | }
|
---|
2053 |
|
---|
2054 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2055 | protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
---|
2056 | get {
|
---|
2057 | if ((this._commandCollection == null)) {
|
---|
2058 | this.InitCommandCollection();
|
---|
2059 | }
|
---|
2060 | return this._commandCollection;
|
---|
2061 | }
|
---|
2062 | }
|
---|
2063 |
|
---|
2064 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2065 | public bool ClearBeforeFill {
|
---|
2066 | get {
|
---|
2067 | return this._clearBeforeFill;
|
---|
2068 | }
|
---|
2069 | set {
|
---|
2070 | this._clearBeforeFill = value;
|
---|
2071 | }
|
---|
2072 | }
|
---|
2073 |
|
---|
2074 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2075 | private void InitAdapter() {
|
---|
2076 | this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
---|
2077 | global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
---|
2078 | tableMapping.SourceTable = "Table";
|
---|
2079 | tableMapping.DataSetTable = "Resource";
|
---|
2080 | tableMapping.ColumnMappings.Add("ResourceId", "ResourceId");
|
---|
2081 | tableMapping.ColumnMappings.Add("Name", "Name");
|
---|
2082 | this._adapter.TableMappings.Add(tableMapping);
|
---|
2083 | this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2084 | this._adapter.DeleteCommand.Connection = this.Connection;
|
---|
2085 | this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Resource] WHERE (([ResourceId] = @Original_ResourceId) AND ((@" +
|
---|
2086 | "IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
|
---|
2087 | this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2088 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2089 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2090 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2091 | this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2092 | this._adapter.InsertCommand.Connection = this.Connection;
|
---|
2093 | this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Resource] ([Name]) VALUES (@Name);\r\nSELECT ResourceId, Name FR" +
|
---|
2094 | "OM Resource WHERE (ResourceId = SCOPE_IDENTITY())";
|
---|
2095 | this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2096 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2097 | this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2098 | this._adapter.UpdateCommand.Connection = this.Connection;
|
---|
2099 | this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Resource] SET [Name] = @Name WHERE (([ResourceId] = @Original_Resou" +
|
---|
2100 | "rceId) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))" +
|
---|
2101 | ";\r\nSELECT ResourceId, Name FROM Resource WHERE (ResourceId = @ResourceId)";
|
---|
2102 | this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2103 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2104 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2105 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2106 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2107 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2108 | }
|
---|
2109 |
|
---|
2110 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2111 | private void InitConnection() {
|
---|
2112 | this._connection = new global::System.Data.SqlClient.SqlConnection();
|
---|
2113 | this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;
|
---|
2114 | }
|
---|
2115 |
|
---|
2116 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2117 | private void InitCommandCollection() {
|
---|
2118 | this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
---|
2119 | this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
---|
2120 | this._commandCollection[0].Connection = this.Connection;
|
---|
2121 | this._commandCollection[0].CommandText = "SELECT ResourceId, Name FROM dbo.Resource";
|
---|
2122 | this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
---|
2123 | this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
---|
2124 | this._commandCollection[1].Connection = this.Connection;
|
---|
2125 | this._commandCollection[1].CommandText = "SELECT * FROM dbo.Resource WHERE ResourceId = @ID";
|
---|
2126 | this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
---|
2127 | this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2128 | }
|
---|
2129 |
|
---|
2130 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2131 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2132 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
---|
2133 | public virtual int Fill(dsHiveServer.ResourceDataTable dataTable) {
|
---|
2134 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
2135 | if ((this.ClearBeforeFill == true)) {
|
---|
2136 | dataTable.Clear();
|
---|
2137 | }
|
---|
2138 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
2139 | return returnValue;
|
---|
2140 | }
|
---|
2141 |
|
---|
2142 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2143 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2144 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
---|
2145 | public virtual dsHiveServer.ResourceDataTable GetData() {
|
---|
2146 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
2147 | dsHiveServer.ResourceDataTable dataTable = new dsHiveServer.ResourceDataTable();
|
---|
2148 | this.Adapter.Fill(dataTable);
|
---|
2149 | return dataTable;
|
---|
2150 | }
|
---|
2151 |
|
---|
2152 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2153 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2154 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
2155 | public virtual int FillById(dsHiveServer.ResourceDataTable dataTable, long ID) {
|
---|
2156 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
2157 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(ID));
|
---|
2158 | if ((this.ClearBeforeFill == true)) {
|
---|
2159 | dataTable.Clear();
|
---|
2160 | }
|
---|
2161 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
2162 | return returnValue;
|
---|
2163 | }
|
---|
2164 |
|
---|
2165 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2166 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2167 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
2168 | public virtual dsHiveServer.ResourceDataTable GetDataById(long ID) {
|
---|
2169 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
2170 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(ID));
|
---|
2171 | dsHiveServer.ResourceDataTable dataTable = new dsHiveServer.ResourceDataTable();
|
---|
2172 | this.Adapter.Fill(dataTable);
|
---|
2173 | return dataTable;
|
---|
2174 | }
|
---|
2175 |
|
---|
2176 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2177 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2178 | public virtual int Update(dsHiveServer.ResourceDataTable dataTable) {
|
---|
2179 | return this.Adapter.Update(dataTable);
|
---|
2180 | }
|
---|
2181 |
|
---|
2182 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2183 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2184 | public virtual int Update(dsHiveServer dataSet) {
|
---|
2185 | return this.Adapter.Update(dataSet, "Resource");
|
---|
2186 | }
|
---|
2187 |
|
---|
2188 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2189 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2190 | public virtual int Update(global::System.Data.DataRow dataRow) {
|
---|
2191 | return this.Adapter.Update(new global::System.Data.DataRow[] {
|
---|
2192 | dataRow});
|
---|
2193 | }
|
---|
2194 |
|
---|
2195 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2196 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2197 | public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
---|
2198 | return this.Adapter.Update(dataRows);
|
---|
2199 | }
|
---|
2200 |
|
---|
2201 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2202 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2203 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
---|
2204 | public virtual int Delete(long Original_ResourceId, string Original_Name) {
|
---|
2205 | this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ResourceId));
|
---|
2206 | if ((Original_Name == null)) {
|
---|
2207 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
---|
2208 | this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
2209 | }
|
---|
2210 | else {
|
---|
2211 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
---|
2212 | this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
|
---|
2213 | }
|
---|
2214 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
---|
2215 | if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
2216 | != global::System.Data.ConnectionState.Open)) {
|
---|
2217 | this.Adapter.DeleteCommand.Connection.Open();
|
---|
2218 | }
|
---|
2219 | try {
|
---|
2220 | int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
---|
2221 | return returnValue;
|
---|
2222 | }
|
---|
2223 | finally {
|
---|
2224 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
2225 | this.Adapter.DeleteCommand.Connection.Close();
|
---|
2226 | }
|
---|
2227 | }
|
---|
2228 | }
|
---|
2229 |
|
---|
2230 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2231 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2232 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
---|
2233 | public virtual int Insert(string Name) {
|
---|
2234 | if ((Name == null)) {
|
---|
2235 | this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
2236 | }
|
---|
2237 | else {
|
---|
2238 | this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
|
---|
2239 | }
|
---|
2240 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
---|
2241 | if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
2242 | != global::System.Data.ConnectionState.Open)) {
|
---|
2243 | this.Adapter.InsertCommand.Connection.Open();
|
---|
2244 | }
|
---|
2245 | try {
|
---|
2246 | int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
---|
2247 | return returnValue;
|
---|
2248 | }
|
---|
2249 | finally {
|
---|
2250 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
2251 | this.Adapter.InsertCommand.Connection.Close();
|
---|
2252 | }
|
---|
2253 | }
|
---|
2254 | }
|
---|
2255 |
|
---|
2256 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2257 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2258 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
2259 | public virtual int Update(string Name, long Original_ResourceId, string Original_Name, long ResourceId) {
|
---|
2260 | if ((Name == null)) {
|
---|
2261 | this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
2262 | }
|
---|
2263 | else {
|
---|
2264 | this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
|
---|
2265 | }
|
---|
2266 | this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_ResourceId));
|
---|
2267 | if ((Original_Name == null)) {
|
---|
2268 | this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
|
---|
2269 | this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
---|
2270 | }
|
---|
2271 | else {
|
---|
2272 | this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
|
---|
2273 | this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
|
---|
2274 | }
|
---|
2275 | this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(ResourceId));
|
---|
2276 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
---|
2277 | if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
2278 | != global::System.Data.ConnectionState.Open)) {
|
---|
2279 | this.Adapter.UpdateCommand.Connection.Open();
|
---|
2280 | }
|
---|
2281 | try {
|
---|
2282 | int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
---|
2283 | return returnValue;
|
---|
2284 | }
|
---|
2285 | finally {
|
---|
2286 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
2287 | this.Adapter.UpdateCommand.Connection.Close();
|
---|
2288 | }
|
---|
2289 | }
|
---|
2290 | }
|
---|
2291 |
|
---|
2292 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2293 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2294 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
2295 | public virtual int Update(string Name, long Original_ResourceId, string Original_Name) {
|
---|
2296 | return this.Update(Name, Original_ResourceId, Original_Name, Original_ResourceId);
|
---|
2297 | }
|
---|
2298 | }
|
---|
2299 |
|
---|
2300 | /// <summary>
|
---|
2301 | ///Represents the connection and commands used to retrieve and save data.
|
---|
2302 | ///</summary>
|
---|
2303 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
2304 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
2305 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
2306 | [global::System.ComponentModel.DataObjectAttribute(true)]
|
---|
2307 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
---|
2308 | ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
2309 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2310 | public partial class ClientTableAdapter : global::System.ComponentModel.Component {
|
---|
2311 |
|
---|
2312 | private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
---|
2313 |
|
---|
2314 | private global::System.Data.SqlClient.SqlConnection _connection;
|
---|
2315 |
|
---|
2316 | private global::System.Data.SqlClient.SqlTransaction _transaction;
|
---|
2317 |
|
---|
2318 | private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
---|
2319 |
|
---|
2320 | private bool _clearBeforeFill;
|
---|
2321 |
|
---|
2322 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2323 | public ClientTableAdapter() {
|
---|
2324 | this.ClearBeforeFill = true;
|
---|
2325 | }
|
---|
2326 |
|
---|
2327 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2328 | protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
---|
2329 | get {
|
---|
2330 | if ((this._adapter == null)) {
|
---|
2331 | this.InitAdapter();
|
---|
2332 | }
|
---|
2333 | return this._adapter;
|
---|
2334 | }
|
---|
2335 | }
|
---|
2336 |
|
---|
2337 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2338 | internal global::System.Data.SqlClient.SqlConnection Connection {
|
---|
2339 | get {
|
---|
2340 | if ((this._connection == null)) {
|
---|
2341 | this.InitConnection();
|
---|
2342 | }
|
---|
2343 | return this._connection;
|
---|
2344 | }
|
---|
2345 | set {
|
---|
2346 | this._connection = value;
|
---|
2347 | if ((this.Adapter.InsertCommand != null)) {
|
---|
2348 | this.Adapter.InsertCommand.Connection = value;
|
---|
2349 | }
|
---|
2350 | if ((this.Adapter.DeleteCommand != null)) {
|
---|
2351 | this.Adapter.DeleteCommand.Connection = value;
|
---|
2352 | }
|
---|
2353 | if ((this.Adapter.UpdateCommand != null)) {
|
---|
2354 | this.Adapter.UpdateCommand.Connection = value;
|
---|
2355 | }
|
---|
2356 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
2357 | if ((this.CommandCollection[i] != null)) {
|
---|
2358 | ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
---|
2359 | }
|
---|
2360 | }
|
---|
2361 | }
|
---|
2362 | }
|
---|
2363 |
|
---|
2364 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2365 | internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
---|
2366 | get {
|
---|
2367 | return this._transaction;
|
---|
2368 | }
|
---|
2369 | set {
|
---|
2370 | this._transaction = value;
|
---|
2371 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
2372 | this.CommandCollection[i].Transaction = this._transaction;
|
---|
2373 | }
|
---|
2374 | if (((this.Adapter != null)
|
---|
2375 | && (this.Adapter.DeleteCommand != null))) {
|
---|
2376 | this.Adapter.DeleteCommand.Transaction = this._transaction;
|
---|
2377 | }
|
---|
2378 | if (((this.Adapter != null)
|
---|
2379 | && (this.Adapter.InsertCommand != null))) {
|
---|
2380 | this.Adapter.InsertCommand.Transaction = this._transaction;
|
---|
2381 | }
|
---|
2382 | if (((this.Adapter != null)
|
---|
2383 | && (this.Adapter.UpdateCommand != null))) {
|
---|
2384 | this.Adapter.UpdateCommand.Transaction = this._transaction;
|
---|
2385 | }
|
---|
2386 | }
|
---|
2387 | }
|
---|
2388 |
|
---|
2389 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2390 | protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
---|
2391 | get {
|
---|
2392 | if ((this._commandCollection == null)) {
|
---|
2393 | this.InitCommandCollection();
|
---|
2394 | }
|
---|
2395 | return this._commandCollection;
|
---|
2396 | }
|
---|
2397 | }
|
---|
2398 |
|
---|
2399 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2400 | public bool ClearBeforeFill {
|
---|
2401 | get {
|
---|
2402 | return this._clearBeforeFill;
|
---|
2403 | }
|
---|
2404 | set {
|
---|
2405 | this._clearBeforeFill = value;
|
---|
2406 | }
|
---|
2407 | }
|
---|
2408 |
|
---|
2409 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2410 | private void InitAdapter() {
|
---|
2411 | this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
---|
2412 | global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
---|
2413 | tableMapping.SourceTable = "Table";
|
---|
2414 | tableMapping.DataSetTable = "Client";
|
---|
2415 | tableMapping.ColumnMappings.Add("ResourceId", "ResourceId");
|
---|
2416 | tableMapping.ColumnMappings.Add("GUID", "GUID");
|
---|
2417 | tableMapping.ColumnMappings.Add("CPUSpeed", "CPUSpeed");
|
---|
2418 | tableMapping.ColumnMappings.Add("Memory", "Memory");
|
---|
2419 | tableMapping.ColumnMappings.Add("Login", "Login");
|
---|
2420 | tableMapping.ColumnMappings.Add("Status", "Status");
|
---|
2421 | tableMapping.ColumnMappings.Add("ClientConfigId", "ClientConfigId");
|
---|
2422 | tableMapping.ColumnMappings.Add("NumberOfCores", "NumberOfCores");
|
---|
2423 | this._adapter.TableMappings.Add(tableMapping);
|
---|
2424 | this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2425 | this._adapter.DeleteCommand.Connection = this.Connection;
|
---|
2426 | this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ResourceId] = @Original_ResourceId) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)) AND ((@IsNull_CPUSpeed = 1 AND [CPUSpeed] IS NULL) OR ([CPUSpeed] = @Original_CPUSpeed)) AND ((@IsNull_Memory = 1 AND [Memory] IS NULL) OR ([Memory] = @Original_Memory)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_ClientConfigId = 1 AND [ClientConfigId] IS NULL) OR ([ClientConfigId] = @Original_ClientConfigId)) AND ((@IsNull_NumberOfCores = 1 AND [NumberOfCores] IS NULL) OR ([NumberOfCores] = @Original_NumberOfCores)))";
|
---|
2427 | this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2428 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2429 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GUID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2430 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2431 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2432 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2433 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2434 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2435 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2436 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2437 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2438 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2439 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientConfigId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2440 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2441 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2442 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2443 | this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2444 | this._adapter.InsertCommand.Connection = this.Connection;
|
---|
2445 | this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([ResourceId], [GUID], [CPUSpeed], [Memory], [Login], [Status], [ClientConfigId], [NumberOfCores]) VALUES (@ResourceId, @GUID, @CPUSpeed, @Memory, @Login, @Status, @ClientConfigId, @NumberOfCores);
|
---|
2446 | SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores FROM Client WHERE (ResourceId = @ResourceId)";
|
---|
2447 | this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2448 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2449 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2450 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2451 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2452 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2453 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2454 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2455 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2456 | this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2457 | this._adapter.UpdateCommand.Connection = this.Connection;
|
---|
2458 | this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [ResourceId] = @ResourceId, [GUID] = @GUID, [CPUSpeed] = @CPUSpeed, [Memory] = @Memory, [Login] = @Login, [Status] = @Status, [ClientConfigId] = @ClientConfigId, [NumberOfCores] = @NumberOfCores WHERE (([ResourceId] = @Original_ResourceId) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)) AND ((@IsNull_CPUSpeed = 1 AND [CPUSpeed] IS NULL) OR ([CPUSpeed] = @Original_CPUSpeed)) AND ((@IsNull_Memory = 1 AND [Memory] IS NULL) OR ([Memory] = @Original_Memory)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Status = 1 AND [Status] IS NULL) OR ([Status] = @Original_Status)) AND ((@IsNull_ClientConfigId = 1 AND [ClientConfigId] IS NULL) OR ([ClientConfigId] = @Original_ClientConfigId)) AND ((@IsNull_NumberOfCores = 1 AND [NumberOfCores] IS NULL) OR ([NumberOfCores] = @Original_NumberOfCores)));
|
---|
2459 | SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores FROM Client WHERE (ResourceId = @ResourceId)";
|
---|
2460 | this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2461 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2462 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2463 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2464 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2465 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2466 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2467 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2468 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2469 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ResourceId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2470 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GUID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2471 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GUID", global::System.Data.SqlDbType.UniqueIdentifier, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2472 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2473 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CPUSpeed", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CPUSpeed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2474 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2475 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2476 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2477 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2478 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2479 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2480 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientConfigId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2481 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientConfigId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientConfigId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2482 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2483 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumberOfCores", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumberOfCores", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2484 | }
|
---|
2485 |
|
---|
2486 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2487 | private void InitConnection() {
|
---|
2488 | this._connection = new global::System.Data.SqlClient.SqlConnection();
|
---|
2489 | this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;
|
---|
2490 | }
|
---|
2491 |
|
---|
2492 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2493 | private void InitCommandCollection() {
|
---|
2494 | this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
---|
2495 | this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
---|
2496 | this._commandCollection[0].Connection = this.Connection;
|
---|
2497 | this._commandCollection[0].CommandText = "SELECT ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberO" +
|
---|
2498 | "fCores FROM dbo.Client";
|
---|
2499 | this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
---|
2500 | this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
---|
2501 | this._commandCollection[1].Connection = this.Connection;
|
---|
2502 | this._commandCollection[1].CommandText = "SELECT * FROM dbo.Client WHERE GUID = @ID";
|
---|
2503 | this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
---|
2504 | this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.UniqueIdentifier, 16, global::System.Data.ParameterDirection.Input, 0, 0, "GUID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
2505 | }
|
---|
2506 |
|
---|
2507 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2508 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2509 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
---|
2510 | public virtual int Fill(dsHiveServer.ClientDataTable dataTable) {
|
---|
2511 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
2512 | if ((this.ClearBeforeFill == true)) {
|
---|
2513 | dataTable.Clear();
|
---|
2514 | }
|
---|
2515 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
2516 | return returnValue;
|
---|
2517 | }
|
---|
2518 |
|
---|
2519 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2520 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2521 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
---|
2522 | public virtual dsHiveServer.ClientDataTable GetData() {
|
---|
2523 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
2524 | dsHiveServer.ClientDataTable dataTable = new dsHiveServer.ClientDataTable();
|
---|
2525 | this.Adapter.Fill(dataTable);
|
---|
2526 | return dataTable;
|
---|
2527 | }
|
---|
2528 |
|
---|
2529 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2530 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2531 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
2532 | public virtual int FillById(dsHiveServer.ClientDataTable dataTable, global::System.Nullable<global::System.Guid> ID) {
|
---|
2533 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
2534 | if ((ID.HasValue == true)) {
|
---|
2535 | this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ID.Value));
|
---|
2536 | }
|
---|
2537 | else {
|
---|
2538 | this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
2539 | }
|
---|
2540 | if ((this.ClearBeforeFill == true)) {
|
---|
2541 | dataTable.Clear();
|
---|
2542 | }
|
---|
2543 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
2544 | return returnValue;
|
---|
2545 | }
|
---|
2546 |
|
---|
2547 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2548 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2549 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
2550 | public virtual dsHiveServer.ClientDataTable GetDataById(global::System.Nullable<global::System.Guid> ID) {
|
---|
2551 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
2552 | if ((ID.HasValue == true)) {
|
---|
2553 | this.Adapter.SelectCommand.Parameters[0].Value = ((System.Guid)(ID.Value));
|
---|
2554 | }
|
---|
2555 | else {
|
---|
2556 | this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
2557 | }
|
---|
2558 | dsHiveServer.ClientDataTable dataTable = new dsHiveServer.ClientDataTable();
|
---|
2559 | this.Adapter.Fill(dataTable);
|
---|
2560 | return dataTable;
|
---|
2561 | }
|
---|
2562 |
|
---|
2563 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2564 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2565 | public virtual int Update(dsHiveServer.ClientDataTable dataTable) {
|
---|
2566 | return this.Adapter.Update(dataTable);
|
---|
2567 | }
|
---|
2568 |
|
---|
2569 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2570 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2571 | public virtual int Update(dsHiveServer dataSet) {
|
---|
2572 | return this.Adapter.Update(dataSet, "Client");
|
---|
2573 | }
|
---|
2574 |
|
---|
2575 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2576 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2577 | public virtual int Update(global::System.Data.DataRow dataRow) {
|
---|
2578 | return this.Adapter.Update(new global::System.Data.DataRow[] {
|
---|
2579 | dataRow});
|
---|
2580 | }
|
---|
2581 |
|
---|
2582 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2583 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2584 | public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
---|
2585 | return this.Adapter.Update(dataRows);
|
---|
2586 | }
|
---|
2587 |
|
---|
2588 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2589 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2590 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
---|
2591 | public virtual int Delete(long Original_ResourceId, global::System.Nullable<global::System.Guid> Original_GUID, global::System.Nullable<int> Original_CPUSpeed, global::System.Nullable<int> Original_Memory, global::System.Nullable<global::System.DateTime> Original_Login, string Original_Status, global::System.Nullable<long> Original_ClientConfigId, global::System.Nullable<int> Original_NumberOfCores) {
|
---|
2592 | this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ResourceId));
|
---|
2593 | if ((Original_GUID.HasValue == true)) {
|
---|
2594 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
---|
2595 | this.Adapter.DeleteCommand.Parameters[2].Value = ((System.Guid)(Original_GUID.Value));
|
---|
2596 | }
|
---|
2597 | else {
|
---|
2598 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
---|
2599 | this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
2600 | }
|
---|
2601 | if ((Original_CPUSpeed.HasValue == true)) {
|
---|
2602 | this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
---|
2603 | this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_CPUSpeed.Value));
|
---|
2604 | }
|
---|
2605 | else {
|
---|
2606 | this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
---|
2607 | this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
---|
2608 | }
|
---|
2609 | if ((Original_Memory.HasValue == true)) {
|
---|
2610 | this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
---|
2611 | this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Memory.Value));
|
---|
2612 | }
|
---|
2613 | else {
|
---|
2614 | this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
---|
2615 | this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
---|
2616 | }
|
---|
2617 | if ((Original_Login.HasValue == true)) {
|
---|
2618 | this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
---|
2619 | this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Login.Value));
|
---|
2620 | }
|
---|
2621 | else {
|
---|
2622 | this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
---|
2623 | this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
---|
2624 | }
|
---|
2625 | if ((Original_Status == null)) {
|
---|
2626 | this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
---|
2627 | this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
---|
2628 | }
|
---|
2629 | else {
|
---|
2630 | this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
---|
2631 | this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Status));
|
---|
2632 | }
|
---|
2633 | if ((Original_ClientConfigId.HasValue == true)) {
|
---|
2634 | this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
---|
2635 | this.Adapter.DeleteCommand.Parameters[12].Value = ((long)(Original_ClientConfigId.Value));
|
---|
2636 | }
|
---|
2637 | else {
|
---|
2638 | this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
---|
2639 | this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
---|
2640 | }
|
---|
2641 | if ((Original_NumberOfCores.HasValue == true)) {
|
---|
2642 | this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
---|
2643 | this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_NumberOfCores.Value));
|
---|
2644 | }
|
---|
2645 | else {
|
---|
2646 | this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
---|
2647 | this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
---|
2648 | }
|
---|
2649 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
---|
2650 | if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
2651 | != global::System.Data.ConnectionState.Open)) {
|
---|
2652 | this.Adapter.DeleteCommand.Connection.Open();
|
---|
2653 | }
|
---|
2654 | try {
|
---|
2655 | int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
---|
2656 | return returnValue;
|
---|
2657 | }
|
---|
2658 | finally {
|
---|
2659 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
2660 | this.Adapter.DeleteCommand.Connection.Close();
|
---|
2661 | }
|
---|
2662 | }
|
---|
2663 | }
|
---|
2664 |
|
---|
2665 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2666 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2667 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
---|
2668 | public virtual int Insert(long ResourceId, global::System.Nullable<global::System.Guid> GUID, global::System.Nullable<int> CPUSpeed, global::System.Nullable<int> Memory, global::System.Nullable<global::System.DateTime> Login, string Status, global::System.Nullable<long> ClientConfigId, global::System.Nullable<int> NumberOfCores) {
|
---|
2669 | this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ResourceId));
|
---|
2670 | if ((GUID.HasValue == true)) {
|
---|
2671 | this.Adapter.InsertCommand.Parameters[1].Value = ((System.Guid)(GUID.Value));
|
---|
2672 | }
|
---|
2673 | else {
|
---|
2674 | this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
---|
2675 | }
|
---|
2676 | if ((CPUSpeed.HasValue == true)) {
|
---|
2677 | this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CPUSpeed.Value));
|
---|
2678 | }
|
---|
2679 | else {
|
---|
2680 | this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
2681 | }
|
---|
2682 | if ((Memory.HasValue == true)) {
|
---|
2683 | this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Memory.Value));
|
---|
2684 | }
|
---|
2685 | else {
|
---|
2686 | this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
---|
2687 | }
|
---|
2688 | if ((Login.HasValue == true)) {
|
---|
2689 | this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Login.Value));
|
---|
2690 | }
|
---|
2691 | else {
|
---|
2692 | this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
---|
2693 | }
|
---|
2694 | if ((Status == null)) {
|
---|
2695 | this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
---|
2696 | }
|
---|
2697 | else {
|
---|
2698 | this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Status));
|
---|
2699 | }
|
---|
2700 | if ((ClientConfigId.HasValue == true)) {
|
---|
2701 | this.Adapter.InsertCommand.Parameters[6].Value = ((long)(ClientConfigId.Value));
|
---|
2702 | }
|
---|
2703 | else {
|
---|
2704 | this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
---|
2705 | }
|
---|
2706 | if ((NumberOfCores.HasValue == true)) {
|
---|
2707 | this.Adapter.InsertCommand.Parameters[7].Value = ((int)(NumberOfCores.Value));
|
---|
2708 | }
|
---|
2709 | else {
|
---|
2710 | this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
---|
2711 | }
|
---|
2712 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
---|
2713 | if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
2714 | != global::System.Data.ConnectionState.Open)) {
|
---|
2715 | this.Adapter.InsertCommand.Connection.Open();
|
---|
2716 | }
|
---|
2717 | try {
|
---|
2718 | int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
---|
2719 | return returnValue;
|
---|
2720 | }
|
---|
2721 | finally {
|
---|
2722 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
2723 | this.Adapter.InsertCommand.Connection.Close();
|
---|
2724 | }
|
---|
2725 | }
|
---|
2726 | }
|
---|
2727 |
|
---|
2728 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2729 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2730 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
2731 | public virtual int Update(
|
---|
2732 | long ResourceId,
|
---|
2733 | global::System.Nullable<global::System.Guid> GUID,
|
---|
2734 | global::System.Nullable<int> CPUSpeed,
|
---|
2735 | global::System.Nullable<int> Memory,
|
---|
2736 | global::System.Nullable<global::System.DateTime> Login,
|
---|
2737 | string Status,
|
---|
2738 | global::System.Nullable<long> ClientConfigId,
|
---|
2739 | global::System.Nullable<int> NumberOfCores,
|
---|
2740 | long Original_ResourceId,
|
---|
2741 | global::System.Nullable<global::System.Guid> Original_GUID,
|
---|
2742 | global::System.Nullable<int> Original_CPUSpeed,
|
---|
2743 | global::System.Nullable<int> Original_Memory,
|
---|
2744 | global::System.Nullable<global::System.DateTime> Original_Login,
|
---|
2745 | string Original_Status,
|
---|
2746 | global::System.Nullable<long> Original_ClientConfigId,
|
---|
2747 | global::System.Nullable<int> Original_NumberOfCores) {
|
---|
2748 | this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ResourceId));
|
---|
2749 | if ((GUID.HasValue == true)) {
|
---|
2750 | this.Adapter.UpdateCommand.Parameters[1].Value = ((System.Guid)(GUID.Value));
|
---|
2751 | }
|
---|
2752 | else {
|
---|
2753 | this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
---|
2754 | }
|
---|
2755 | if ((CPUSpeed.HasValue == true)) {
|
---|
2756 | this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CPUSpeed.Value));
|
---|
2757 | }
|
---|
2758 | else {
|
---|
2759 | this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
2760 | }
|
---|
2761 | if ((Memory.HasValue == true)) {
|
---|
2762 | this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Memory.Value));
|
---|
2763 | }
|
---|
2764 | else {
|
---|
2765 | this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
---|
2766 | }
|
---|
2767 | if ((Login.HasValue == true)) {
|
---|
2768 | this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Login.Value));
|
---|
2769 | }
|
---|
2770 | else {
|
---|
2771 | this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
---|
2772 | }
|
---|
2773 | if ((Status == null)) {
|
---|
2774 | this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
---|
2775 | }
|
---|
2776 | else {
|
---|
2777 | this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Status));
|
---|
2778 | }
|
---|
2779 | if ((ClientConfigId.HasValue == true)) {
|
---|
2780 | this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(ClientConfigId.Value));
|
---|
2781 | }
|
---|
2782 | else {
|
---|
2783 | this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
---|
2784 | }
|
---|
2785 | if ((NumberOfCores.HasValue == true)) {
|
---|
2786 | this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(NumberOfCores.Value));
|
---|
2787 | }
|
---|
2788 | else {
|
---|
2789 | this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
---|
2790 | }
|
---|
2791 | this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_ResourceId));
|
---|
2792 | if ((Original_GUID.HasValue == true)) {
|
---|
2793 | this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
---|
2794 | this.Adapter.UpdateCommand.Parameters[10].Value = ((System.Guid)(Original_GUID.Value));
|
---|
2795 | }
|
---|
2796 | else {
|
---|
2797 | this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
---|
2798 | this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
---|
2799 | }
|
---|
2800 | if ((Original_CPUSpeed.HasValue == true)) {
|
---|
2801 | this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
---|
2802 | this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_CPUSpeed.Value));
|
---|
2803 | }
|
---|
2804 | else {
|
---|
2805 | this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
---|
2806 | this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
---|
2807 | }
|
---|
2808 | if ((Original_Memory.HasValue == true)) {
|
---|
2809 | this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
|
---|
2810 | this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Memory.Value));
|
---|
2811 | }
|
---|
2812 | else {
|
---|
2813 | this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
|
---|
2814 | this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
---|
2815 | }
|
---|
2816 | if ((Original_Login.HasValue == true)) {
|
---|
2817 | this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
|
---|
2818 | this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_Login.Value));
|
---|
2819 | }
|
---|
2820 | else {
|
---|
2821 | this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
|
---|
2822 | this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
---|
2823 | }
|
---|
2824 | if ((Original_Status == null)) {
|
---|
2825 | this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
|
---|
2826 | this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
---|
2827 | }
|
---|
2828 | else {
|
---|
2829 | this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
|
---|
2830 | this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Status));
|
---|
2831 | }
|
---|
2832 | if ((Original_ClientConfigId.HasValue == true)) {
|
---|
2833 | this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
|
---|
2834 | this.Adapter.UpdateCommand.Parameters[20].Value = ((long)(Original_ClientConfigId.Value));
|
---|
2835 | }
|
---|
2836 | else {
|
---|
2837 | this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
|
---|
2838 | this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
|
---|
2839 | }
|
---|
2840 | if ((Original_NumberOfCores.HasValue == true)) {
|
---|
2841 | this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
|
---|
2842 | this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_NumberOfCores.Value));
|
---|
2843 | }
|
---|
2844 | else {
|
---|
2845 | this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
|
---|
2846 | this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
|
---|
2847 | }
|
---|
2848 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
---|
2849 | if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
2850 | != global::System.Data.ConnectionState.Open)) {
|
---|
2851 | this.Adapter.UpdateCommand.Connection.Open();
|
---|
2852 | }
|
---|
2853 | try {
|
---|
2854 | int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
---|
2855 | return returnValue;
|
---|
2856 | }
|
---|
2857 | finally {
|
---|
2858 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
2859 | this.Adapter.UpdateCommand.Connection.Close();
|
---|
2860 | }
|
---|
2861 | }
|
---|
2862 | }
|
---|
2863 |
|
---|
2864 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2865 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2866 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
2867 | public virtual int Update(global::System.Nullable<global::System.Guid> GUID, global::System.Nullable<int> CPUSpeed, global::System.Nullable<int> Memory, global::System.Nullable<global::System.DateTime> Login, string Status, global::System.Nullable<long> ClientConfigId, global::System.Nullable<int> NumberOfCores, long Original_ResourceId, global::System.Nullable<global::System.Guid> Original_GUID, global::System.Nullable<int> Original_CPUSpeed, global::System.Nullable<int> Original_Memory, global::System.Nullable<global::System.DateTime> Original_Login, string Original_Status, global::System.Nullable<long> Original_ClientConfigId, global::System.Nullable<int> Original_NumberOfCores) {
|
---|
2868 | return this.Update(Original_ResourceId, GUID, CPUSpeed, Memory, Login, Status, ClientConfigId, NumberOfCores, Original_ResourceId, Original_GUID, Original_CPUSpeed, Original_Memory, Original_Login, Original_Status, Original_ClientConfigId, Original_NumberOfCores);
|
---|
2869 | }
|
---|
2870 | }
|
---|
2871 |
|
---|
2872 | /// <summary>
|
---|
2873 | ///Represents the connection and commands used to retrieve and save data.
|
---|
2874 | ///</summary>
|
---|
2875 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
2876 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
2877 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
2878 | [global::System.ComponentModel.DataObjectAttribute(true)]
|
---|
2879 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
---|
2880 | ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
2881 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
2882 | public partial class HiveUserTableAdapter : global::System.ComponentModel.Component {
|
---|
2883 |
|
---|
2884 | private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
---|
2885 |
|
---|
2886 | private global::System.Data.SqlClient.SqlConnection _connection;
|
---|
2887 |
|
---|
2888 | private global::System.Data.SqlClient.SqlTransaction _transaction;
|
---|
2889 |
|
---|
2890 | private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
---|
2891 |
|
---|
2892 | private bool _clearBeforeFill;
|
---|
2893 |
|
---|
2894 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2895 | public HiveUserTableAdapter() {
|
---|
2896 | this.ClearBeforeFill = true;
|
---|
2897 | }
|
---|
2898 |
|
---|
2899 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2900 | protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
---|
2901 | get {
|
---|
2902 | if ((this._adapter == null)) {
|
---|
2903 | this.InitAdapter();
|
---|
2904 | }
|
---|
2905 | return this._adapter;
|
---|
2906 | }
|
---|
2907 | }
|
---|
2908 |
|
---|
2909 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2910 | internal global::System.Data.SqlClient.SqlConnection Connection {
|
---|
2911 | get {
|
---|
2912 | if ((this._connection == null)) {
|
---|
2913 | this.InitConnection();
|
---|
2914 | }
|
---|
2915 | return this._connection;
|
---|
2916 | }
|
---|
2917 | set {
|
---|
2918 | this._connection = value;
|
---|
2919 | if ((this.Adapter.InsertCommand != null)) {
|
---|
2920 | this.Adapter.InsertCommand.Connection = value;
|
---|
2921 | }
|
---|
2922 | if ((this.Adapter.DeleteCommand != null)) {
|
---|
2923 | this.Adapter.DeleteCommand.Connection = value;
|
---|
2924 | }
|
---|
2925 | if ((this.Adapter.UpdateCommand != null)) {
|
---|
2926 | this.Adapter.UpdateCommand.Connection = value;
|
---|
2927 | }
|
---|
2928 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
2929 | if ((this.CommandCollection[i] != null)) {
|
---|
2930 | ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
---|
2931 | }
|
---|
2932 | }
|
---|
2933 | }
|
---|
2934 | }
|
---|
2935 |
|
---|
2936 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2937 | internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
---|
2938 | get {
|
---|
2939 | return this._transaction;
|
---|
2940 | }
|
---|
2941 | set {
|
---|
2942 | this._transaction = value;
|
---|
2943 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
2944 | this.CommandCollection[i].Transaction = this._transaction;
|
---|
2945 | }
|
---|
2946 | if (((this.Adapter != null)
|
---|
2947 | && (this.Adapter.DeleteCommand != null))) {
|
---|
2948 | this.Adapter.DeleteCommand.Transaction = this._transaction;
|
---|
2949 | }
|
---|
2950 | if (((this.Adapter != null)
|
---|
2951 | && (this.Adapter.InsertCommand != null))) {
|
---|
2952 | this.Adapter.InsertCommand.Transaction = this._transaction;
|
---|
2953 | }
|
---|
2954 | if (((this.Adapter != null)
|
---|
2955 | && (this.Adapter.UpdateCommand != null))) {
|
---|
2956 | this.Adapter.UpdateCommand.Transaction = this._transaction;
|
---|
2957 | }
|
---|
2958 | }
|
---|
2959 | }
|
---|
2960 |
|
---|
2961 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2962 | protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
---|
2963 | get {
|
---|
2964 | if ((this._commandCollection == null)) {
|
---|
2965 | this.InitCommandCollection();
|
---|
2966 | }
|
---|
2967 | return this._commandCollection;
|
---|
2968 | }
|
---|
2969 | }
|
---|
2970 |
|
---|
2971 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2972 | public bool ClearBeforeFill {
|
---|
2973 | get {
|
---|
2974 | return this._clearBeforeFill;
|
---|
2975 | }
|
---|
2976 | set {
|
---|
2977 | this._clearBeforeFill = value;
|
---|
2978 | }
|
---|
2979 | }
|
---|
2980 |
|
---|
2981 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
2982 | private void InitAdapter() {
|
---|
2983 | this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
---|
2984 | global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
---|
2985 | tableMapping.SourceTable = "Table";
|
---|
2986 | tableMapping.DataSetTable = "HiveUser";
|
---|
2987 | tableMapping.ColumnMappings.Add("PermissionOwnerId", "PermissionOwnerId");
|
---|
2988 | tableMapping.ColumnMappings.Add("Password", "Password");
|
---|
2989 | this._adapter.TableMappings.Add(tableMapping);
|
---|
2990 | this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
2991 | this._adapter.DeleteCommand.Connection = this.Connection;
|
---|
2992 | this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[HiveUser] WHERE (([PermissionOwnerId] = @Original_PermissionOw" +
|
---|
2993 | "nerId) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Orig" +
|
---|
2994 | "inal_Password)))";
|
---|
2995 | this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
2996 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2997 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
2998 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
2999 | this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3000 | this._adapter.InsertCommand.Connection = this.Connection;
|
---|
3001 | this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[HiveUser] ([PermissionOwnerId], [Password]) VALUES (@Permissio" +
|
---|
3002 | "nOwnerId, @Password);\r\nSELECT PermissionOwnerId, Password FROM HiveUser WHERE (P" +
|
---|
3003 | "ermissionOwnerId = @PermissionOwnerId)";
|
---|
3004 | this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3005 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3006 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3007 | this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3008 | this._adapter.UpdateCommand.Connection = this.Connection;
|
---|
3009 | this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[HiveUser] SET [PermissionOwnerId] = @PermissionOwnerId, [Password] = @Password WHERE (([PermissionOwnerId] = @Original_PermissionOwnerId) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)));
|
---|
3010 | SELECT PermissionOwnerId, Password FROM HiveUser WHERE (PermissionOwnerId = @PermissionOwnerId)";
|
---|
3011 | this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3012 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3013 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3014 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
3015 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
3016 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
3017 | }
|
---|
3018 |
|
---|
3019 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3020 | private void InitConnection() {
|
---|
3021 | this._connection = new global::System.Data.SqlClient.SqlConnection();
|
---|
3022 | this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;
|
---|
3023 | }
|
---|
3024 |
|
---|
3025 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3026 | private void InitCommandCollection() {
|
---|
3027 | this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
---|
3028 | this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3029 | this._commandCollection[0].Connection = this.Connection;
|
---|
3030 | this._commandCollection[0].CommandText = "SELECT PermissionOwnerId, Password FROM dbo.HiveUser";
|
---|
3031 | this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
---|
3032 | this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3033 | this._commandCollection[1].Connection = this.Connection;
|
---|
3034 | this._commandCollection[1].CommandText = "SELECT * FROM dbo.HiveUser WHERE PermissionOwnerId = @Id";
|
---|
3035 | this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
---|
3036 | this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3037 | this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3038 | this._commandCollection[2].Connection = this.Connection;
|
---|
3039 | this._commandCollection[2].CommandText = "SELECT HiveUser.PermissionOwnerId, HiveUser.Password\r\nFROM HiveUser I" +
|
---|
3040 | "NNER JOIN\r\n PermissionOwner ON HiveUser.PermissionOwnerId =" +
|
---|
3041 | " PermissionOwner.PermissionOwnerId\r\nWHERE (PermissionOwner.Name = @Name)";
|
---|
3042 | this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
---|
3043 | this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 18, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3044 | }
|
---|
3045 |
|
---|
3046 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3047 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3048 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
---|
3049 | public virtual int Fill(dsHiveServer.HiveUserDataTable dataTable) {
|
---|
3050 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3051 | if ((this.ClearBeforeFill == true)) {
|
---|
3052 | dataTable.Clear();
|
---|
3053 | }
|
---|
3054 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3055 | return returnValue;
|
---|
3056 | }
|
---|
3057 |
|
---|
3058 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3059 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3060 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
---|
3061 | public virtual dsHiveServer.HiveUserDataTable GetData() {
|
---|
3062 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3063 | dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
|
---|
3064 | this.Adapter.Fill(dataTable);
|
---|
3065 | return dataTable;
|
---|
3066 | }
|
---|
3067 |
|
---|
3068 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3069 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3070 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
3071 | public virtual int FillById(dsHiveServer.HiveUserDataTable dataTable, long Id) {
|
---|
3072 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3073 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3074 | if ((this.ClearBeforeFill == true)) {
|
---|
3075 | dataTable.Clear();
|
---|
3076 | }
|
---|
3077 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3078 | return returnValue;
|
---|
3079 | }
|
---|
3080 |
|
---|
3081 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3082 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3083 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
3084 | public virtual dsHiveServer.HiveUserDataTable GetDataById(long Id) {
|
---|
3085 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3086 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3087 | dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
|
---|
3088 | this.Adapter.Fill(dataTable);
|
---|
3089 | return dataTable;
|
---|
3090 | }
|
---|
3091 |
|
---|
3092 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3093 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3094 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
3095 | public virtual int FillByName(dsHiveServer.HiveUserDataTable dataTable, string Name) {
|
---|
3096 | this.Adapter.SelectCommand = this.CommandCollection[2];
|
---|
3097 | if ((Name == null)) {
|
---|
3098 | this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
3099 | }
|
---|
3100 | else {
|
---|
3101 | this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Name));
|
---|
3102 | }
|
---|
3103 | if ((this.ClearBeforeFill == true)) {
|
---|
3104 | dataTable.Clear();
|
---|
3105 | }
|
---|
3106 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3107 | return returnValue;
|
---|
3108 | }
|
---|
3109 |
|
---|
3110 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3111 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3112 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
3113 | public virtual dsHiveServer.HiveUserDataTable GetDataByName(string Name) {
|
---|
3114 | this.Adapter.SelectCommand = this.CommandCollection[2];
|
---|
3115 | if ((Name == null)) {
|
---|
3116 | this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
3117 | }
|
---|
3118 | else {
|
---|
3119 | this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Name));
|
---|
3120 | }
|
---|
3121 | dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
|
---|
3122 | this.Adapter.Fill(dataTable);
|
---|
3123 | return dataTable;
|
---|
3124 | }
|
---|
3125 |
|
---|
3126 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3127 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3128 | public virtual int Update(dsHiveServer.HiveUserDataTable dataTable) {
|
---|
3129 | return this.Adapter.Update(dataTable);
|
---|
3130 | }
|
---|
3131 |
|
---|
3132 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3133 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3134 | public virtual int Update(dsHiveServer dataSet) {
|
---|
3135 | return this.Adapter.Update(dataSet, "HiveUser");
|
---|
3136 | }
|
---|
3137 |
|
---|
3138 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3139 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3140 | public virtual int Update(global::System.Data.DataRow dataRow) {
|
---|
3141 | return this.Adapter.Update(new global::System.Data.DataRow[] {
|
---|
3142 | dataRow});
|
---|
3143 | }
|
---|
3144 |
|
---|
3145 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3146 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3147 | public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
---|
3148 | return this.Adapter.Update(dataRows);
|
---|
3149 | }
|
---|
3150 |
|
---|
3151 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3152 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3153 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
---|
3154 | public virtual int Delete(long Original_PermissionOwnerId, string Original_Password) {
|
---|
3155 | this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_PermissionOwnerId));
|
---|
3156 | if ((Original_Password == null)) {
|
---|
3157 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
---|
3158 | this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
3159 | }
|
---|
3160 | else {
|
---|
3161 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
---|
3162 | this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Password));
|
---|
3163 | }
|
---|
3164 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
---|
3165 | if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3166 | != global::System.Data.ConnectionState.Open)) {
|
---|
3167 | this.Adapter.DeleteCommand.Connection.Open();
|
---|
3168 | }
|
---|
3169 | try {
|
---|
3170 | int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
---|
3171 | return returnValue;
|
---|
3172 | }
|
---|
3173 | finally {
|
---|
3174 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3175 | this.Adapter.DeleteCommand.Connection.Close();
|
---|
3176 | }
|
---|
3177 | }
|
---|
3178 | }
|
---|
3179 |
|
---|
3180 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3181 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3182 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
---|
3183 | public virtual int Insert(long PermissionOwnerId, string Password) {
|
---|
3184 | this.Adapter.InsertCommand.Parameters[0].Value = ((long)(PermissionOwnerId));
|
---|
3185 | if ((Password == null)) {
|
---|
3186 | this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
---|
3187 | }
|
---|
3188 | else {
|
---|
3189 | this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
|
---|
3190 | }
|
---|
3191 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
---|
3192 | if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3193 | != global::System.Data.ConnectionState.Open)) {
|
---|
3194 | this.Adapter.InsertCommand.Connection.Open();
|
---|
3195 | }
|
---|
3196 | try {
|
---|
3197 | int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
---|
3198 | return returnValue;
|
---|
3199 | }
|
---|
3200 | finally {
|
---|
3201 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3202 | this.Adapter.InsertCommand.Connection.Close();
|
---|
3203 | }
|
---|
3204 | }
|
---|
3205 | }
|
---|
3206 |
|
---|
3207 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3208 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3209 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3210 | public virtual int Update(long PermissionOwnerId, string Password, long Original_PermissionOwnerId, string Original_Password) {
|
---|
3211 | this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(PermissionOwnerId));
|
---|
3212 | if ((Password == null)) {
|
---|
3213 | this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
---|
3214 | }
|
---|
3215 | else {
|
---|
3216 | this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Password));
|
---|
3217 | }
|
---|
3218 | this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_PermissionOwnerId));
|
---|
3219 | if ((Original_Password == null)) {
|
---|
3220 | this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
|
---|
3221 | this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
---|
3222 | }
|
---|
3223 | else {
|
---|
3224 | this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
|
---|
3225 | this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Password));
|
---|
3226 | }
|
---|
3227 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
---|
3228 | if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3229 | != global::System.Data.ConnectionState.Open)) {
|
---|
3230 | this.Adapter.UpdateCommand.Connection.Open();
|
---|
3231 | }
|
---|
3232 | try {
|
---|
3233 | int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
---|
3234 | return returnValue;
|
---|
3235 | }
|
---|
3236 | finally {
|
---|
3237 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3238 | this.Adapter.UpdateCommand.Connection.Close();
|
---|
3239 | }
|
---|
3240 | }
|
---|
3241 | }
|
---|
3242 |
|
---|
3243 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3244 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3245 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3246 | public virtual int Update(string Password, long Original_PermissionOwnerId, string Original_Password) {
|
---|
3247 | return this.Update(Original_PermissionOwnerId, Password, Original_PermissionOwnerId, Original_Password);
|
---|
3248 | }
|
---|
3249 | }
|
---|
3250 |
|
---|
3251 | /// <summary>
|
---|
3252 | ///Represents the connection and commands used to retrieve and save data.
|
---|
3253 | ///</summary>
|
---|
3254 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
3255 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
3256 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
3257 | [global::System.ComponentModel.DataObjectAttribute(true)]
|
---|
3258 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
---|
3259 | ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
3260 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3261 | public partial class PermissionOwnerTableAdapter : global::System.ComponentModel.Component {
|
---|
3262 |
|
---|
3263 | private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
---|
3264 |
|
---|
3265 | private global::System.Data.SqlClient.SqlConnection _connection;
|
---|
3266 |
|
---|
3267 | private global::System.Data.SqlClient.SqlTransaction _transaction;
|
---|
3268 |
|
---|
3269 | private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
---|
3270 |
|
---|
3271 | private bool _clearBeforeFill;
|
---|
3272 |
|
---|
3273 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3274 | public PermissionOwnerTableAdapter() {
|
---|
3275 | this.ClearBeforeFill = true;
|
---|
3276 | }
|
---|
3277 |
|
---|
3278 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3279 | protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
---|
3280 | get {
|
---|
3281 | if ((this._adapter == null)) {
|
---|
3282 | this.InitAdapter();
|
---|
3283 | }
|
---|
3284 | return this._adapter;
|
---|
3285 | }
|
---|
3286 | }
|
---|
3287 |
|
---|
3288 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3289 | internal global::System.Data.SqlClient.SqlConnection Connection {
|
---|
3290 | get {
|
---|
3291 | if ((this._connection == null)) {
|
---|
3292 | this.InitConnection();
|
---|
3293 | }
|
---|
3294 | return this._connection;
|
---|
3295 | }
|
---|
3296 | set {
|
---|
3297 | this._connection = value;
|
---|
3298 | if ((this.Adapter.InsertCommand != null)) {
|
---|
3299 | this.Adapter.InsertCommand.Connection = value;
|
---|
3300 | }
|
---|
3301 | if ((this.Adapter.DeleteCommand != null)) {
|
---|
3302 | this.Adapter.DeleteCommand.Connection = value;
|
---|
3303 | }
|
---|
3304 | if ((this.Adapter.UpdateCommand != null)) {
|
---|
3305 | this.Adapter.UpdateCommand.Connection = value;
|
---|
3306 | }
|
---|
3307 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
3308 | if ((this.CommandCollection[i] != null)) {
|
---|
3309 | ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
---|
3310 | }
|
---|
3311 | }
|
---|
3312 | }
|
---|
3313 | }
|
---|
3314 |
|
---|
3315 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3316 | internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
---|
3317 | get {
|
---|
3318 | return this._transaction;
|
---|
3319 | }
|
---|
3320 | set {
|
---|
3321 | this._transaction = value;
|
---|
3322 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
3323 | this.CommandCollection[i].Transaction = this._transaction;
|
---|
3324 | }
|
---|
3325 | if (((this.Adapter != null)
|
---|
3326 | && (this.Adapter.DeleteCommand != null))) {
|
---|
3327 | this.Adapter.DeleteCommand.Transaction = this._transaction;
|
---|
3328 | }
|
---|
3329 | if (((this.Adapter != null)
|
---|
3330 | && (this.Adapter.InsertCommand != null))) {
|
---|
3331 | this.Adapter.InsertCommand.Transaction = this._transaction;
|
---|
3332 | }
|
---|
3333 | if (((this.Adapter != null)
|
---|
3334 | && (this.Adapter.UpdateCommand != null))) {
|
---|
3335 | this.Adapter.UpdateCommand.Transaction = this._transaction;
|
---|
3336 | }
|
---|
3337 | }
|
---|
3338 | }
|
---|
3339 |
|
---|
3340 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3341 | protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
---|
3342 | get {
|
---|
3343 | if ((this._commandCollection == null)) {
|
---|
3344 | this.InitCommandCollection();
|
---|
3345 | }
|
---|
3346 | return this._commandCollection;
|
---|
3347 | }
|
---|
3348 | }
|
---|
3349 |
|
---|
3350 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3351 | public bool ClearBeforeFill {
|
---|
3352 | get {
|
---|
3353 | return this._clearBeforeFill;
|
---|
3354 | }
|
---|
3355 | set {
|
---|
3356 | this._clearBeforeFill = value;
|
---|
3357 | }
|
---|
3358 | }
|
---|
3359 |
|
---|
3360 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3361 | private void InitAdapter() {
|
---|
3362 | this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
---|
3363 | global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
---|
3364 | tableMapping.SourceTable = "Table";
|
---|
3365 | tableMapping.DataSetTable = "PermissionOwner";
|
---|
3366 | tableMapping.ColumnMappings.Add("PermissionOwnerId", "PermissionOwnerId");
|
---|
3367 | tableMapping.ColumnMappings.Add("Name", "Name");
|
---|
3368 | this._adapter.TableMappings.Add(tableMapping);
|
---|
3369 | this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3370 | this._adapter.DeleteCommand.Connection = this.Connection;
|
---|
3371 | this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PermissionOwner] WHERE (([PermissionOwnerId] = @Original_Permi" +
|
---|
3372 | "ssionOwnerId) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_" +
|
---|
3373 | "Name)))";
|
---|
3374 | this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3375 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
3376 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
3377 | this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
3378 | this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3379 | this._adapter.InsertCommand.Connection = this.Connection;
|
---|
3380 | this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PermissionOwner] ([Name]) VALUES (@Name);\r\nSELECT PermissionOw" +
|
---|
3381 | "nerId, Name FROM PermissionOwner WHERE (PermissionOwnerId = SCOPE_IDENTITY())";
|
---|
3382 | this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3383 | this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3384 | this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3385 | this._adapter.UpdateCommand.Connection = this.Connection;
|
---|
3386 | this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PermissionOwner] SET [Name] = @Name WHERE (([PermissionOwnerId] = @Original_PermissionOwnerId) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)));
|
---|
3387 | SELECT PermissionOwnerId, Name FROM PermissionOwner WHERE (PermissionOwnerId = @PermissionOwnerId)";
|
---|
3388 | this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3389 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3390 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
3391 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
---|
3392 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
---|
3393 | this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PermissionOwnerId", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3394 | }
|
---|
3395 |
|
---|
3396 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3397 | private void InitConnection() {
|
---|
3398 | this._connection = new global::System.Data.SqlClient.SqlConnection();
|
---|
3399 | this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;
|
---|
3400 | }
|
---|
3401 |
|
---|
3402 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3403 | private void InitCommandCollection() {
|
---|
3404 | this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
---|
3405 | this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3406 | this._commandCollection[0].Connection = this.Connection;
|
---|
3407 | this._commandCollection[0].CommandText = "SELECT PermissionOwnerId, Name FROM dbo.PermissionOwner";
|
---|
3408 | this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
---|
3409 | this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3410 | this._commandCollection[1].Connection = this.Connection;
|
---|
3411 | this._commandCollection[1].CommandText = "SELECT * FROM dbo.PermissionOwner WHERE PermissionOwnerId = @Id";
|
---|
3412 | this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
---|
3413 | this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "PermissionOwnerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
---|
3414 | }
|
---|
3415 |
|
---|
3416 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3417 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3418 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
---|
3419 | public virtual int Fill(dsHiveServer.PermissionOwnerDataTable dataTable) {
|
---|
3420 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3421 | if ((this.ClearBeforeFill == true)) {
|
---|
3422 | dataTable.Clear();
|
---|
3423 | }
|
---|
3424 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3425 | return returnValue;
|
---|
3426 | }
|
---|
3427 |
|
---|
3428 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3429 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3430 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
---|
3431 | public virtual dsHiveServer.PermissionOwnerDataTable GetData() {
|
---|
3432 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3433 | dsHiveServer.PermissionOwnerDataTable dataTable = new dsHiveServer.PermissionOwnerDataTable();
|
---|
3434 | this.Adapter.Fill(dataTable);
|
---|
3435 | return dataTable;
|
---|
3436 | }
|
---|
3437 |
|
---|
3438 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3439 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3440 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
3441 | public virtual int FillById(dsHiveServer.PermissionOwnerDataTable dataTable, long Id) {
|
---|
3442 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3443 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3444 | if ((this.ClearBeforeFill == true)) {
|
---|
3445 | dataTable.Clear();
|
---|
3446 | }
|
---|
3447 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3448 | return returnValue;
|
---|
3449 | }
|
---|
3450 |
|
---|
3451 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3452 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3453 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
3454 | public virtual dsHiveServer.PermissionOwnerDataTable GetDataById(long Id) {
|
---|
3455 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3456 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3457 | dsHiveServer.PermissionOwnerDataTable dataTable = new dsHiveServer.PermissionOwnerDataTable();
|
---|
3458 | this.Adapter.Fill(dataTable);
|
---|
3459 | return dataTable;
|
---|
3460 | }
|
---|
3461 |
|
---|
3462 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3463 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3464 | public virtual int Update(dsHiveServer.PermissionOwnerDataTable dataTable) {
|
---|
3465 | return this.Adapter.Update(dataTable);
|
---|
3466 | }
|
---|
3467 |
|
---|
3468 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3469 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3470 | public virtual int Update(dsHiveServer dataSet) {
|
---|
3471 | return this.Adapter.Update(dataSet, "PermissionOwner");
|
---|
3472 | }
|
---|
3473 |
|
---|
3474 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3475 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3476 | public virtual int Update(global::System.Data.DataRow dataRow) {
|
---|
3477 | return this.Adapter.Update(new global::System.Data.DataRow[] {
|
---|
3478 | dataRow});
|
---|
3479 | }
|
---|
3480 |
|
---|
3481 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3482 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3483 | public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
---|
3484 | return this.Adapter.Update(dataRows);
|
---|
3485 | }
|
---|
3486 |
|
---|
3487 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3488 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3489 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
---|
3490 | public virtual int Delete(long Original_PermissionOwnerId, string Original_Name) {
|
---|
3491 | this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_PermissionOwnerId));
|
---|
3492 | if ((Original_Name == null)) {
|
---|
3493 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
---|
3494 | this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
3495 | }
|
---|
3496 | else {
|
---|
3497 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
---|
3498 | this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
|
---|
3499 | }
|
---|
3500 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
---|
3501 | if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3502 | != global::System.Data.ConnectionState.Open)) {
|
---|
3503 | this.Adapter.DeleteCommand.Connection.Open();
|
---|
3504 | }
|
---|
3505 | try {
|
---|
3506 | int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
---|
3507 | return returnValue;
|
---|
3508 | }
|
---|
3509 | finally {
|
---|
3510 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3511 | this.Adapter.DeleteCommand.Connection.Close();
|
---|
3512 | }
|
---|
3513 | }
|
---|
3514 | }
|
---|
3515 |
|
---|
3516 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3517 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3518 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
---|
3519 | public virtual int Insert(string Name) {
|
---|
3520 | if ((Name == null)) {
|
---|
3521 | this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
3522 | }
|
---|
3523 | else {
|
---|
3524 | this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
|
---|
3525 | }
|
---|
3526 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
---|
3527 | if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3528 | != global::System.Data.ConnectionState.Open)) {
|
---|
3529 | this.Adapter.InsertCommand.Connection.Open();
|
---|
3530 | }
|
---|
3531 | try {
|
---|
3532 | int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
---|
3533 | return returnValue;
|
---|
3534 | }
|
---|
3535 | finally {
|
---|
3536 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3537 | this.Adapter.InsertCommand.Connection.Close();
|
---|
3538 | }
|
---|
3539 | }
|
---|
3540 | }
|
---|
3541 |
|
---|
3542 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3543 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3544 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3545 | public virtual int Update(string Name, long Original_PermissionOwnerId, string Original_Name, long PermissionOwnerId) {
|
---|
3546 | if ((Name == null)) {
|
---|
3547 | this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
3548 | }
|
---|
3549 | else {
|
---|
3550 | this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
|
---|
3551 | }
|
---|
3552 | this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_PermissionOwnerId));
|
---|
3553 | if ((Original_Name == null)) {
|
---|
3554 | this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
|
---|
3555 | this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
---|
3556 | }
|
---|
3557 | else {
|
---|
3558 | this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
|
---|
3559 | this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
|
---|
3560 | }
|
---|
3561 | this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(PermissionOwnerId));
|
---|
3562 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
---|
3563 | if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3564 | != global::System.Data.ConnectionState.Open)) {
|
---|
3565 | this.Adapter.UpdateCommand.Connection.Open();
|
---|
3566 | }
|
---|
3567 | try {
|
---|
3568 | int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
---|
3569 | return returnValue;
|
---|
3570 | }
|
---|
3571 | finally {
|
---|
3572 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3573 | this.Adapter.UpdateCommand.Connection.Close();
|
---|
3574 | }
|
---|
3575 | }
|
---|
3576 | }
|
---|
3577 |
|
---|
3578 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3579 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3580 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3581 | public virtual int Update(string Name, long Original_PermissionOwnerId, string Original_Name) {
|
---|
3582 | return this.Update(Name, Original_PermissionOwnerId, Original_Name, Original_PermissionOwnerId);
|
---|
3583 | }
|
---|
3584 | }
|
---|
3585 |
|
---|
3586 | /// <summary>
|
---|
3587 | ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
---|
3588 | ///</summary>
|
---|
3589 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
3590 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
3591 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
3592 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
|
---|
3593 | "esigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
3594 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
|
---|
3595 | public partial class TableAdapterManager : global::System.ComponentModel.Component {
|
---|
3596 |
|
---|
3597 | private UpdateOrderOption _updateOrder;
|
---|
3598 |
|
---|
3599 | private ResourceTableAdapter _resourceTableAdapter;
|
---|
3600 |
|
---|
3601 | private ClientTableAdapter _clientTableAdapter;
|
---|
3602 |
|
---|
3603 | private HiveUserTableAdapter _hiveUserTableAdapter;
|
---|
3604 |
|
---|
3605 | private PermissionOwnerTableAdapter _permissionOwnerTableAdapter;
|
---|
3606 |
|
---|
3607 | private bool _backupDataSetBeforeUpdate;
|
---|
3608 |
|
---|
3609 | private global::System.Data.IDbConnection _connection;
|
---|
3610 |
|
---|
3611 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3612 | public UpdateOrderOption UpdateOrder {
|
---|
3613 | get {
|
---|
3614 | return this._updateOrder;
|
---|
3615 | }
|
---|
3616 | set {
|
---|
3617 | this._updateOrder = value;
|
---|
3618 | }
|
---|
3619 | }
|
---|
3620 |
|
---|
3621 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3622 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3623 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3624 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3625 | public ResourceTableAdapter ResourceTableAdapter {
|
---|
3626 | get {
|
---|
3627 | return this._resourceTableAdapter;
|
---|
3628 | }
|
---|
3629 | set {
|
---|
3630 | this._resourceTableAdapter = value;
|
---|
3631 | }
|
---|
3632 | }
|
---|
3633 |
|
---|
3634 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3635 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3636 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3637 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3638 | public ClientTableAdapter ClientTableAdapter {
|
---|
3639 | get {
|
---|
3640 | return this._clientTableAdapter;
|
---|
3641 | }
|
---|
3642 | set {
|
---|
3643 | this._clientTableAdapter = value;
|
---|
3644 | }
|
---|
3645 | }
|
---|
3646 |
|
---|
3647 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3648 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3649 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3650 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3651 | public HiveUserTableAdapter HiveUserTableAdapter {
|
---|
3652 | get {
|
---|
3653 | return this._hiveUserTableAdapter;
|
---|
3654 | }
|
---|
3655 | set {
|
---|
3656 | this._hiveUserTableAdapter = value;
|
---|
3657 | }
|
---|
3658 | }
|
---|
3659 |
|
---|
3660 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3661 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3662 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3663 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3664 | public PermissionOwnerTableAdapter PermissionOwnerTableAdapter {
|
---|
3665 | get {
|
---|
3666 | return this._permissionOwnerTableAdapter;
|
---|
3667 | }
|
---|
3668 | set {
|
---|
3669 | this._permissionOwnerTableAdapter = value;
|
---|
3670 | }
|
---|
3671 | }
|
---|
3672 |
|
---|
3673 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3674 | public bool BackupDataSetBeforeUpdate {
|
---|
3675 | get {
|
---|
3676 | return this._backupDataSetBeforeUpdate;
|
---|
3677 | }
|
---|
3678 | set {
|
---|
3679 | this._backupDataSetBeforeUpdate = value;
|
---|
3680 | }
|
---|
3681 | }
|
---|
3682 |
|
---|
3683 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3684 | [global::System.ComponentModel.Browsable(false)]
|
---|
3685 | public global::System.Data.IDbConnection Connection {
|
---|
3686 | get {
|
---|
3687 | if ((this._connection != null)) {
|
---|
3688 | return this._connection;
|
---|
3689 | }
|
---|
3690 | if (((this._resourceTableAdapter != null)
|
---|
3691 | && (this._resourceTableAdapter.Connection != null))) {
|
---|
3692 | return this._resourceTableAdapter.Connection;
|
---|
3693 | }
|
---|
3694 | if (((this._clientTableAdapter != null)
|
---|
3695 | && (this._clientTableAdapter.Connection != null))) {
|
---|
3696 | return this._clientTableAdapter.Connection;
|
---|
3697 | }
|
---|
3698 | if (((this._hiveUserTableAdapter != null)
|
---|
3699 | && (this._hiveUserTableAdapter.Connection != null))) {
|
---|
3700 | return this._hiveUserTableAdapter.Connection;
|
---|
3701 | }
|
---|
3702 | if (((this._permissionOwnerTableAdapter != null)
|
---|
3703 | && (this._permissionOwnerTableAdapter.Connection != null))) {
|
---|
3704 | return this._permissionOwnerTableAdapter.Connection;
|
---|
3705 | }
|
---|
3706 | return null;
|
---|
3707 | }
|
---|
3708 | set {
|
---|
3709 | this._connection = value;
|
---|
3710 | }
|
---|
3711 | }
|
---|
3712 |
|
---|
3713 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3714 | [global::System.ComponentModel.Browsable(false)]
|
---|
3715 | public int TableAdapterInstanceCount {
|
---|
3716 | get {
|
---|
3717 | int count = 0;
|
---|
3718 | if ((this._resourceTableAdapter != null)) {
|
---|
3719 | count = (count + 1);
|
---|
3720 | }
|
---|
3721 | if ((this._clientTableAdapter != null)) {
|
---|
3722 | count = (count + 1);
|
---|
3723 | }
|
---|
3724 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3725 | count = (count + 1);
|
---|
3726 | }
|
---|
3727 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3728 | count = (count + 1);
|
---|
3729 | }
|
---|
3730 | return count;
|
---|
3731 | }
|
---|
3732 | }
|
---|
3733 |
|
---|
3734 | /// <summary>
|
---|
3735 | ///Update rows in top-down order.
|
---|
3736 | ///</summary>
|
---|
3737 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3738 | private int UpdateUpdatedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
---|
3739 | int result = 0;
|
---|
3740 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3741 | global::System.Data.DataRow[] updatedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3742 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3743 | if (((updatedRows != null)
|
---|
3744 | && (0 < updatedRows.Length))) {
|
---|
3745 | result = (result + this._permissionOwnerTableAdapter.Update(updatedRows));
|
---|
3746 | allChangedRows.AddRange(updatedRows);
|
---|
3747 | }
|
---|
3748 | }
|
---|
3749 | if ((this._resourceTableAdapter != null)) {
|
---|
3750 | global::System.Data.DataRow[] updatedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3751 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3752 | if (((updatedRows != null)
|
---|
3753 | && (0 < updatedRows.Length))) {
|
---|
3754 | result = (result + this._resourceTableAdapter.Update(updatedRows));
|
---|
3755 | allChangedRows.AddRange(updatedRows);
|
---|
3756 | }
|
---|
3757 | }
|
---|
3758 | if ((this._clientTableAdapter != null)) {
|
---|
3759 | global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3760 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3761 | if (((updatedRows != null)
|
---|
3762 | && (0 < updatedRows.Length))) {
|
---|
3763 | result = (result + this._clientTableAdapter.Update(updatedRows));
|
---|
3764 | allChangedRows.AddRange(updatedRows);
|
---|
3765 | }
|
---|
3766 | }
|
---|
3767 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3768 | global::System.Data.DataRow[] updatedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3769 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3770 | if (((updatedRows != null)
|
---|
3771 | && (0 < updatedRows.Length))) {
|
---|
3772 | result = (result + this._hiveUserTableAdapter.Update(updatedRows));
|
---|
3773 | allChangedRows.AddRange(updatedRows);
|
---|
3774 | }
|
---|
3775 | }
|
---|
3776 | return result;
|
---|
3777 | }
|
---|
3778 |
|
---|
3779 | /// <summary>
|
---|
3780 | ///Insert rows in top-down order.
|
---|
3781 | ///</summary>
|
---|
3782 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3783 | private int UpdateInsertedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
---|
3784 | int result = 0;
|
---|
3785 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3786 | global::System.Data.DataRow[] addedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3787 | if (((addedRows != null)
|
---|
3788 | && (0 < addedRows.Length))) {
|
---|
3789 | result = (result + this._permissionOwnerTableAdapter.Update(addedRows));
|
---|
3790 | allAddedRows.AddRange(addedRows);
|
---|
3791 | }
|
---|
3792 | }
|
---|
3793 | if ((this._resourceTableAdapter != null)) {
|
---|
3794 | global::System.Data.DataRow[] addedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3795 | if (((addedRows != null)
|
---|
3796 | && (0 < addedRows.Length))) {
|
---|
3797 | result = (result + this._resourceTableAdapter.Update(addedRows));
|
---|
3798 | allAddedRows.AddRange(addedRows);
|
---|
3799 | }
|
---|
3800 | }
|
---|
3801 | if ((this._clientTableAdapter != null)) {
|
---|
3802 | global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3803 | if (((addedRows != null)
|
---|
3804 | && (0 < addedRows.Length))) {
|
---|
3805 | result = (result + this._clientTableAdapter.Update(addedRows));
|
---|
3806 | allAddedRows.AddRange(addedRows);
|
---|
3807 | }
|
---|
3808 | }
|
---|
3809 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3810 | global::System.Data.DataRow[] addedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3811 | if (((addedRows != null)
|
---|
3812 | && (0 < addedRows.Length))) {
|
---|
3813 | result = (result + this._hiveUserTableAdapter.Update(addedRows));
|
---|
3814 | allAddedRows.AddRange(addedRows);
|
---|
3815 | }
|
---|
3816 | }
|
---|
3817 | return result;
|
---|
3818 | }
|
---|
3819 |
|
---|
3820 | /// <summary>
|
---|
3821 | ///Delete rows in bottom-up order.
|
---|
3822 | ///</summary>
|
---|
3823 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3824 | private int UpdateDeletedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
---|
3825 | int result = 0;
|
---|
3826 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3827 | global::System.Data.DataRow[] deletedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3828 | if (((deletedRows != null)
|
---|
3829 | && (0 < deletedRows.Length))) {
|
---|
3830 | result = (result + this._hiveUserTableAdapter.Update(deletedRows));
|
---|
3831 | allChangedRows.AddRange(deletedRows);
|
---|
3832 | }
|
---|
3833 | }
|
---|
3834 | if ((this._clientTableAdapter != null)) {
|
---|
3835 | global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3836 | if (((deletedRows != null)
|
---|
3837 | && (0 < deletedRows.Length))) {
|
---|
3838 | result = (result + this._clientTableAdapter.Update(deletedRows));
|
---|
3839 | allChangedRows.AddRange(deletedRows);
|
---|
3840 | }
|
---|
3841 | }
|
---|
3842 | if ((this._resourceTableAdapter != null)) {
|
---|
3843 | global::System.Data.DataRow[] deletedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3844 | if (((deletedRows != null)
|
---|
3845 | && (0 < deletedRows.Length))) {
|
---|
3846 | result = (result + this._resourceTableAdapter.Update(deletedRows));
|
---|
3847 | allChangedRows.AddRange(deletedRows);
|
---|
3848 | }
|
---|
3849 | }
|
---|
3850 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3851 | global::System.Data.DataRow[] deletedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3852 | if (((deletedRows != null)
|
---|
3853 | && (0 < deletedRows.Length))) {
|
---|
3854 | result = (result + this._permissionOwnerTableAdapter.Update(deletedRows));
|
---|
3855 | allChangedRows.AddRange(deletedRows);
|
---|
3856 | }
|
---|
3857 | }
|
---|
3858 | return result;
|
---|
3859 | }
|
---|
3860 |
|
---|
3861 | /// <summary>
|
---|
3862 | ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
|
---|
3863 | ///</summary>
|
---|
3864 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3865 | private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
---|
3866 | if (((updatedRows == null)
|
---|
3867 | || (updatedRows.Length < 1))) {
|
---|
3868 | return updatedRows;
|
---|
3869 | }
|
---|
3870 | if (((allAddedRows == null)
|
---|
3871 | || (allAddedRows.Count < 1))) {
|
---|
3872 | return updatedRows;
|
---|
3873 | }
|
---|
3874 | global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
---|
3875 | for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
|
---|
3876 | global::System.Data.DataRow row = updatedRows[i];
|
---|
3877 | if ((allAddedRows.Contains(row) == false)) {
|
---|
3878 | realUpdatedRows.Add(row);
|
---|
3879 | }
|
---|
3880 | }
|
---|
3881 | return realUpdatedRows.ToArray();
|
---|
3882 | }
|
---|
3883 |
|
---|
3884 | /// <summary>
|
---|
3885 | ///Update all changes to the dataset.
|
---|
3886 | ///</summary>
|
---|
3887 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3888 | public virtual int UpdateAll(dsHiveServer dataSet) {
|
---|
3889 | if ((dataSet == null)) {
|
---|
3890 | throw new global::System.ArgumentNullException("dataSet");
|
---|
3891 | }
|
---|
3892 | if ((dataSet.HasChanges() == false)) {
|
---|
3893 | return 0;
|
---|
3894 | }
|
---|
3895 | if (((this._resourceTableAdapter != null)
|
---|
3896 | && (this.MatchTableAdapterConnection(this._resourceTableAdapter.Connection) == false))) {
|
---|
3897 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3898 | "tring.");
|
---|
3899 | }
|
---|
3900 | if (((this._clientTableAdapter != null)
|
---|
3901 | && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
|
---|
3902 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3903 | "tring.");
|
---|
3904 | }
|
---|
3905 | if (((this._hiveUserTableAdapter != null)
|
---|
3906 | && (this.MatchTableAdapterConnection(this._hiveUserTableAdapter.Connection) == false))) {
|
---|
3907 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3908 | "tring.");
|
---|
3909 | }
|
---|
3910 | if (((this._permissionOwnerTableAdapter != null)
|
---|
3911 | && (this.MatchTableAdapterConnection(this._permissionOwnerTableAdapter.Connection) == false))) {
|
---|
3912 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3913 | "tring.");
|
---|
3914 | }
|
---|
3915 | global::System.Data.IDbConnection workConnection = this.Connection;
|
---|
3916 | if ((workConnection == null)) {
|
---|
3917 | throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
|
---|
3918 | "ger TableAdapter property to a valid TableAdapter instance.");
|
---|
3919 | }
|
---|
3920 | bool workConnOpened = false;
|
---|
3921 | if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
---|
3922 | == global::System.Data.ConnectionState.Broken)) {
|
---|
3923 | workConnection.Close();
|
---|
3924 | }
|
---|
3925 | if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
---|
3926 | workConnection.Open();
|
---|
3927 | workConnOpened = true;
|
---|
3928 | }
|
---|
3929 | global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
---|
3930 | if ((workTransaction == null)) {
|
---|
3931 | throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
|
---|
3932 | "ctions or the current state is not allowing the transaction to begin.");
|
---|
3933 | }
|
---|
3934 | global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
---|
3935 | global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
---|
3936 | global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
---|
3937 | global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
---|
3938 | int result = 0;
|
---|
3939 | global::System.Data.DataSet backupDataSet = null;
|
---|
3940 | if (this.BackupDataSetBeforeUpdate) {
|
---|
3941 | backupDataSet = new global::System.Data.DataSet();
|
---|
3942 | backupDataSet.Merge(dataSet);
|
---|
3943 | }
|
---|
3944 | try {
|
---|
3945 | // ---- Prepare for update -----------
|
---|
3946 | //
|
---|
3947 | if ((this._resourceTableAdapter != null)) {
|
---|
3948 | revertConnections.Add(this._resourceTableAdapter, this._resourceTableAdapter.Connection);
|
---|
3949 | this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3950 | this._resourceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3951 | if (this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3952 | this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3953 | adaptersWithAcceptChangesDuringUpdate.Add(this._resourceTableAdapter.Adapter);
|
---|
3954 | }
|
---|
3955 | }
|
---|
3956 | if ((this._clientTableAdapter != null)) {
|
---|
3957 | revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
|
---|
3958 | this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3959 | this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3960 | if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3961 | this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3962 | adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
|
---|
3963 | }
|
---|
3964 | }
|
---|
3965 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3966 | revertConnections.Add(this._hiveUserTableAdapter, this._hiveUserTableAdapter.Connection);
|
---|
3967 | this._hiveUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3968 | this._hiveUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3969 | if (this._hiveUserTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3970 | this._hiveUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3971 | adaptersWithAcceptChangesDuringUpdate.Add(this._hiveUserTableAdapter.Adapter);
|
---|
3972 | }
|
---|
3973 | }
|
---|
3974 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3975 | revertConnections.Add(this._permissionOwnerTableAdapter, this._permissionOwnerTableAdapter.Connection);
|
---|
3976 | this._permissionOwnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3977 | this._permissionOwnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3978 | if (this._permissionOwnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3979 | this._permissionOwnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3980 | adaptersWithAcceptChangesDuringUpdate.Add(this._permissionOwnerTableAdapter.Adapter);
|
---|
3981 | }
|
---|
3982 | }
|
---|
3983 | //
|
---|
3984 | //---- Perform updates -----------
|
---|
3985 | //
|
---|
3986 | if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
|
---|
3987 | result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
---|
3988 | result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
---|
3989 | }
|
---|
3990 | else {
|
---|
3991 | result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
---|
3992 | result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
---|
3993 | }
|
---|
3994 | result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
|
---|
3995 | //
|
---|
3996 | //---- Commit updates -----------
|
---|
3997 | //
|
---|
3998 | workTransaction.Commit();
|
---|
3999 | if ((0 < allAddedRows.Count)) {
|
---|
4000 | global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
---|
4001 | allAddedRows.CopyTo(rows);
|
---|
4002 | for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
---|
4003 | global::System.Data.DataRow row = rows[i];
|
---|
4004 | row.AcceptChanges();
|
---|
4005 | }
|
---|
4006 | }
|
---|
4007 | if ((0 < allChangedRows.Count)) {
|
---|
4008 | global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
|
---|
4009 | allChangedRows.CopyTo(rows);
|
---|
4010 | for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
---|
4011 | global::System.Data.DataRow row = rows[i];
|
---|
4012 | row.AcceptChanges();
|
---|
4013 | }
|
---|
4014 | }
|
---|
4015 | }
|
---|
4016 | catch (global::System.Exception ex) {
|
---|
4017 | workTransaction.Rollback();
|
---|
4018 | // ---- Restore the dataset -----------
|
---|
4019 | if (this.BackupDataSetBeforeUpdate) {
|
---|
4020 | global::System.Diagnostics.Debug.Assert((backupDataSet != null));
|
---|
4021 | dataSet.Clear();
|
---|
4022 | dataSet.Merge(backupDataSet);
|
---|
4023 | }
|
---|
4024 | else {
|
---|
4025 | if ((0 < allAddedRows.Count)) {
|
---|
4026 | global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
---|
4027 | allAddedRows.CopyTo(rows);
|
---|
4028 | for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
---|
4029 | global::System.Data.DataRow row = rows[i];
|
---|
4030 | row.AcceptChanges();
|
---|
4031 | row.SetAdded();
|
---|
4032 | }
|
---|
4033 | }
|
---|
4034 | }
|
---|
4035 | throw ex;
|
---|
4036 | }
|
---|
4037 | finally {
|
---|
4038 | if (workConnOpened) {
|
---|
4039 | workConnection.Close();
|
---|
4040 | }
|
---|
4041 | if ((this._resourceTableAdapter != null)) {
|
---|
4042 | this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._resourceTableAdapter]));
|
---|
4043 | this._resourceTableAdapter.Transaction = null;
|
---|
4044 | }
|
---|
4045 | if ((this._clientTableAdapter != null)) {
|
---|
4046 | this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
|
---|
4047 | this._clientTableAdapter.Transaction = null;
|
---|
4048 | }
|
---|
4049 | if ((this._hiveUserTableAdapter != null)) {
|
---|
4050 | this._hiveUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._hiveUserTableAdapter]));
|
---|
4051 | this._hiveUserTableAdapter.Transaction = null;
|
---|
4052 | }
|
---|
4053 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
4054 | this._permissionOwnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._permissionOwnerTableAdapter]));
|
---|
4055 | this._permissionOwnerTableAdapter.Transaction = null;
|
---|
4056 | }
|
---|
4057 | if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
---|
4058 | global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
---|
4059 | adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
---|
4060 | for (int i = 0; (i < adapters.Length); i = (i + 1)) {
|
---|
4061 | global::System.Data.Common.DataAdapter adapter = adapters[i];
|
---|
4062 | adapter.AcceptChangesDuringUpdate = true;
|
---|
4063 | }
|
---|
4064 | }
|
---|
4065 | }
|
---|
4066 | return result;
|
---|
4067 | }
|
---|
4068 |
|
---|
4069 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4070 | protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
|
---|
4071 | global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
|
---|
4072 | }
|
---|
4073 |
|
---|
4074 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4075 | protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
|
---|
4076 | if ((this._connection != null)) {
|
---|
4077 | return true;
|
---|
4078 | }
|
---|
4079 | if (((this.Connection == null)
|
---|
4080 | || (inputConnection == null))) {
|
---|
4081 | return true;
|
---|
4082 | }
|
---|
4083 | if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
|
---|
4084 | return true;
|
---|
4085 | }
|
---|
4086 | return false;
|
---|
4087 | }
|
---|
4088 |
|
---|
4089 | /// <summary>
|
---|
4090 | ///Update Order Option
|
---|
4091 | ///</summary>
|
---|
4092 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
4093 | public enum UpdateOrderOption {
|
---|
4094 |
|
---|
4095 | InsertUpdateDelete = 0,
|
---|
4096 |
|
---|
4097 | UpdateInsertDelete = 1,
|
---|
4098 | }
|
---|
4099 |
|
---|
4100 | /// <summary>
|
---|
4101 | ///Used to sort self-referenced table's rows
|
---|
4102 | ///</summary>
|
---|
4103 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
4104 | private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
|
---|
4105 |
|
---|
4106 | private global::System.Data.DataRelation _relation;
|
---|
4107 |
|
---|
4108 | private int _childFirst;
|
---|
4109 |
|
---|
4110 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4111 | internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
|
---|
4112 | this._relation = relation;
|
---|
4113 | if (childFirst) {
|
---|
4114 | this._childFirst = -1;
|
---|
4115 | }
|
---|
4116 | else {
|
---|
4117 | this._childFirst = 1;
|
---|
4118 | }
|
---|
4119 | }
|
---|
4120 |
|
---|
4121 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4122 | private bool IsChildAndParent(global::System.Data.DataRow child, global::System.Data.DataRow parent) {
|
---|
4123 | global::System.Diagnostics.Debug.Assert((child != null));
|
---|
4124 | global::System.Diagnostics.Debug.Assert((parent != null));
|
---|
4125 | global::System.Data.DataRow newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
---|
4126 | for (
|
---|
4127 | ; ((newParent != null)
|
---|
4128 | && ((object.ReferenceEquals(newParent, child) == false)
|
---|
4129 | && (object.ReferenceEquals(newParent, parent) == false)));
|
---|
4130 | ) {
|
---|
4131 | newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
---|
4132 | }
|
---|
4133 | if ((newParent == null)) {
|
---|
4134 | for (newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); ((newParent != null)
|
---|
4135 | && ((object.ReferenceEquals(newParent, child) == false)
|
---|
4136 | && (object.ReferenceEquals(newParent, parent) == false)));
|
---|
4137 | ) {
|
---|
4138 | newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
---|
4139 | }
|
---|
4140 | }
|
---|
4141 | if (object.ReferenceEquals(newParent, parent)) {
|
---|
4142 | return true;
|
---|
4143 | }
|
---|
4144 | return false;
|
---|
4145 | }
|
---|
4146 |
|
---|
4147 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4148 | public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
|
---|
4149 | if (object.ReferenceEquals(row1, row2)) {
|
---|
4150 | return 0;
|
---|
4151 | }
|
---|
4152 | if ((row1 == null)) {
|
---|
4153 | return -1;
|
---|
4154 | }
|
---|
4155 | if ((row2 == null)) {
|
---|
4156 | return 1;
|
---|
4157 | }
|
---|
4158 |
|
---|
4159 | // Is row1 the child or grandchild of row2
|
---|
4160 | if (this.IsChildAndParent(row1, row2)) {
|
---|
4161 | return this._childFirst;
|
---|
4162 | }
|
---|
4163 |
|
---|
4164 | // Is row2 the child or grandchild of row1
|
---|
4165 | if (this.IsChildAndParent(row2, row1)) {
|
---|
4166 | return (-1 * this._childFirst);
|
---|
4167 | }
|
---|
4168 | return 0;
|
---|
4169 | }
|
---|
4170 | }
|
---|
4171 | }
|
---|
4172 | }
|
---|
4173 |
|
---|
4174 | #pragma warning restore 1591 |
---|