Beispiel #1
0
        private static void AddRestorer <TRestorer>()
            where TRestorer : StatementRestorer, new()
        {
            var instance = new TRestorer();

            RegisteredRestorers.Add(instance.ProcessingType(), instance);
        }
Beispiel #2
0
        private static void AddRestorer <TRestorer>()
            where TRestorer : EntitiesRestorer, new()
        {
            var restorer = new TRestorer();
            var type     = restorer.GetProcessingType();

            RegisteredRestorers[type] = restorer;
        }