Exemple #1
0
        public void AssertChanges(int count)
        {
            try
            {
                var cs = this.GetChangeSet();
                if (cs.Deletes.Count == 0 && cs.Inserts.Count == 0 && cs.Updates.Count == count)
                {
                    return;
                }

#if DEBUG
                Debugger.Break();
#endif
                SessionLog.ReportException(new Exception("The Database is Dirty when expected Clean"), "AssertChanges");
            }
            catch (Exception ex) { LittleWatson.ReportException(ex); }
        }