Search Results for

    Show / Hide Table of Contents

    Class FirebirdGenerator

    Inheritance
    object
    GeneratorBase
    GenericGenerator
    FirebirdGenerator
    Implements
    IMigrationGenerator
    Inherited Members
    GenericGenerator.compatabilityMode
    GenericGenerator.CompatibilityMode
    GenericGenerator.CreateTable
    GenericGenerator.DropTable
    GenericGenerator.AlterColumn
    GenericGenerator.RenameTable
    GenericGenerator.CreateSchema
    GenericGenerator.AlterSchema
    GenericGenerator.DropSchema
    GenericGenerator.CreateIndex
    GenericGenerator.DropIndex
    GenericGenerator.InsertData
    GenericGenerator.UpdateData
    GenericGenerator.DeleteData
    GenericGenerator.CreateConstraint
    GenericGenerator.DeleteConstraint
    GenericGenerator.CreateForeignKeyConstraint
    GenericGenerator.GetUniqueString(CreateIndexExpression)
    GenericGenerator.GetClusterTypeString(CreateIndexExpression)
    GenericGenerator.AppendSqlStatementEndToken(StringBuilder)
    GenericGenerator.GenerateColumnNamesAndValues(InsertDataExpression)
    GenericGenerator.ValidateAdditionalFeatureCompatibility(IEnumerable<KeyValuePair<string, object>>)
    GenericGenerator.Generate(CreateSchemaExpression)
    GenericGenerator.Generate(DeleteSchemaExpression)
    GenericGenerator.Generate(AlterSchemaExpression)
    GeneratorBase.IsAdditionalFeatureSupported(string)
    GeneratorBase.Generate(AlterTableExpression)
    GeneratorBase.Column
    GeneratorBase.Quoter
    GeneratorBase.DescriptionGenerator
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Generators.Firebird
    Assembly: FluentMigrator.Runner.Firebird.dll
    Syntax
    public class FirebirdGenerator : GenericGenerator, IMigrationGenerator

    Constructors

    | Edit this page View Source

    FirebirdGenerator(FirebirdQuoter, FirebirdOptions, IOptions<GeneratorOptions>)

    Declaration
    public FirebirdGenerator(FirebirdQuoter quoter, FirebirdOptions fbOptions, IOptions<GeneratorOptions> generatorOptions)
    Parameters
    Type Name Description
    FirebirdQuoter quoter
    FirebirdOptions fbOptions
    IOptions<GeneratorOptions> generatorOptions
    | Edit this page View Source

    FirebirdGenerator(FirebirdOptions)

    Declaration
    public FirebirdGenerator(FirebirdOptions fbOptions)
    Parameters
    Type Name Description
    FirebirdOptions fbOptions
    | Edit this page View Source

    FirebirdGenerator(FirebirdOptions, IOptions<GeneratorOptions>)

    Declaration
    public FirebirdGenerator(FirebirdOptions fbOptions, IOptions<GeneratorOptions> generatorOptions)
    Parameters
    Type Name Description
    FirebirdOptions fbOptions
    IOptions<GeneratorOptions> generatorOptions

    Fields

    | Edit this page View Source

    truncator

    Declaration
    [Obsolete("Use the Truncator property")]
    protected readonly FirebirdTruncator truncator
    Field Value
    Type Description
    FirebirdTruncator

    Properties

    | Edit this page View Source

    AddColumn

    Declaration
    public override string AddColumn { get; }
    Property Value
    Type Description
    string
    Overrides
    GenericGenerator.AddColumn
    | Edit this page View Source

    AlterColumnSetNullable3

    ALTER TABLE table_name ALTER column_name { DROP | SET } [NOT] NULL

    Declaration
    public string AlterColumnSetNullable3 { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    AlterColumnSetNullablePre3

    Declaration
    public string AlterColumnSetNullablePre3 { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    AlterColumnSetType

    Declaration
    public string AlterColumnSetType { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    DropColumn

    Declaration
    public override string DropColumn { get; }
    Property Value
    Type Description
    string
    Overrides
    GenericGenerator.DropColumn
    | Edit this page View Source

    FBOptions

    Declaration
    protected FirebirdOptions FBOptions { get; }
    Property Value
    Type Description
    FirebirdOptions
    | Edit this page View Source

    RenameColumn

    Declaration
    public override string RenameColumn { get; }
    Property Value
    Type Description
    string
    Overrides
    GenericGenerator.RenameColumn
    | Edit this page View Source

    Truncator

    Declaration
    public FirebirdTruncator Truncator { get; }
    Property Value
    Type Description
    FirebirdTruncator

    Methods

    | Edit this page View Source

    ColumnTypesMatch(ColumnDefinition, ColumnDefinition)

    Declaration
    public static bool ColumnTypesMatch(ColumnDefinition col1, ColumnDefinition col2)
    Parameters
    Type Name Description
    ColumnDefinition col1
    ColumnDefinition col2
    Returns
    Type Description
    bool
    | Edit this page View Source

    DefaultValuesMatch(ColumnDefinition, ColumnDefinition)

    Declaration
    public static bool DefaultValuesMatch(ColumnDefinition col1, ColumnDefinition col2)
    Parameters
    Type Name Description
    ColumnDefinition col1
    ColumnDefinition col2
    Returns
    Type Description
    bool
    | Edit this page View Source

    Generate(AlterColumnExpression)

    Generates a ALTER TABLE ALTER COLUMN SQL statement

    Declaration
    public override string Generate(AlterColumnExpression expression)
    Parameters
    Type Name Description
    AlterColumnExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(AlterColumnExpression)
    | Edit this page View Source

    Generate(AlterDefaultConstraintExpression)

    Generates an SQL statement to alter a DEFAULT constraint

    Declaration
    public override string Generate(AlterDefaultConstraintExpression expression)
    Parameters
    Type Name Description
    AlterDefaultConstraintExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GeneratorBase.Generate(AlterDefaultConstraintExpression)
    | Edit this page View Source

    Generate(CreateColumnExpression)

    Generates a ALTER TABLE ADD COLUMN SQL statement

    Declaration
    public override string Generate(CreateColumnExpression expression)
    Parameters
    Type Name Description
    CreateColumnExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(CreateColumnExpression)
    | Edit this page View Source

    Generate(CreateConstraintExpression)

    Generates an SQL statement to create a constraint

    Declaration
    public override string Generate(CreateConstraintExpression expression)
    Parameters
    Type Name Description
    CreateConstraintExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(CreateConstraintExpression)
    | Edit this page View Source

    Generate(CreateForeignKeyExpression)

    Generates an SQL statement to create a foreign key

    Declaration
    public override string Generate(CreateForeignKeyExpression expression)
    Parameters
    Type Name Description
    CreateForeignKeyExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(CreateForeignKeyExpression)
    | Edit this page View Source

    Generate(CreateIndexExpression)

    Generates an SQL statement to create an index

    Declaration
    public override string Generate(CreateIndexExpression expression)
    Parameters
    Type Name Description
    CreateIndexExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(CreateIndexExpression)
    | Edit this page View Source

    Generate(CreateSequenceExpression)

    Generates a CREATE SEQUENCE SQL statement

    Declaration
    public override string Generate(CreateSequenceExpression expression)
    Parameters
    Type Name Description
    CreateSequenceExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(CreateSequenceExpression)
    | Edit this page View Source

    Generate(CreateTableExpression)

    Outputs a create table string

    Declaration
    public override string Generate(CreateTableExpression expression)
    Parameters
    Type Name Description
    CreateTableExpression expression
    Returns
    Type Description
    string
    Overrides
    GenericGenerator.Generate(CreateTableExpression)
    | Edit this page View Source

    Generate(DeleteColumnExpression)

    Generates a ALTER TABLE DROP COLUMN SQL statement

    Declaration
    public override string Generate(DeleteColumnExpression expression)
    Parameters
    Type Name Description
    DeleteColumnExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteColumnExpression)
    | Edit this page View Source

    Generate(DeleteConstraintExpression)

    Generates an SQL statement to drop a constraint

    Declaration
    public override string Generate(DeleteConstraintExpression expression)
    Parameters
    Type Name Description
    DeleteConstraintExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteConstraintExpression)
    | Edit this page View Source

    Generate(DeleteDataExpression)

    Generates an SQL statement to DELETE data

    Declaration
    public override string Generate(DeleteDataExpression expression)
    Parameters
    Type Name Description
    DeleteDataExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteDataExpression)
    | Edit this page View Source

    Generate(DeleteDefaultConstraintExpression)

    Generates an SQL statement to drop a default constraint

    Declaration
    public override string Generate(DeleteDefaultConstraintExpression expression)
    Parameters
    Type Name Description
    DeleteDefaultConstraintExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GeneratorBase.Generate(DeleteDefaultConstraintExpression)
    | Edit this page View Source

    Generate(DeleteForeignKeyExpression)

    Generates an SQL statement to delete a foreign key

    Declaration
    public override string Generate(DeleteForeignKeyExpression expression)
    Parameters
    Type Name Description
    DeleteForeignKeyExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteForeignKeyExpression)
    | Edit this page View Source

    Generate(DeleteIndexExpression)

    Generates an SQL statement to drop an index

    Declaration
    public override string Generate(DeleteIndexExpression expression)
    Parameters
    Type Name Description
    DeleteIndexExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteIndexExpression)
    | Edit this page View Source

    Generate(DeleteSequenceExpression)

    Generates a DROP SEQUENCE SQL statement

    Declaration
    public override string Generate(DeleteSequenceExpression expression)
    Parameters
    Type Name Description
    DeleteSequenceExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteSequenceExpression)
    | Edit this page View Source

    Generate(DeleteTableExpression)

    Generates a DROP TABLE SQL statement

    Declaration
    public override string Generate(DeleteTableExpression expression)
    Parameters
    Type Name Description
    DeleteTableExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(DeleteTableExpression)
    | Edit this page View Source

    Generate(InsertDataExpression)

    Generates an SQL statement to INSERT data

    Declaration
    public override string Generate(InsertDataExpression expression)
    Parameters
    Type Name Description
    InsertDataExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(InsertDataExpression)
    | Edit this page View Source

    Generate(RenameColumnExpression)

    Generates an SQL statement to rename a column

    Declaration
    public override string Generate(RenameColumnExpression expression)
    Parameters
    Type Name Description
    RenameColumnExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(RenameColumnExpression)
    | Edit this page View Source

    Generate(RenameTableExpression)

    Generates an SQL statement to rename a table

    Declaration
    public override string Generate(RenameTableExpression expression)
    Parameters
    Type Name Description
    RenameTableExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(RenameTableExpression)
    | Edit this page View Source

    Generate(UpdateDataExpression)

    Generates an SQL statement to UPDATE data

    Declaration
    public override string Generate(UpdateDataExpression expression)
    Parameters
    Type Name Description
    UpdateDataExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GenericGenerator.Generate(UpdateDataExpression)
    | Edit this page View Source

    GenerateAlterSequence(SequenceDefinition)

    Declaration
    public string GenerateAlterSequence(SequenceDefinition sequence)
    Parameters
    Type Name Description
    SequenceDefinition sequence
    Returns
    Type Description
    string
    | Edit this page View Source

    GenerateForeignKeyName(ForeignKeyDefinition)

    Declaration
    public override string GenerateForeignKeyName(ForeignKeyDefinition foreignKey)
    Parameters
    Type Name Description
    ForeignKeyDefinition foreignKey
    Returns
    Type Description
    string
    Overrides
    GenericGenerator.GenerateForeignKeyName(ForeignKeyDefinition)
    | Edit this page View Source

    GenerateSetNull3(string, ColumnDefinition)

    Declaration
    public virtual string GenerateSetNull3(string tableName, ColumnDefinition column)
    Parameters
    Type Name Description
    string tableName
    ColumnDefinition column
    Returns
    Type Description
    string
    | Edit this page View Source

    GenerateSetNullPre3(string, ColumnDefinition)

    Declaration
    public virtual string GenerateSetNullPre3(string tableName, ColumnDefinition column)
    Parameters
    Type Name Description
    string tableName
    ColumnDefinition column
    Returns
    Type Description
    string
    | Edit this page View Source

    GenerateSetType(string, ColumnDefinition)

    Declaration
    public virtual string GenerateSetType(string tableName, ColumnDefinition column)
    Parameters
    Type Name Description
    string tableName
    ColumnDefinition column
    Returns
    Type Description
    string

    Implements

    IMigrationGenerator
    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.