コード例 #1
0
        public virtual IReadOnlyList<IRelationalCommand> Generate(
            IReadOnlyList<MigrationOperation> operations,
            IModel model = null)
        {
            Check.NotNull(operations, nameof(operations));

            var builder = new RelationalCommandListBuilder(_commandBuilderFactory);
            foreach (var operation in operations)
            {
                Generate(operation, model, builder);
                builder
                    .AppendLine(SqlGenerationHelper.StatementTerminator)
                    .EndCommand();
            }

            return builder.GetCommands();
        }
コード例 #2
0
 protected override void Generate(RenameIndexOperation operation, IModel model, RelationalCommandListBuilder builder)
 {
 }
コード例 #3
0
 protected override void Generate(AlterColumnOperation operation, IModel model, RelationalCommandListBuilder builder)
 {
 }
コード例 #4
0
 protected override void Generate(EnsureSchemaOperation operation, IModel model, RelationalCommandListBuilder builder)
 {
 }