DdlGenerator
Static helper for DDL generation delegates. Each database provider implements these as static methods.
public static class DdlGenerator
Methods
Generate(SchemaOperation, Func<SchemaOperation, string>)
public static string Generate(SchemaOperation operation, Func<SchemaOperation, string> generateDdl)
Converts a schema operation to platform-specific DDL SQL.
Parameters:
| Name | Type | Description |
|---|---|---|
operation |
SchemaOperation |
The operation to convert |
generateDdl |
String> |
Platform-specific DDL generator function |
Returns: String - DDL SQL string
GenerateAll(IReadOnlyList<SchemaOperation>, Func<SchemaOperation, string>)
public static IReadOnlyList<string> GenerateAll(IReadOnlyList<SchemaOperation> operations, Func<SchemaOperation, string> generateDdl)
Generates DDL for all operations.
Parameters:
| Name | Type | Description |
|---|---|---|
operations |
SchemaOperation> |
|
generateDdl |
String> |
Returns: String>