Search Results for

    Show / Hide Table of Contents

    Class GenericGenerator

    Inheritance
    object
    GeneratorBase
    GenericGenerator
    Db2Generator
    Db2Generator
    FirebirdGenerator
    FirebirdGenerator
    HanaGenerator
    HanaGenerator
    JetGenerator
    JetGenerator
    MySql4Generator
    MySql4Generator
    OracleGenerator
    OracleGenerator
    PostgresGenerator
    PostgresGenerator
    RedshiftGenerator
    RedshiftGenerator
    SQLiteGenerator
    SQLiteGenerator
    SqlAnywhere16Generator
    SqlAnywhere16Generator
    SqlServer2000Generator
    SqlServer2000Generator
    Implements
    IMigrationGenerator
    Inherited Members
    GeneratorBase.Generate(AlterDefaultConstraintExpression)
    GeneratorBase.Generate(DeleteDefaultConstraintExpression)
    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.Generic
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public abstract class GenericGenerator : GeneratorBase, IMigrationGenerator

    Constructors

    | Edit this page View Source

    GenericGenerator(IColumn, IQuoter, IDescriptionGenerator, IOptions<GeneratorOptions>)

    Declaration
    protected GenericGenerator(IColumn column, IQuoter quoter, IDescriptionGenerator descriptionGenerator, IOptions<GeneratorOptions> generatorOptions)
    Parameters
    Type Name Description
    IColumn column
    IQuoter quoter
    IDescriptionGenerator descriptionGenerator
    IOptions<GeneratorOptions> generatorOptions

    Fields

    | Edit this page View Source

    compatabilityMode

    Declaration
    [Obsolete("Use the CompatibilityMode property")]
    public CompatabilityMode compatabilityMode
    Field Value
    Type Description
    CompatabilityMode

    Properties

    | Edit this page View Source

    AddColumn

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

    AlterColumn

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

    AlterSchema

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

    CompatibilityMode

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

    CreateConstraint

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

    CreateForeignKeyConstraint

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

    CreateIndex

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

    CreateSchema

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

    CreateTable

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

    DeleteConstraint

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

    DeleteData

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

    DropColumn

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

    DropIndex

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

    DropSchema

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

    DropTable

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

    InsertData

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

    RenameColumn

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

    RenameTable

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

    UpdateData

    Declaration
    public virtual string UpdateData { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    AppendSqlStatementEndToken(StringBuilder)

    Declaration
    protected virtual StringBuilder AppendSqlStatementEndToken(StringBuilder stringBuilder)
    Parameters
    Type Name Description
    StringBuilder stringBuilder
    Returns
    Type Description
    StringBuilder
    | 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
    GeneratorBase.Generate(AlterColumnExpression)
    | Edit this page View Source

    Generate(AlterSchemaExpression)

    Generates an SQL statement to move a table from one schema to another

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GeneratorBase.Generate(AlterSchemaExpression)
    | 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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.Generate(CreateIndexExpression)
    | Edit this page View Source

    Generate(CreateSchemaExpression)

    Generates a CREATE SCHEMA SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GeneratorBase.Generate(CreateSchemaExpression)
    | 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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.Generate(DeleteDataExpression)
    | 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
    GeneratorBase.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
    GeneratorBase.Generate(DeleteIndexExpression)
    | Edit this page View Source

    Generate(DeleteSchemaExpression)

    Generates a DROP SCHEMA SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    Overrides
    GeneratorBase.Generate(DeleteSchemaExpression)
    | 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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.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
    GeneratorBase.Generate(UpdateDataExpression)
    | Edit this page View Source

    GenerateColumnNamesAndValues(InsertDataExpression)

    Declaration
    protected List<KeyValuePair<string, string>> GenerateColumnNamesAndValues(InsertDataExpression expression)
    Parameters
    Type Name Description
    InsertDataExpression expression
    Returns
    Type Description
    List<KeyValuePair<string, string>>
    | Edit this page View Source

    GenerateForeignKeyName(ForeignKeyDefinition)

    Declaration
    public virtual string GenerateForeignKeyName(ForeignKeyDefinition foreignKey)
    Parameters
    Type Name Description
    ForeignKeyDefinition foreignKey
    Returns
    Type Description
    string
    | Edit this page View Source

    GetClusterTypeString(CreateIndexExpression)

    Declaration
    public virtual string GetClusterTypeString(CreateIndexExpression column)
    Parameters
    Type Name Description
    CreateIndexExpression column
    Returns
    Type Description
    string
    | Edit this page View Source

    GetUniqueString(CreateIndexExpression)

    Declaration
    public virtual string GetUniqueString(CreateIndexExpression column)
    Parameters
    Type Name Description
    CreateIndexExpression column
    Returns
    Type Description
    string
    | Edit this page View Source

    ValidateAdditionalFeatureCompatibility(IEnumerable<KeyValuePair<string, object>>)

    Declaration
    protected string ValidateAdditionalFeatureCompatibility(IEnumerable<KeyValuePair<string, object>> features)
    Parameters
    Type Name Description
    IEnumerable<KeyValuePair<string, object>> features
    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.