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