コード例 #1
0
 public TransactionalMigrationScope(IMigrationProcessor migrationProcessor, Action disposalAction)
     : base(disposalAction)
 {
     if (migrationProcessor == null) throw new ArgumentNullException("migrationProcessor");
     _migrationProcessor = migrationProcessor;
     _migrationProcessor.BeginTransaction();
 }
コード例 #2
0
 public TransactionalMigrationScope(IMigrationProcessor migrationProcessor, Action disposalAction)
     : base(disposalAction)
 {
     if (migrationProcessor == null)
     {
         throw new ArgumentNullException("migrationProcessor");
     }
     _migrationProcessor = migrationProcessor;
     _migrationProcessor.BeginTransaction();
 }
コード例 #3
0
 public TransactionalMigrationScope(IMigrationProcessor migrationProcessor, Action disposalAction)
     : base(disposalAction)
 {
     _migrationProcessor = migrationProcessor ?? throw new ArgumentNullException(nameof(migrationProcessor));
     _migrationProcessor.BeginTransaction();
 }