public void Create_and_initialize_operation()
        {
            var dropColumnOperation = new DropColumnOperation("dbo.MyTable", "Foo");

            Assert.Equal("dbo.MyTable", dropColumnOperation.TableName);
            Assert.Equal("Foo", dropColumnOperation.ColumnName);
            Assert.True(dropColumnOperation.IsDestructiveChange);
        }
        public void Dispatches_visitor()
        {
            var dropColumnOperation = new DropColumnOperation("dbo.MyTable", "Foo");
            var mockVisitor = new Mock<MigrationOperationSqlGenerator>(new RelationalTypeMapper());
            var builder = new Mock<IndentedStringBuilder>();
            dropColumnOperation.GenerateSql(mockVisitor.Object, builder.Object);

            mockVisitor.Verify(g => g.Generate(dropColumnOperation, builder.Object), Times.Once());
        }
 public virtual void Visit([NotNull] DropColumnOperation dropColumnOperation, [NotNull] TContext context)
 {
     VisitDefault(dropColumnOperation, context);
 }
 public override void Generate(DropColumnOperation dropColumnOperation, IndentedStringBuilder stringBuilder)
 {
     // TODO: Rebuild table
     throw new NotImplementedException();
 }