public override void Generate( AlterSequenceOperation alterSequenceOperation, IndentedStringBuilder stringBuilder) { throw new NotSupportedException(Strings.FormatMigrationOperationNotSupported( GetType(), alterSequenceOperation.GetType())); }
protected override void Generate(AlterSequenceOperation operation, IModel model, MigrationCommandListBuilder builder) { throw new NotSupportedException(string.Format(NotSupported, operation.GetType().Name)); }
public void Generate_with_alter_sequence_is_not_supported() { var operation = new AlterSequenceOperation("EpisodeSequence", 7); Assert.Equal( Strings.FormatMigrationOperationNotSupported(typeof(SQLiteMigrationOperationSqlGenerator), operation.GetType()), Assert.Throws <NotSupportedException>(() => Generate(operation)).Message); }