Search Results for

    Show / Hide Table of Contents

    Class GeneratorBase

    Inheritance
    object
    GeneratorBase
    GenericGenerator
    GenericGenerator
    Implements
    IMigrationGenerator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Generators.Base
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public abstract class GeneratorBase : IMigrationGenerator

    Constructors

    | Edit this page View Source

    GeneratorBase(IColumn, IQuoter, IDescriptionGenerator)

    Declaration
    public GeneratorBase(IColumn column, IQuoter quoter, IDescriptionGenerator descriptionGenerator)
    Parameters
    Type Name Description
    IColumn column
    IQuoter quoter
    IDescriptionGenerator descriptionGenerator

    Properties

    | Edit this page View Source

    Column

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

    DescriptionGenerator

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

    Quoter

    Declaration
    public IQuoter Quoter { get; }
    Property Value
    Type Description
    IQuoter

    Methods

    | Edit this page View Source

    Generate(AlterColumnExpression)

    Generates a ALTER TABLE ALTER COLUMN SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(AlterDefaultConstraintExpression)

    Generates an SQL statement to alter a DEFAULT constraint

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(AlterSchemaExpression)

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

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(AlterTableExpression)

    Generates a ALTER TABLE SQL statement

    Declaration
    public virtual string Generate(AlterTableExpression expression)
    Parameters
    Type Name Description
    AlterTableExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateColumnExpression)

    Generates a ALTER TABLE ADD COLUMN SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateConstraintExpression)

    Generates an SQL statement to create a constraint

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateForeignKeyExpression)

    Generates an SQL statement to create a foreign key

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateIndexExpression)

    Generates an SQL statement to create an index

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateSchemaExpression)

    Generates a CREATE SCHEMA SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateSequenceExpression)

    Generates a CREATE SEQUENCE SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(CreateTableExpression)

    Generates a CREATE TABLE SQL statement

    Declaration
    public abstract string Generate(CreateTableExpression expression)
    Parameters
    Type Name Description
    CreateTableExpression expression

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteColumnExpression)

    Generates a ALTER TABLE DROP COLUMN SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteConstraintExpression)

    Generates an SQL statement to drop a constraint

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteDataExpression)

    Generates an SQL statement to DELETE data

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteDefaultConstraintExpression)

    Generates an SQL statement to drop a default constraint

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteForeignKeyExpression)

    Generates an SQL statement to delete a foreign key

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteIndexExpression)

    Generates an SQL statement to drop an index

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteSchemaExpression)

    Generates a DROP SCHEMA SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteSequenceExpression)

    Generates a DROP SEQUENCE SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(DeleteTableExpression)

    Generates a DROP TABLE SQL statement

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(InsertDataExpression)

    Generates an SQL statement to INSERT data

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(RenameColumnExpression)

    Generates an SQL statement to rename a column

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(RenameTableExpression)

    Generates an SQL statement to rename a table

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    Generate(UpdateDataExpression)

    Generates an SQL statement to UPDATE data

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

    The expression to create the SQL for

    Returns
    Type Description
    string

    The generated SQL

    | Edit this page View Source

    IsAdditionalFeatureSupported(string)

    Declaration
    public virtual bool IsAdditionalFeatureSupported(string feature)
    Parameters
    Type Name Description
    string feature
    Returns
    Type Description
    bool

    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.