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 { [XmlAttribute("date")] public String Date { get; set; } public List Sources { get; set; } public List DbObjects { get; set; } public ExaminerSchemaReport() { Sources = new List(); DbObjects = new List(); } public bool HasDifferences { get { return DbObjects.Exists(x => !String.IsNullOrWhiteSpace(x.DifferIn) || x.Lines.Any(y => y.Status != "equal")); } } } }