/
QueryResults.cs
74 lines (63 loc) · 1.25 KB
/
QueryResults.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace SQLRefactor
{
[Serializable]
public class QueryResults : INotifyPropertyChanged
{
private bool? _success;
private long _time;
private int _rowsReturned;
private string _errorMessage;
public bool? Success
{
get { return _success; }
set
{
_success = value;
PropertyChanged ( this, new PropertyChangedEventArgs ( "Success" ) );
}
}
public long Time
{
get { return _time; }
set
{
_time = value;
PropertyChanged ( this, new PropertyChangedEventArgs ( "Time" ) );
}
}
public int RowsReturned
{
get { return _rowsReturned; }
set
{
_rowsReturned = value;
PropertyChanged ( this, new PropertyChangedEventArgs ( "RowsReturned" ) );
}
}
public string ErrorMessage
{
get { return _errorMessage; }
set
{
_errorMessage = value;
PropertyChanged ( this, new PropertyChangedEventArgs ( "ErrorMessage" ) );
}
}
public QueryData Data
{
get;
set;
}
public QueryResults ()
{
this.Data = new QueryData ();
}
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged = delegate { };
#endregion
}
}