blob: da21ae24df6985794846f8364c5d04a7aff71f91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Shared.SQL;
namespace Tango.FSE.Common.SQL
{
/// <summary>
/// Represents a <see cref="RemoteSqlCommand"/> result.
/// </summary>
/// <example>
/// <para>
/// <i>
/// The following example demonstrates how to set the connected machine's demo state and query for the connected machine's jobs.
/// </i>
/// </para>
/// <code lang="C#" source="../Tango.FSE.Procedures/Examples/Sql/Program.cs" title="Remote SQL" region="Example" />
/// </example>
public class RemoteSqlCommandResult
{
/// <summary>
/// Gets or sets the connected machine's database affected records.
/// </summary>
public int LocalAffectedRecords { get; set; }
/// <summary>
/// Gets or sets the data set retrieved from the connected machine's database.
/// </summary>
public RemoteSqlDataSet LocalDatSet { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the query against the connected machine's database has encountered an error.
/// </summary>
public bool HasLocalError { get; set; }
/// <summary>
/// Gets or sets the error encountered by the query when it was executed against the connected machine's database.
/// Relevant only if <see cref="HasLocalError"/> equals true.
/// </summary>
public String LocalError { get; set; }
/// <summary>
/// Gets or sets the global database affected records.
/// </summary>
public int GlobalAffectedRecords { get; set; }
/// <summary>
/// Gets or sets the data set retrieved from the global database.
/// </summary>
public RemoteSqlDataSet GlobalDataSet { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the query against the global database has encountered an error.
/// </summary>
public bool HasGlobalError { get; set; }
/// <summary>
/// Gets or sets the error encountered by the query when it was executed against the global database.
/// Relevant only if <see cref="HasGlobalError"/> equals true.
/// </summary>
public String GlobalError { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="RemoteSqlCommandResult"/> class.
/// </summary>
public RemoteSqlCommandResult()
{
LocalDatSet = new RemoteSqlDataSet();
GlobalDataSet = new RemoteSqlDataSet();
}
}
}
|