blob: e15f2c968e59c1c0c0494187ba0d56daa5396063 (
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Tango.SQLExaminer
{
[XmlRoot("VarianceReport")]
public class ExaminerDataReport : ExaminerSerializedObject<ExaminerDataReport>
{
[XmlAttribute("date")]
public String Date { get; set; }
public List<ReportSource> Sources { get; set; }
[XmlArray("Details")]
public List<CompareTotalItem> Totals { get; set; }
[XmlArray("Objects")]
public List<CompareTable> Summary { get; set; }
[XmlElement("Object")]
public List<CompareTable> Details { get; set; }
public ExaminerDataReport()
{
Sources = new List<ReportSource>();
Totals = new List<CompareTotalItem>();
Summary = new List<CompareTable>();
Details = new List<CompareTable>();
}
public bool HasDifferences
{
get
{
return Summary.Any(x => x.State == "Different");
}
}
}
}
|