Ejemplo n.º 1
0
 public AcroDbMigrationAttribute(MigratorResult whenToFire, Type migrationTrackType)
 {
     WhenToFire = whenToFire;
     if (!migrationTrackType.GetInterfaces().Any(f => f == typeof(IMigrationTrack)))
         throw new ArgumentException("migrationTrackType");
     Event = migrationTrackType;
 }
Ejemplo n.º 2
0
 public void Call(MigratorResult result, Type @interface)
 {
     if (_obj == null)
         _obj = (IMigrationTrack)Activator.CreateInstance(Event);
     _obj.MigrationChange(result, @interface);
 }