public void Visit(ISchemaBuilderCommand command) { var schemaCommand = command as SchemaCommand; if (schemaCommand == null) { return; } switch ( schemaCommand.Type ) { case SchemaCommandType.CreateTable: Visit((CreateTableCommand)schemaCommand); break; case SchemaCommandType.AlterTable: Visit((AlterTableCommand)schemaCommand); break; case SchemaCommandType.DropTable: Visit((DropTableCommand)schemaCommand); break; case SchemaCommandType.SqlStatement: Visit((SqlStatementCommand)schemaCommand); break; case SchemaCommandType.CreateForeignKey: Visit((CreateForeignKeyCommand)schemaCommand); break; case SchemaCommandType.DropForeignKey: Visit((DropForeignKeyCommand)schemaCommand); break; } }
public void Visit(ISchemaBuilderCommand command) { var schemaCommand = command as SchemaCommand; if (schemaCommand == null) { return; } switch (schemaCommand.Type) { case SchemaCommandType.CreateTable: Visit((CreateTableCommand)schemaCommand); break; case SchemaCommandType.AlterTable: Visit((AlterTableCommand)schemaCommand); break; case SchemaCommandType.DropTable: Visit((DropTableCommand)schemaCommand); break; case SchemaCommandType.SqlStatement: Visit((SqlStatementCommand)schemaCommand); break; case SchemaCommandType.CreateForeignKey: Visit((CreateForeignKeyCommand)schemaCommand); break; case SchemaCommandType.DropForeignKey: Visit((DropForeignKeyCommand)schemaCommand); break; } }
public void Visit(ISchemaBuilderCommand command) { }
private void Run(ISchemaBuilderCommand command) { _interpreter.Visit(command); }
private void Run(ISchemaBuilderCommand command) { _interpreter.Visit(command); }
public static IEnumerable <string> CreateSql(this ISchemaBuilder builder, ISchemaBuilderCommand command) { return(builder.CreateSql(new[] { command })); }
public void Visit(ISchemaBuilderCommand command) { }
public static IEnumerable<string> CreateSql(this ISchemaBuilder builder, ISchemaBuilderCommand command) { return builder.CreateSql(new[] { command }); }