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[2];
|
---|
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 | }
|
---|
3038 |
|
---|
3039 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3040 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3041 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
---|
3042 | public virtual int Fill(dsHiveServer.HiveUserDataTable dataTable) {
|
---|
3043 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3044 | if ((this.ClearBeforeFill == true)) {
|
---|
3045 | dataTable.Clear();
|
---|
3046 | }
|
---|
3047 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3048 | return returnValue;
|
---|
3049 | }
|
---|
3050 |
|
---|
3051 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3052 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3053 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
---|
3054 | public virtual dsHiveServer.HiveUserDataTable GetData() {
|
---|
3055 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3056 | dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
|
---|
3057 | this.Adapter.Fill(dataTable);
|
---|
3058 | return dataTable;
|
---|
3059 | }
|
---|
3060 |
|
---|
3061 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3062 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3063 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
3064 | public virtual int FillById(dsHiveServer.HiveUserDataTable dataTable, long Id) {
|
---|
3065 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3066 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3067 | if ((this.ClearBeforeFill == true)) {
|
---|
3068 | dataTable.Clear();
|
---|
3069 | }
|
---|
3070 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3071 | return returnValue;
|
---|
3072 | }
|
---|
3073 |
|
---|
3074 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3075 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3076 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
3077 | public virtual dsHiveServer.HiveUserDataTable GetDataById(long Id) {
|
---|
3078 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3079 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3080 | dsHiveServer.HiveUserDataTable dataTable = new dsHiveServer.HiveUserDataTable();
|
---|
3081 | this.Adapter.Fill(dataTable);
|
---|
3082 | return dataTable;
|
---|
3083 | }
|
---|
3084 |
|
---|
3085 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3086 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3087 | public virtual int Update(dsHiveServer.HiveUserDataTable dataTable) {
|
---|
3088 | return this.Adapter.Update(dataTable);
|
---|
3089 | }
|
---|
3090 |
|
---|
3091 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3092 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3093 | public virtual int Update(dsHiveServer dataSet) {
|
---|
3094 | return this.Adapter.Update(dataSet, "HiveUser");
|
---|
3095 | }
|
---|
3096 |
|
---|
3097 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3098 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3099 | public virtual int Update(global::System.Data.DataRow dataRow) {
|
---|
3100 | return this.Adapter.Update(new global::System.Data.DataRow[] {
|
---|
3101 | dataRow});
|
---|
3102 | }
|
---|
3103 |
|
---|
3104 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3105 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3106 | public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
---|
3107 | return this.Adapter.Update(dataRows);
|
---|
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.Delete, true)]
|
---|
3113 | public virtual int Delete(long Original_PermissionOwnerId, string Original_Password) {
|
---|
3114 | this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_PermissionOwnerId));
|
---|
3115 | if ((Original_Password == null)) {
|
---|
3116 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
---|
3117 | this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
3118 | }
|
---|
3119 | else {
|
---|
3120 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
---|
3121 | this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Password));
|
---|
3122 | }
|
---|
3123 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
---|
3124 | if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3125 | != global::System.Data.ConnectionState.Open)) {
|
---|
3126 | this.Adapter.DeleteCommand.Connection.Open();
|
---|
3127 | }
|
---|
3128 | try {
|
---|
3129 | int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
---|
3130 | return returnValue;
|
---|
3131 | }
|
---|
3132 | finally {
|
---|
3133 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3134 | this.Adapter.DeleteCommand.Connection.Close();
|
---|
3135 | }
|
---|
3136 | }
|
---|
3137 | }
|
---|
3138 |
|
---|
3139 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3140 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3141 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
---|
3142 | public virtual int Insert(long PermissionOwnerId, string Password) {
|
---|
3143 | this.Adapter.InsertCommand.Parameters[0].Value = ((long)(PermissionOwnerId));
|
---|
3144 | if ((Password == null)) {
|
---|
3145 | this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
---|
3146 | }
|
---|
3147 | else {
|
---|
3148 | this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
|
---|
3149 | }
|
---|
3150 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
---|
3151 | if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3152 | != global::System.Data.ConnectionState.Open)) {
|
---|
3153 | this.Adapter.InsertCommand.Connection.Open();
|
---|
3154 | }
|
---|
3155 | try {
|
---|
3156 | int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
---|
3157 | return returnValue;
|
---|
3158 | }
|
---|
3159 | finally {
|
---|
3160 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3161 | this.Adapter.InsertCommand.Connection.Close();
|
---|
3162 | }
|
---|
3163 | }
|
---|
3164 | }
|
---|
3165 |
|
---|
3166 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3167 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3168 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3169 | public virtual int Update(long PermissionOwnerId, string Password, long Original_PermissionOwnerId, string Original_Password) {
|
---|
3170 | this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(PermissionOwnerId));
|
---|
3171 | if ((Password == null)) {
|
---|
3172 | this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
---|
3173 | }
|
---|
3174 | else {
|
---|
3175 | this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Password));
|
---|
3176 | }
|
---|
3177 | this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_PermissionOwnerId));
|
---|
3178 | if ((Original_Password == null)) {
|
---|
3179 | this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
|
---|
3180 | this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
---|
3181 | }
|
---|
3182 | else {
|
---|
3183 | this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
|
---|
3184 | this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Password));
|
---|
3185 | }
|
---|
3186 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
---|
3187 | if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3188 | != global::System.Data.ConnectionState.Open)) {
|
---|
3189 | this.Adapter.UpdateCommand.Connection.Open();
|
---|
3190 | }
|
---|
3191 | try {
|
---|
3192 | int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
---|
3193 | return returnValue;
|
---|
3194 | }
|
---|
3195 | finally {
|
---|
3196 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3197 | this.Adapter.UpdateCommand.Connection.Close();
|
---|
3198 | }
|
---|
3199 | }
|
---|
3200 | }
|
---|
3201 |
|
---|
3202 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3203 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3204 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3205 | public virtual int Update(string Password, long Original_PermissionOwnerId, string Original_Password) {
|
---|
3206 | return this.Update(Original_PermissionOwnerId, Password, Original_PermissionOwnerId, Original_Password);
|
---|
3207 | }
|
---|
3208 | }
|
---|
3209 |
|
---|
3210 | /// <summary>
|
---|
3211 | ///Represents the connection and commands used to retrieve and save data.
|
---|
3212 | ///</summary>
|
---|
3213 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
3214 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
3215 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
3216 | [global::System.ComponentModel.DataObjectAttribute(true)]
|
---|
3217 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
---|
3218 | ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
3219 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3220 | public partial class PermissionOwnerTableAdapter : global::System.ComponentModel.Component {
|
---|
3221 |
|
---|
3222 | private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
---|
3223 |
|
---|
3224 | private global::System.Data.SqlClient.SqlConnection _connection;
|
---|
3225 |
|
---|
3226 | private global::System.Data.SqlClient.SqlTransaction _transaction;
|
---|
3227 |
|
---|
3228 | private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
---|
3229 |
|
---|
3230 | private bool _clearBeforeFill;
|
---|
3231 |
|
---|
3232 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3233 | public PermissionOwnerTableAdapter() {
|
---|
3234 | this.ClearBeforeFill = true;
|
---|
3235 | }
|
---|
3236 |
|
---|
3237 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3238 | protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
---|
3239 | get {
|
---|
3240 | if ((this._adapter == null)) {
|
---|
3241 | this.InitAdapter();
|
---|
3242 | }
|
---|
3243 | return this._adapter;
|
---|
3244 | }
|
---|
3245 | }
|
---|
3246 |
|
---|
3247 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3248 | internal global::System.Data.SqlClient.SqlConnection Connection {
|
---|
3249 | get {
|
---|
3250 | if ((this._connection == null)) {
|
---|
3251 | this.InitConnection();
|
---|
3252 | }
|
---|
3253 | return this._connection;
|
---|
3254 | }
|
---|
3255 | set {
|
---|
3256 | this._connection = value;
|
---|
3257 | if ((this.Adapter.InsertCommand != null)) {
|
---|
3258 | this.Adapter.InsertCommand.Connection = value;
|
---|
3259 | }
|
---|
3260 | if ((this.Adapter.DeleteCommand != null)) {
|
---|
3261 | this.Adapter.DeleteCommand.Connection = value;
|
---|
3262 | }
|
---|
3263 | if ((this.Adapter.UpdateCommand != null)) {
|
---|
3264 | this.Adapter.UpdateCommand.Connection = value;
|
---|
3265 | }
|
---|
3266 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
3267 | if ((this.CommandCollection[i] != null)) {
|
---|
3268 | ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
---|
3269 | }
|
---|
3270 | }
|
---|
3271 | }
|
---|
3272 | }
|
---|
3273 |
|
---|
3274 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3275 | internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
---|
3276 | get {
|
---|
3277 | return this._transaction;
|
---|
3278 | }
|
---|
3279 | set {
|
---|
3280 | this._transaction = value;
|
---|
3281 | for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
---|
3282 | this.CommandCollection[i].Transaction = this._transaction;
|
---|
3283 | }
|
---|
3284 | if (((this.Adapter != null)
|
---|
3285 | && (this.Adapter.DeleteCommand != null))) {
|
---|
3286 | this.Adapter.DeleteCommand.Transaction = this._transaction;
|
---|
3287 | }
|
---|
3288 | if (((this.Adapter != null)
|
---|
3289 | && (this.Adapter.InsertCommand != null))) {
|
---|
3290 | this.Adapter.InsertCommand.Transaction = this._transaction;
|
---|
3291 | }
|
---|
3292 | if (((this.Adapter != null)
|
---|
3293 | && (this.Adapter.UpdateCommand != null))) {
|
---|
3294 | this.Adapter.UpdateCommand.Transaction = this._transaction;
|
---|
3295 | }
|
---|
3296 | }
|
---|
3297 | }
|
---|
3298 |
|
---|
3299 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3300 | protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
---|
3301 | get {
|
---|
3302 | if ((this._commandCollection == null)) {
|
---|
3303 | this.InitCommandCollection();
|
---|
3304 | }
|
---|
3305 | return this._commandCollection;
|
---|
3306 | }
|
---|
3307 | }
|
---|
3308 |
|
---|
3309 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3310 | public bool ClearBeforeFill {
|
---|
3311 | get {
|
---|
3312 | return this._clearBeforeFill;
|
---|
3313 | }
|
---|
3314 | set {
|
---|
3315 | this._clearBeforeFill = value;
|
---|
3316 | }
|
---|
3317 | }
|
---|
3318 |
|
---|
3319 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3320 | private void InitAdapter() {
|
---|
3321 | this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
---|
3322 | global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
---|
3323 | tableMapping.SourceTable = "Table";
|
---|
3324 | tableMapping.DataSetTable = "PermissionOwner";
|
---|
3325 | tableMapping.ColumnMappings.Add("PermissionOwnerId", "PermissionOwnerId");
|
---|
3326 | tableMapping.ColumnMappings.Add("Name", "Name");
|
---|
3327 | this._adapter.TableMappings.Add(tableMapping);
|
---|
3328 | this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3329 | this._adapter.DeleteCommand.Connection = this.Connection;
|
---|
3330 | this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PermissionOwner] WHERE (([PermissionOwnerId] = @Original_Permi" +
|
---|
3331 | "ssionOwnerId) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_" +
|
---|
3332 | "Name)))";
|
---|
3333 | this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3334 | 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, "", "", ""));
|
---|
3335 | 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, "", "", ""));
|
---|
3336 | 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, "", "", ""));
|
---|
3337 | this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3338 | this._adapter.InsertCommand.Connection = this.Connection;
|
---|
3339 | this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PermissionOwner] ([Name]) VALUES (@Name);\r\nSELECT PermissionOw" +
|
---|
3340 | "nerId, Name FROM PermissionOwner WHERE (PermissionOwnerId = SCOPE_IDENTITY())";
|
---|
3341 | this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3342 | 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, "", "", ""));
|
---|
3343 | this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
---|
3344 | this._adapter.UpdateCommand.Connection = this.Connection;
|
---|
3345 | 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)));
|
---|
3346 | SELECT PermissionOwnerId, Name FROM PermissionOwner WHERE (PermissionOwnerId = @PermissionOwnerId)";
|
---|
3347 | this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
---|
3348 | 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, "", "", ""));
|
---|
3349 | 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, "", "", ""));
|
---|
3350 | 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, "", "", ""));
|
---|
3351 | 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, "", "", ""));
|
---|
3352 | 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, "", "", ""));
|
---|
3353 | }
|
---|
3354 |
|
---|
3355 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3356 | private void InitConnection() {
|
---|
3357 | this._connection = new global::System.Data.SqlClient.SqlConnection();
|
---|
3358 | this._connection.ConnectionString = global::HeuristicLab.Hive.Server.ADODataAccess.Properties.Settings.Default.HiveServerConnectionString;
|
---|
3359 | }
|
---|
3360 |
|
---|
3361 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3362 | private void InitCommandCollection() {
|
---|
3363 | this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
---|
3364 | this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3365 | this._commandCollection[0].Connection = this.Connection;
|
---|
3366 | this._commandCollection[0].CommandText = "SELECT PermissionOwnerId, Name FROM dbo.PermissionOwner";
|
---|
3367 | this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
---|
3368 | this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
---|
3369 | this._commandCollection[1].Connection = this.Connection;
|
---|
3370 | this._commandCollection[1].CommandText = "SELECT * FROM dbo.PermissionOwner WHERE PermissionOwnerId = @Id";
|
---|
3371 | this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
---|
3372 | 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, "", "", ""));
|
---|
3373 | }
|
---|
3374 |
|
---|
3375 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3376 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3377 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
---|
3378 | public virtual int Fill(dsHiveServer.PermissionOwnerDataTable dataTable) {
|
---|
3379 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3380 | if ((this.ClearBeforeFill == true)) {
|
---|
3381 | dataTable.Clear();
|
---|
3382 | }
|
---|
3383 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3384 | return returnValue;
|
---|
3385 | }
|
---|
3386 |
|
---|
3387 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3388 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3389 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
---|
3390 | public virtual dsHiveServer.PermissionOwnerDataTable GetData() {
|
---|
3391 | this.Adapter.SelectCommand = this.CommandCollection[0];
|
---|
3392 | dsHiveServer.PermissionOwnerDataTable dataTable = new dsHiveServer.PermissionOwnerDataTable();
|
---|
3393 | this.Adapter.Fill(dataTable);
|
---|
3394 | return dataTable;
|
---|
3395 | }
|
---|
3396 |
|
---|
3397 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3398 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3399 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
---|
3400 | public virtual int FillById(dsHiveServer.PermissionOwnerDataTable dataTable, long Id) {
|
---|
3401 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3402 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3403 | if ((this.ClearBeforeFill == true)) {
|
---|
3404 | dataTable.Clear();
|
---|
3405 | }
|
---|
3406 | int returnValue = this.Adapter.Fill(dataTable);
|
---|
3407 | return returnValue;
|
---|
3408 | }
|
---|
3409 |
|
---|
3410 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3411 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3412 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
---|
3413 | public virtual dsHiveServer.PermissionOwnerDataTable GetDataById(long Id) {
|
---|
3414 | this.Adapter.SelectCommand = this.CommandCollection[1];
|
---|
3415 | this.Adapter.SelectCommand.Parameters[0].Value = ((long)(Id));
|
---|
3416 | dsHiveServer.PermissionOwnerDataTable dataTable = new dsHiveServer.PermissionOwnerDataTable();
|
---|
3417 | this.Adapter.Fill(dataTable);
|
---|
3418 | return dataTable;
|
---|
3419 | }
|
---|
3420 |
|
---|
3421 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3422 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3423 | public virtual int Update(dsHiveServer.PermissionOwnerDataTable dataTable) {
|
---|
3424 | return this.Adapter.Update(dataTable);
|
---|
3425 | }
|
---|
3426 |
|
---|
3427 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3428 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3429 | public virtual int Update(dsHiveServer dataSet) {
|
---|
3430 | return this.Adapter.Update(dataSet, "PermissionOwner");
|
---|
3431 | }
|
---|
3432 |
|
---|
3433 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3434 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3435 | public virtual int Update(global::System.Data.DataRow dataRow) {
|
---|
3436 | return this.Adapter.Update(new global::System.Data.DataRow[] {
|
---|
3437 | dataRow});
|
---|
3438 | }
|
---|
3439 |
|
---|
3440 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3441 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3442 | public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
---|
3443 | return this.Adapter.Update(dataRows);
|
---|
3444 | }
|
---|
3445 |
|
---|
3446 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3447 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3448 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
---|
3449 | public virtual int Delete(long Original_PermissionOwnerId, string Original_Name) {
|
---|
3450 | this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_PermissionOwnerId));
|
---|
3451 | if ((Original_Name == null)) {
|
---|
3452 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
---|
3453 | this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
---|
3454 | }
|
---|
3455 | else {
|
---|
3456 | this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
---|
3457 | this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
|
---|
3458 | }
|
---|
3459 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
---|
3460 | if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3461 | != global::System.Data.ConnectionState.Open)) {
|
---|
3462 | this.Adapter.DeleteCommand.Connection.Open();
|
---|
3463 | }
|
---|
3464 | try {
|
---|
3465 | int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
---|
3466 | return returnValue;
|
---|
3467 | }
|
---|
3468 | finally {
|
---|
3469 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3470 | this.Adapter.DeleteCommand.Connection.Close();
|
---|
3471 | }
|
---|
3472 | }
|
---|
3473 | }
|
---|
3474 |
|
---|
3475 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3476 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3477 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
---|
3478 | public virtual int Insert(string Name) {
|
---|
3479 | if ((Name == null)) {
|
---|
3480 | this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
3481 | }
|
---|
3482 | else {
|
---|
3483 | this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
|
---|
3484 | }
|
---|
3485 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
---|
3486 | if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3487 | != global::System.Data.ConnectionState.Open)) {
|
---|
3488 | this.Adapter.InsertCommand.Connection.Open();
|
---|
3489 | }
|
---|
3490 | try {
|
---|
3491 | int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
---|
3492 | return returnValue;
|
---|
3493 | }
|
---|
3494 | finally {
|
---|
3495 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3496 | this.Adapter.InsertCommand.Connection.Close();
|
---|
3497 | }
|
---|
3498 | }
|
---|
3499 | }
|
---|
3500 |
|
---|
3501 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3502 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3503 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3504 | public virtual int Update(string Name, long Original_PermissionOwnerId, string Original_Name, long PermissionOwnerId) {
|
---|
3505 | if ((Name == null)) {
|
---|
3506 | this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
---|
3507 | }
|
---|
3508 | else {
|
---|
3509 | this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
|
---|
3510 | }
|
---|
3511 | this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_PermissionOwnerId));
|
---|
3512 | if ((Original_Name == null)) {
|
---|
3513 | this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
|
---|
3514 | this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
---|
3515 | }
|
---|
3516 | else {
|
---|
3517 | this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
|
---|
3518 | this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
|
---|
3519 | }
|
---|
3520 | this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(PermissionOwnerId));
|
---|
3521 | global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
---|
3522 | if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
---|
3523 | != global::System.Data.ConnectionState.Open)) {
|
---|
3524 | this.Adapter.UpdateCommand.Connection.Open();
|
---|
3525 | }
|
---|
3526 | try {
|
---|
3527 | int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
---|
3528 | return returnValue;
|
---|
3529 | }
|
---|
3530 | finally {
|
---|
3531 | if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
---|
3532 | this.Adapter.UpdateCommand.Connection.Close();
|
---|
3533 | }
|
---|
3534 | }
|
---|
3535 | }
|
---|
3536 |
|
---|
3537 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3538 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
---|
3539 | [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
---|
3540 | public virtual int Update(string Name, long Original_PermissionOwnerId, string Original_Name) {
|
---|
3541 | return this.Update(Name, Original_PermissionOwnerId, Original_Name, Original_PermissionOwnerId);
|
---|
3542 | }
|
---|
3543 | }
|
---|
3544 |
|
---|
3545 | /// <summary>
|
---|
3546 | ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
---|
3547 | ///</summary>
|
---|
3548 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
3549 | [global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
---|
3550 | [global::System.ComponentModel.ToolboxItem(true)]
|
---|
3551 | [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
|
---|
3552 | "esigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
---|
3553 | [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
|
---|
3554 | public partial class TableAdapterManager : global::System.ComponentModel.Component {
|
---|
3555 |
|
---|
3556 | private UpdateOrderOption _updateOrder;
|
---|
3557 |
|
---|
3558 | private ResourceTableAdapter _resourceTableAdapter;
|
---|
3559 |
|
---|
3560 | private ClientTableAdapter _clientTableAdapter;
|
---|
3561 |
|
---|
3562 | private HiveUserTableAdapter _hiveUserTableAdapter;
|
---|
3563 |
|
---|
3564 | private PermissionOwnerTableAdapter _permissionOwnerTableAdapter;
|
---|
3565 |
|
---|
3566 | private bool _backupDataSetBeforeUpdate;
|
---|
3567 |
|
---|
3568 | private global::System.Data.IDbConnection _connection;
|
---|
3569 |
|
---|
3570 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3571 | public UpdateOrderOption UpdateOrder {
|
---|
3572 | get {
|
---|
3573 | return this._updateOrder;
|
---|
3574 | }
|
---|
3575 | set {
|
---|
3576 | this._updateOrder = value;
|
---|
3577 | }
|
---|
3578 | }
|
---|
3579 |
|
---|
3580 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3581 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3582 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3583 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3584 | public ResourceTableAdapter ResourceTableAdapter {
|
---|
3585 | get {
|
---|
3586 | return this._resourceTableAdapter;
|
---|
3587 | }
|
---|
3588 | set {
|
---|
3589 | this._resourceTableAdapter = value;
|
---|
3590 | }
|
---|
3591 | }
|
---|
3592 |
|
---|
3593 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3594 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3595 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3596 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3597 | public ClientTableAdapter ClientTableAdapter {
|
---|
3598 | get {
|
---|
3599 | return this._clientTableAdapter;
|
---|
3600 | }
|
---|
3601 | set {
|
---|
3602 | this._clientTableAdapter = value;
|
---|
3603 | }
|
---|
3604 | }
|
---|
3605 |
|
---|
3606 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3607 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3608 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3609 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3610 | public HiveUserTableAdapter HiveUserTableAdapter {
|
---|
3611 | get {
|
---|
3612 | return this._hiveUserTableAdapter;
|
---|
3613 | }
|
---|
3614 | set {
|
---|
3615 | this._hiveUserTableAdapter = value;
|
---|
3616 | }
|
---|
3617 | }
|
---|
3618 |
|
---|
3619 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3620 | [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
---|
3621 | "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
|
---|
3622 | "", "System.Drawing.Design.UITypeEditor")]
|
---|
3623 | public PermissionOwnerTableAdapter PermissionOwnerTableAdapter {
|
---|
3624 | get {
|
---|
3625 | return this._permissionOwnerTableAdapter;
|
---|
3626 | }
|
---|
3627 | set {
|
---|
3628 | this._permissionOwnerTableAdapter = value;
|
---|
3629 | }
|
---|
3630 | }
|
---|
3631 |
|
---|
3632 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3633 | public bool BackupDataSetBeforeUpdate {
|
---|
3634 | get {
|
---|
3635 | return this._backupDataSetBeforeUpdate;
|
---|
3636 | }
|
---|
3637 | set {
|
---|
3638 | this._backupDataSetBeforeUpdate = value;
|
---|
3639 | }
|
---|
3640 | }
|
---|
3641 |
|
---|
3642 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3643 | [global::System.ComponentModel.Browsable(false)]
|
---|
3644 | public global::System.Data.IDbConnection Connection {
|
---|
3645 | get {
|
---|
3646 | if ((this._connection != null)) {
|
---|
3647 | return this._connection;
|
---|
3648 | }
|
---|
3649 | if (((this._resourceTableAdapter != null)
|
---|
3650 | && (this._resourceTableAdapter.Connection != null))) {
|
---|
3651 | return this._resourceTableAdapter.Connection;
|
---|
3652 | }
|
---|
3653 | if (((this._clientTableAdapter != null)
|
---|
3654 | && (this._clientTableAdapter.Connection != null))) {
|
---|
3655 | return this._clientTableAdapter.Connection;
|
---|
3656 | }
|
---|
3657 | if (((this._hiveUserTableAdapter != null)
|
---|
3658 | && (this._hiveUserTableAdapter.Connection != null))) {
|
---|
3659 | return this._hiveUserTableAdapter.Connection;
|
---|
3660 | }
|
---|
3661 | if (((this._permissionOwnerTableAdapter != null)
|
---|
3662 | && (this._permissionOwnerTableAdapter.Connection != null))) {
|
---|
3663 | return this._permissionOwnerTableAdapter.Connection;
|
---|
3664 | }
|
---|
3665 | return null;
|
---|
3666 | }
|
---|
3667 | set {
|
---|
3668 | this._connection = value;
|
---|
3669 | }
|
---|
3670 | }
|
---|
3671 |
|
---|
3672 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3673 | [global::System.ComponentModel.Browsable(false)]
|
---|
3674 | public int TableAdapterInstanceCount {
|
---|
3675 | get {
|
---|
3676 | int count = 0;
|
---|
3677 | if ((this._resourceTableAdapter != null)) {
|
---|
3678 | count = (count + 1);
|
---|
3679 | }
|
---|
3680 | if ((this._clientTableAdapter != null)) {
|
---|
3681 | count = (count + 1);
|
---|
3682 | }
|
---|
3683 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3684 | count = (count + 1);
|
---|
3685 | }
|
---|
3686 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3687 | count = (count + 1);
|
---|
3688 | }
|
---|
3689 | return count;
|
---|
3690 | }
|
---|
3691 | }
|
---|
3692 |
|
---|
3693 | /// <summary>
|
---|
3694 | ///Update rows in top-down order.
|
---|
3695 | ///</summary>
|
---|
3696 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3697 | 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) {
|
---|
3698 | int result = 0;
|
---|
3699 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3700 | global::System.Data.DataRow[] updatedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3701 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3702 | if (((updatedRows != null)
|
---|
3703 | && (0 < updatedRows.Length))) {
|
---|
3704 | result = (result + this._permissionOwnerTableAdapter.Update(updatedRows));
|
---|
3705 | allChangedRows.AddRange(updatedRows);
|
---|
3706 | }
|
---|
3707 | }
|
---|
3708 | if ((this._resourceTableAdapter != null)) {
|
---|
3709 | global::System.Data.DataRow[] updatedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3710 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3711 | if (((updatedRows != null)
|
---|
3712 | && (0 < updatedRows.Length))) {
|
---|
3713 | result = (result + this._resourceTableAdapter.Update(updatedRows));
|
---|
3714 | allChangedRows.AddRange(updatedRows);
|
---|
3715 | }
|
---|
3716 | }
|
---|
3717 | if ((this._clientTableAdapter != null)) {
|
---|
3718 | global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3719 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3720 | if (((updatedRows != null)
|
---|
3721 | && (0 < updatedRows.Length))) {
|
---|
3722 | result = (result + this._clientTableAdapter.Update(updatedRows));
|
---|
3723 | allChangedRows.AddRange(updatedRows);
|
---|
3724 | }
|
---|
3725 | }
|
---|
3726 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3727 | global::System.Data.DataRow[] updatedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
---|
3728 | updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
---|
3729 | if (((updatedRows != null)
|
---|
3730 | && (0 < updatedRows.Length))) {
|
---|
3731 | result = (result + this._hiveUserTableAdapter.Update(updatedRows));
|
---|
3732 | allChangedRows.AddRange(updatedRows);
|
---|
3733 | }
|
---|
3734 | }
|
---|
3735 | return result;
|
---|
3736 | }
|
---|
3737 |
|
---|
3738 | /// <summary>
|
---|
3739 | ///Insert rows in top-down order.
|
---|
3740 | ///</summary>
|
---|
3741 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3742 | private int UpdateInsertedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
---|
3743 | int result = 0;
|
---|
3744 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3745 | global::System.Data.DataRow[] addedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3746 | if (((addedRows != null)
|
---|
3747 | && (0 < addedRows.Length))) {
|
---|
3748 | result = (result + this._permissionOwnerTableAdapter.Update(addedRows));
|
---|
3749 | allAddedRows.AddRange(addedRows);
|
---|
3750 | }
|
---|
3751 | }
|
---|
3752 | if ((this._resourceTableAdapter != null)) {
|
---|
3753 | global::System.Data.DataRow[] addedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3754 | if (((addedRows != null)
|
---|
3755 | && (0 < addedRows.Length))) {
|
---|
3756 | result = (result + this._resourceTableAdapter.Update(addedRows));
|
---|
3757 | allAddedRows.AddRange(addedRows);
|
---|
3758 | }
|
---|
3759 | }
|
---|
3760 | if ((this._clientTableAdapter != null)) {
|
---|
3761 | global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3762 | if (((addedRows != null)
|
---|
3763 | && (0 < addedRows.Length))) {
|
---|
3764 | result = (result + this._clientTableAdapter.Update(addedRows));
|
---|
3765 | allAddedRows.AddRange(addedRows);
|
---|
3766 | }
|
---|
3767 | }
|
---|
3768 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3769 | global::System.Data.DataRow[] addedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Added);
|
---|
3770 | if (((addedRows != null)
|
---|
3771 | && (0 < addedRows.Length))) {
|
---|
3772 | result = (result + this._hiveUserTableAdapter.Update(addedRows));
|
---|
3773 | allAddedRows.AddRange(addedRows);
|
---|
3774 | }
|
---|
3775 | }
|
---|
3776 | return result;
|
---|
3777 | }
|
---|
3778 |
|
---|
3779 | /// <summary>
|
---|
3780 | ///Delete rows in bottom-up order.
|
---|
3781 | ///</summary>
|
---|
3782 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3783 | private int UpdateDeletedRows(dsHiveServer dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
---|
3784 | int result = 0;
|
---|
3785 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3786 | global::System.Data.DataRow[] deletedRows = dataSet.HiveUser.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3787 | if (((deletedRows != null)
|
---|
3788 | && (0 < deletedRows.Length))) {
|
---|
3789 | result = (result + this._hiveUserTableAdapter.Update(deletedRows));
|
---|
3790 | allChangedRows.AddRange(deletedRows);
|
---|
3791 | }
|
---|
3792 | }
|
---|
3793 | if ((this._clientTableAdapter != null)) {
|
---|
3794 | global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3795 | if (((deletedRows != null)
|
---|
3796 | && (0 < deletedRows.Length))) {
|
---|
3797 | result = (result + this._clientTableAdapter.Update(deletedRows));
|
---|
3798 | allChangedRows.AddRange(deletedRows);
|
---|
3799 | }
|
---|
3800 | }
|
---|
3801 | if ((this._resourceTableAdapter != null)) {
|
---|
3802 | global::System.Data.DataRow[] deletedRows = dataSet.Resource.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3803 | if (((deletedRows != null)
|
---|
3804 | && (0 < deletedRows.Length))) {
|
---|
3805 | result = (result + this._resourceTableAdapter.Update(deletedRows));
|
---|
3806 | allChangedRows.AddRange(deletedRows);
|
---|
3807 | }
|
---|
3808 | }
|
---|
3809 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3810 | global::System.Data.DataRow[] deletedRows = dataSet.PermissionOwner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
---|
3811 | if (((deletedRows != null)
|
---|
3812 | && (0 < deletedRows.Length))) {
|
---|
3813 | result = (result + this._permissionOwnerTableAdapter.Update(deletedRows));
|
---|
3814 | allChangedRows.AddRange(deletedRows);
|
---|
3815 | }
|
---|
3816 | }
|
---|
3817 | return result;
|
---|
3818 | }
|
---|
3819 |
|
---|
3820 | /// <summary>
|
---|
3821 | ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
|
---|
3822 | ///</summary>
|
---|
3823 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3824 | private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
---|
3825 | if (((updatedRows == null)
|
---|
3826 | || (updatedRows.Length < 1))) {
|
---|
3827 | return updatedRows;
|
---|
3828 | }
|
---|
3829 | if (((allAddedRows == null)
|
---|
3830 | || (allAddedRows.Count < 1))) {
|
---|
3831 | return updatedRows;
|
---|
3832 | }
|
---|
3833 | global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
---|
3834 | for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
|
---|
3835 | global::System.Data.DataRow row = updatedRows[i];
|
---|
3836 | if ((allAddedRows.Contains(row) == false)) {
|
---|
3837 | realUpdatedRows.Add(row);
|
---|
3838 | }
|
---|
3839 | }
|
---|
3840 | return realUpdatedRows.ToArray();
|
---|
3841 | }
|
---|
3842 |
|
---|
3843 | /// <summary>
|
---|
3844 | ///Update all changes to the dataset.
|
---|
3845 | ///</summary>
|
---|
3846 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
3847 | public virtual int UpdateAll(dsHiveServer dataSet) {
|
---|
3848 | if ((dataSet == null)) {
|
---|
3849 | throw new global::System.ArgumentNullException("dataSet");
|
---|
3850 | }
|
---|
3851 | if ((dataSet.HasChanges() == false)) {
|
---|
3852 | return 0;
|
---|
3853 | }
|
---|
3854 | if (((this._resourceTableAdapter != null)
|
---|
3855 | && (this.MatchTableAdapterConnection(this._resourceTableAdapter.Connection) == false))) {
|
---|
3856 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3857 | "tring.");
|
---|
3858 | }
|
---|
3859 | if (((this._clientTableAdapter != null)
|
---|
3860 | && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
|
---|
3861 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3862 | "tring.");
|
---|
3863 | }
|
---|
3864 | if (((this._hiveUserTableAdapter != null)
|
---|
3865 | && (this.MatchTableAdapterConnection(this._hiveUserTableAdapter.Connection) == false))) {
|
---|
3866 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3867 | "tring.");
|
---|
3868 | }
|
---|
3869 | if (((this._permissionOwnerTableAdapter != null)
|
---|
3870 | && (this.MatchTableAdapterConnection(this._permissionOwnerTableAdapter.Connection) == false))) {
|
---|
3871 | throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
---|
3872 | "tring.");
|
---|
3873 | }
|
---|
3874 | global::System.Data.IDbConnection workConnection = this.Connection;
|
---|
3875 | if ((workConnection == null)) {
|
---|
3876 | throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
|
---|
3877 | "ger TableAdapter property to a valid TableAdapter instance.");
|
---|
3878 | }
|
---|
3879 | bool workConnOpened = false;
|
---|
3880 | if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
---|
3881 | == global::System.Data.ConnectionState.Broken)) {
|
---|
3882 | workConnection.Close();
|
---|
3883 | }
|
---|
3884 | if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
---|
3885 | workConnection.Open();
|
---|
3886 | workConnOpened = true;
|
---|
3887 | }
|
---|
3888 | global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
---|
3889 | if ((workTransaction == null)) {
|
---|
3890 | throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
|
---|
3891 | "ctions or the current state is not allowing the transaction to begin.");
|
---|
3892 | }
|
---|
3893 | global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
---|
3894 | global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
---|
3895 | global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
---|
3896 | global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
---|
3897 | int result = 0;
|
---|
3898 | global::System.Data.DataSet backupDataSet = null;
|
---|
3899 | if (this.BackupDataSetBeforeUpdate) {
|
---|
3900 | backupDataSet = new global::System.Data.DataSet();
|
---|
3901 | backupDataSet.Merge(dataSet);
|
---|
3902 | }
|
---|
3903 | try {
|
---|
3904 | // ---- Prepare for update -----------
|
---|
3905 | //
|
---|
3906 | if ((this._resourceTableAdapter != null)) {
|
---|
3907 | revertConnections.Add(this._resourceTableAdapter, this._resourceTableAdapter.Connection);
|
---|
3908 | this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3909 | this._resourceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3910 | if (this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3911 | this._resourceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3912 | adaptersWithAcceptChangesDuringUpdate.Add(this._resourceTableAdapter.Adapter);
|
---|
3913 | }
|
---|
3914 | }
|
---|
3915 | if ((this._clientTableAdapter != null)) {
|
---|
3916 | revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
|
---|
3917 | this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3918 | this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3919 | if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3920 | this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3921 | adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
|
---|
3922 | }
|
---|
3923 | }
|
---|
3924 | if ((this._hiveUserTableAdapter != null)) {
|
---|
3925 | revertConnections.Add(this._hiveUserTableAdapter, this._hiveUserTableAdapter.Connection);
|
---|
3926 | this._hiveUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3927 | this._hiveUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3928 | if (this._hiveUserTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3929 | this._hiveUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3930 | adaptersWithAcceptChangesDuringUpdate.Add(this._hiveUserTableAdapter.Adapter);
|
---|
3931 | }
|
---|
3932 | }
|
---|
3933 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
3934 | revertConnections.Add(this._permissionOwnerTableAdapter, this._permissionOwnerTableAdapter.Connection);
|
---|
3935 | this._permissionOwnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
---|
3936 | this._permissionOwnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
---|
3937 | if (this._permissionOwnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
---|
3938 | this._permissionOwnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
---|
3939 | adaptersWithAcceptChangesDuringUpdate.Add(this._permissionOwnerTableAdapter.Adapter);
|
---|
3940 | }
|
---|
3941 | }
|
---|
3942 | //
|
---|
3943 | //---- Perform updates -----------
|
---|
3944 | //
|
---|
3945 | if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
|
---|
3946 | result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
---|
3947 | result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
---|
3948 | }
|
---|
3949 | else {
|
---|
3950 | result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
---|
3951 | result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
---|
3952 | }
|
---|
3953 | result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
|
---|
3954 | //
|
---|
3955 | //---- Commit updates -----------
|
---|
3956 | //
|
---|
3957 | workTransaction.Commit();
|
---|
3958 | if ((0 < allAddedRows.Count)) {
|
---|
3959 | global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
---|
3960 | allAddedRows.CopyTo(rows);
|
---|
3961 | for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
---|
3962 | global::System.Data.DataRow row = rows[i];
|
---|
3963 | row.AcceptChanges();
|
---|
3964 | }
|
---|
3965 | }
|
---|
3966 | if ((0 < allChangedRows.Count)) {
|
---|
3967 | global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
|
---|
3968 | allChangedRows.CopyTo(rows);
|
---|
3969 | for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
---|
3970 | global::System.Data.DataRow row = rows[i];
|
---|
3971 | row.AcceptChanges();
|
---|
3972 | }
|
---|
3973 | }
|
---|
3974 | }
|
---|
3975 | catch (global::System.Exception ex) {
|
---|
3976 | workTransaction.Rollback();
|
---|
3977 | // ---- Restore the dataset -----------
|
---|
3978 | if (this.BackupDataSetBeforeUpdate) {
|
---|
3979 | global::System.Diagnostics.Debug.Assert((backupDataSet != null));
|
---|
3980 | dataSet.Clear();
|
---|
3981 | dataSet.Merge(backupDataSet);
|
---|
3982 | }
|
---|
3983 | else {
|
---|
3984 | if ((0 < allAddedRows.Count)) {
|
---|
3985 | global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
---|
3986 | allAddedRows.CopyTo(rows);
|
---|
3987 | for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
---|
3988 | global::System.Data.DataRow row = rows[i];
|
---|
3989 | row.AcceptChanges();
|
---|
3990 | row.SetAdded();
|
---|
3991 | }
|
---|
3992 | }
|
---|
3993 | }
|
---|
3994 | throw ex;
|
---|
3995 | }
|
---|
3996 | finally {
|
---|
3997 | if (workConnOpened) {
|
---|
3998 | workConnection.Close();
|
---|
3999 | }
|
---|
4000 | if ((this._resourceTableAdapter != null)) {
|
---|
4001 | this._resourceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._resourceTableAdapter]));
|
---|
4002 | this._resourceTableAdapter.Transaction = null;
|
---|
4003 | }
|
---|
4004 | if ((this._clientTableAdapter != null)) {
|
---|
4005 | this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
|
---|
4006 | this._clientTableAdapter.Transaction = null;
|
---|
4007 | }
|
---|
4008 | if ((this._hiveUserTableAdapter != null)) {
|
---|
4009 | this._hiveUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._hiveUserTableAdapter]));
|
---|
4010 | this._hiveUserTableAdapter.Transaction = null;
|
---|
4011 | }
|
---|
4012 | if ((this._permissionOwnerTableAdapter != null)) {
|
---|
4013 | this._permissionOwnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._permissionOwnerTableAdapter]));
|
---|
4014 | this._permissionOwnerTableAdapter.Transaction = null;
|
---|
4015 | }
|
---|
4016 | if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
---|
4017 | global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
---|
4018 | adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
---|
4019 | for (int i = 0; (i < adapters.Length); i = (i + 1)) {
|
---|
4020 | global::System.Data.Common.DataAdapter adapter = adapters[i];
|
---|
4021 | adapter.AcceptChangesDuringUpdate = true;
|
---|
4022 | }
|
---|
4023 | }
|
---|
4024 | }
|
---|
4025 | return result;
|
---|
4026 | }
|
---|
4027 |
|
---|
4028 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4029 | protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
|
---|
4030 | global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
|
---|
4031 | }
|
---|
4032 |
|
---|
4033 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4034 | protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
|
---|
4035 | if ((this._connection != null)) {
|
---|
4036 | return true;
|
---|
4037 | }
|
---|
4038 | if (((this.Connection == null)
|
---|
4039 | || (inputConnection == null))) {
|
---|
4040 | return true;
|
---|
4041 | }
|
---|
4042 | if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
|
---|
4043 | return true;
|
---|
4044 | }
|
---|
4045 | return false;
|
---|
4046 | }
|
---|
4047 |
|
---|
4048 | /// <summary>
|
---|
4049 | ///Update Order Option
|
---|
4050 | ///</summary>
|
---|
4051 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
4052 | public enum UpdateOrderOption {
|
---|
4053 |
|
---|
4054 | InsertUpdateDelete = 0,
|
---|
4055 |
|
---|
4056 | UpdateInsertDelete = 1,
|
---|
4057 | }
|
---|
4058 |
|
---|
4059 | /// <summary>
|
---|
4060 | ///Used to sort self-referenced table's rows
|
---|
4061 | ///</summary>
|
---|
4062 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
---|
4063 | private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
|
---|
4064 |
|
---|
4065 | private global::System.Data.DataRelation _relation;
|
---|
4066 |
|
---|
4067 | private int _childFirst;
|
---|
4068 |
|
---|
4069 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4070 | internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
|
---|
4071 | this._relation = relation;
|
---|
4072 | if (childFirst) {
|
---|
4073 | this._childFirst = -1;
|
---|
4074 | }
|
---|
4075 | else {
|
---|
4076 | this._childFirst = 1;
|
---|
4077 | }
|
---|
4078 | }
|
---|
4079 |
|
---|
4080 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4081 | private bool IsChildAndParent(global::System.Data.DataRow child, global::System.Data.DataRow parent) {
|
---|
4082 | global::System.Diagnostics.Debug.Assert((child != null));
|
---|
4083 | global::System.Diagnostics.Debug.Assert((parent != null));
|
---|
4084 | global::System.Data.DataRow newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
---|
4085 | for (
|
---|
4086 | ; ((newParent != null)
|
---|
4087 | && ((object.ReferenceEquals(newParent, child) == false)
|
---|
4088 | && (object.ReferenceEquals(newParent, parent) == false)));
|
---|
4089 | ) {
|
---|
4090 | newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
---|
4091 | }
|
---|
4092 | if ((newParent == null)) {
|
---|
4093 | for (newParent = child.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); ((newParent != null)
|
---|
4094 | && ((object.ReferenceEquals(newParent, child) == false)
|
---|
4095 | && (object.ReferenceEquals(newParent, parent) == false)));
|
---|
4096 | ) {
|
---|
4097 | newParent = newParent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
---|
4098 | }
|
---|
4099 | }
|
---|
4100 | if (object.ReferenceEquals(newParent, parent)) {
|
---|
4101 | return true;
|
---|
4102 | }
|
---|
4103 | return false;
|
---|
4104 | }
|
---|
4105 |
|
---|
4106 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
---|
4107 | public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
|
---|
4108 | if (object.ReferenceEquals(row1, row2)) {
|
---|
4109 | return 0;
|
---|
4110 | }
|
---|
4111 | if ((row1 == null)) {
|
---|
4112 | return -1;
|
---|
4113 | }
|
---|
4114 | if ((row2 == null)) {
|
---|
4115 | return 1;
|
---|
4116 | }
|
---|
4117 |
|
---|
4118 | // Is row1 the child or grandchild of row2
|
---|
4119 | if (this.IsChildAndParent(row1, row2)) {
|
---|
4120 | return this._childFirst;
|
---|
4121 | }
|
---|
4122 |
|
---|
4123 | // Is row2 the child or grandchild of row1
|
---|
4124 | if (this.IsChildAndParent(row2, row1)) {
|
---|
4125 | return (-1 * this._childFirst);
|
---|
4126 | }
|
---|
4127 | return 0;
|
---|
4128 | }
|
---|
4129 | }
|
---|
4130 | }
|
---|
4131 | }
|
---|
4132 |
|
---|
4133 | #pragma warning restore 1591 |
---|