Esempio n. 1
0
        public bool IsDataDirty(Models.WQProfileEntity entity, object domain)
        {
            if (domain == null)
            {
                return(true);
            }

            var dataNeedToCompare = (Hatfield.EnviroData.DataProfile.WQ.Models.LabReportSample)entity;
            var dataToCompare     = (Hatfield.EnviroData.Core.Action)domain;

            if (dataNeedToCompare == null || dataToCompare == null)
            {
                throw new InvalidCastException("Entity or domain is not supported by the site domain builder.");
            }

            return(!WaterQualityEntityComparer.AreValueEqual(dataNeedToCompare, dataToCompare));
        }
Esempio n. 2
0
 public DomainBuildResult Build(Models.WQProfileEntity entity, Core.ODM2Entities dbContext)
 {
     throw new NotImplementedException();
 }