blob: 5046a8cdfe5be22b5025c7373b505e22745a39cb (
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
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Tango.SQLExaminer
{
[XmlRoot("VarianceReport")]
public class ExaminerSchemaReport : ExaminerSerializedObject<ExaminerSchemaReport>
{
[XmlAttribute("date")]
public String Date { get; set; }
public List<ReportSource> Sources { get; set; }
public List<ReportDbObject> DbObjects { get; set; }
public ExaminerSchemaReport()
{
Sources = new List<ReportSource>();
DbObjects = new List<ReportDbObject>();
}
public bool HasDifferences
{
get
{
return DbObjects.Exists(x => !String.IsNullOrWhiteSpace(x.DifferIn) || x.Lines.Any(y => y.Status != "equal"));
}
}
}
}
|