Search Results for

    Show / Hide Table of Contents

    Interface IColumn

    Interface for column-oriented SQL fragment generation

    Namespace: FluentMigrator.Runner.Generators
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public interface IColumn

    Methods

    | Edit this page View Source

    FormatCascade(string, Rule)

    Formats the foreign key cascading SQL fragment

    Declaration
    [NotNull]
    string FormatCascade(string onWhat, Rule rule)
    Parameters
    Type Name Description
    string onWhat

    The action this cascade clause applies to (update or delete)

    Rule rule

    The cascade rule

    Returns
    Type Description
    string

    The formatted SQL fragment

    | Edit this page View Source

    FormatForeignKey(ForeignKeyDefinition, Func<ForeignKeyDefinition, string>)

    Formats the foreign key SQL fragment optionally using a custom foreign key name generator

    Declaration
    [NotNull]
    string FormatForeignKey(ForeignKeyDefinition foreignKey, Func<ForeignKeyDefinition, string> fkNameGeneration)
    Parameters
    Type Name Description
    ForeignKeyDefinition foreignKey

    The foreign key definition

    Func<ForeignKeyDefinition, string> fkNameGeneration

    The custom foreign key name generator

    Returns
    Type Description
    string

    The SQL fragment

    | Edit this page View Source

    Generate(ColumnDefinition)

    Generates the complete column definition SQL fragment

    Declaration
    [NotNull]
    string Generate(ColumnDefinition column)
    Parameters
    Type Name Description
    ColumnDefinition column

    The column definition

    Returns
    Type Description
    string

    The SQL fragment

    | Edit this page View Source

    Generate(IEnumerable<ColumnDefinition>, string)

    Generate the SQL fragment for all column definitions

    Declaration
    [NotNull]
    string Generate(IEnumerable<ColumnDefinition> columns, string tableName)
    Parameters
    Type Name Description
    IEnumerable<ColumnDefinition> columns

    The column definitions

    string tableName

    The table name

    Returns
    Type Description
    string

    The SQL fragment

    | Edit this page View Source

    GenerateForeignKeyName(ForeignKeyDefinition)

    Generates the default foreign key name

    Declaration
    [NotNull]
    string GenerateForeignKeyName(ForeignKeyDefinition foreignKey)
    Parameters
    Type Name Description
    ForeignKeyDefinition foreignKey

    The foreign key definition

    Returns
    Type Description
    string

    The SQL fragment

    • 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.