Search Results for

    Show / Hide Table of Contents

    Interface IQuoter

    The interface to be implemented for handling quotes

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

    Methods

    IsQuoted(string)

    Returns true is the value starts and ends with a close quote

    Declaration
    bool IsQuoted(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    bool

    Quote(string)

    Returns a quoted string that has been correctly escaped

    Declaration
    string Quote(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    string

    QuoteColumnName(string)

    Quotes a column name

    Declaration
    string QuoteColumnName(string columnName)
    Parameters
    Type Name Description
    string columnName
    Returns
    Type Description
    string

    QuoteConstraintName(string, string)

    Quotes a constraint name

    Declaration
    string QuoteConstraintName(string contraintName, string schemaName = null)
    Parameters
    Type Name Description
    string contraintName
    string schemaName
    Returns
    Type Description
    string

    QuoteIndexName(string, string)

    Quote an index name

    Declaration
    string QuoteIndexName(string indexName, string schemaName = null)
    Parameters
    Type Name Description
    string indexName
    string schemaName
    Returns
    Type Description
    string

    QuoteSchemaName(string)

    Quotes a schema name

    Declaration
    string QuoteSchemaName(string schemaName)
    Parameters
    Type Name Description
    string schemaName

    The schema name to quote

    Returns
    Type Description
    string

    The quoted schema name

    QuoteSequenceName(string, string)

    Quotes a Sequence name

    Declaration
    string QuoteSequenceName(string sequenceName, string schemaName = null)
    Parameters
    Type Name Description
    string sequenceName
    string schemaName
    Returns
    Type Description
    string

    QuoteTableName(string, string)

    Quotes a Table name

    Declaration
    string QuoteTableName(string tableName, string schemaName = null)
    Parameters
    Type Name Description
    string tableName
    string schemaName
    Returns
    Type Description
    string

    QuoteValue(object)

    Quotes a value to be embedded into an SQL script/statement

    Declaration
    string QuoteValue(object value)
    Parameters
    Type Name Description
    object value

    The value to be quoted

    Returns
    Type Description
    string

    The quoted value

    UnQuote(string)

    Provides an unquoted, unescaped string

    Declaration
    string UnQuote(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    string
    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.