コード例 #1
0
        public void GetChangesFromList <T>(DateTime compareDate) where T : new()
        {
            foreach (var modification in _aweCsomeTable.ModifiedItemsSince <T>(compareDate))
            {
                switch (modification.Key.ChangeType)
                {
                case AweCsomeListUpdate.ChangeTypes.Add:
                    Insert(modification.Value, _helpers.GetListName <T>());
                    break;

                case AweCsomeListUpdate.ChangeTypes.Delete:
                    Delete <T>(modification.Key.Id, _helpers.GetListName <T>());
                    break;

                case AweCsomeListUpdate.ChangeTypes.Update:
                    Update(modification.Key.Id, modification.Value, _helpers.GetListName <T>());
                    break;
                }
            }
        }