Search Results for

    Show / Hide Table of Contents

    Class GenericQuoter

    Inheritance
    object
    GenericQuoter
    Db2Quoter
    Db2Quoter
    FirebirdQuoter
    FirebirdQuoter
    HanaQuoter
    HanaQuoter
    JetQuoter
    JetQuoter
    MySqlQuoter
    MySqlQuoter
    OracleQuoterBase
    OracleQuoterQuotedIdentifier
    PostgresQuoter
    PostgresQuoter
    RedshiftQuoter
    RedshiftQuoter
    SQLiteQuoter
    SQLiteQuoter
    SqlAnywhereQuoter
    SqlAnywhereQuoter
    SqlServer2000Quoter
    SqlServer2000Quoter
    Implements
    IQuoter
    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.Generic
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public class GenericQuoter : IQuoter

    Properties

    | Edit this page View Source

    CloseQuote

    Returns the closing quote identifier - " is the standard according to the specification

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

    CloseQuoteEscapeString

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

    EscapeValueQuote

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

    IdentifierSeparator

    Gets the separator between identifiers (e.g. the dot between SCHEMA.TABLENAME)

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

    OpenQuote

    Returns the opening quote identifier - " is the standard according to the specification

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

    OpenQuoteEscapeString

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

    ValueQuote

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

    Methods

    | Edit this page View Source

    CreateSchemaPrefixedQuotedIdentifier(string, string)

    Declaration
    protected virtual string CreateSchemaPrefixedQuotedIdentifier(string quotedSchemaName, string quotedIdentifier)
    Parameters
    Type Name Description
    string quotedSchemaName
    string quotedIdentifier
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatAnsiString(string)

    Declaration
    public virtual string FormatAnsiString(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatBool(bool)

    Declaration
    public virtual string FormatBool(bool value)
    Parameters
    Type Name Description
    bool value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatByteArray(byte[])

    Declaration
    protected virtual string FormatByteArray(byte[] value)
    Parameters
    Type Name Description
    byte[] value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatChar(char)

    Declaration
    public virtual string FormatChar(char value)
    Parameters
    Type Name Description
    char value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatDateTime(DateTime)

    Declaration
    public virtual string FormatDateTime(DateTime value)
    Parameters
    Type Name Description
    DateTime value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatDateTimeOffset(DateTimeOffset)

    Declaration
    public virtual string FormatDateTimeOffset(DateTimeOffset value)
    Parameters
    Type Name Description
    DateTimeOffset value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatEnum(object)

    Declaration
    public virtual string FormatEnum(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatGuid(Guid)

    Declaration
    public virtual string FormatGuid(Guid value)
    Parameters
    Type Name Description
    Guid value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatNationalString(string)

    Declaration
    public virtual string FormatNationalString(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatNull()

    Declaration
    public virtual string FormatNull()
    Returns
    Type Description
    string
    | Edit this page View Source

    FormatSystemMethods(SystemMethods)

    Declaration
    public virtual string FormatSystemMethods(SystemMethods value)
    Parameters
    Type Name Description
    SystemMethods value
    Returns
    Type Description
    string
    | Edit this page View Source

    FromTimeSpan(TimeSpan)

    Declaration
    public virtual string FromTimeSpan(TimeSpan value)
    Parameters
    Type Name Description
    TimeSpan value
    Returns
    Type Description
    string
    | Edit this page View Source

    IsQuoted(string)

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

    Declaration
    public virtual bool IsQuoted(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    bool
    | Edit this page View Source

    Quote(string)

    Returns a quoted string that has been correctly escaped

    Declaration
    public virtual string Quote(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    string
    | Edit this page View Source

    QuoteColumnName(string)

    Quotes a column name

    Declaration
    public virtual string QuoteColumnName(string columnName)
    Parameters
    Type Name Description
    string columnName
    Returns
    Type Description
    string
    | Edit this page View Source

    QuoteConstraintName(string, string)

    Quotes a constraint name

    Declaration
    public virtual string QuoteConstraintName(string constraintName, string schemaName = null)
    Parameters
    Type Name Description
    string constraintName
    string schemaName
    Returns
    Type Description
    string
    | Edit this page View Source

    QuoteIndexName(string, string)

    Quote an index name

    Declaration
    public virtual string QuoteIndexName(string indexName, string schemaName)
    Parameters
    Type Name Description
    string indexName
    string schemaName
    Returns
    Type Description
    string
    | Edit this page View Source

    QuoteSchemaName(string)

    Quotes a schema name

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

    The schema name to quote

    Returns
    Type Description
    string

    The quoted schema name

    | Edit this page View Source

    QuoteSequenceName(string, string)

    Quotes a Sequence name

    Declaration
    public virtual string QuoteSequenceName(string sequenceName, string schemaName)
    Parameters
    Type Name Description
    string sequenceName
    string schemaName
    Returns
    Type Description
    string
    | Edit this page View Source

    QuoteTableName(string, string)

    Quotes a Table name

    Declaration
    public virtual string QuoteTableName(string tableName, string schemaName = null)
    Parameters
    Type Name Description
    string tableName
    string schemaName
    Returns
    Type Description
    string
    | Edit this page View Source

    QuoteValue(object)

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

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

    The value to be quoted

    Returns
    Type Description
    string

    The quoted value

    | Edit this page View Source

    ShouldQuote(string)

    Declaration
    [ContractAnnotation("name:null => false")]
    protected virtual bool ShouldQuote(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    bool
    | Edit this page View Source

    UnQuote(string)

    Provides an unquoted, unescaped string

    Declaration
    public virtual string UnQuote(string quoted)
    Parameters
    Type Name Description
    string quoted
    Returns
    Type Description
    string

    Implements

    IQuoter
    • Edit this page
    • View Source
    In this article
    • Properties
      • CloseQuote
      • CloseQuoteEscapeString
      • EscapeValueQuote
      • IdentifierSeparator
      • OpenQuote
      • OpenQuoteEscapeString
      • ValueQuote
    • Methods
      • CreateSchemaPrefixedQuotedIdentifier(string, string)
      • FormatAnsiString(string)
      • FormatBool(bool)
      • FormatByteArray(byte[])
      • FormatChar(char)
      • FormatDateTime(DateTime)
      • FormatDateTimeOffset(DateTimeOffset)
      • FormatEnum(object)
      • FormatGuid(Guid)
      • FormatNationalString(string)
      • FormatNull()
      • FormatSystemMethods(SystemMethods)
      • FromTimeSpan(TimeSpan)
      • IsQuoted(string)
      • Quote(string)
      • QuoteColumnName(string)
      • QuoteConstraintName(string, string)
      • QuoteIndexName(string, string)
      • QuoteSchemaName(string)
      • QuoteSequenceName(string, string)
      • QuoteTableName(string, string)
      • QuoteValue(object)
      • ShouldQuote(string)
      • UnQuote(string)
    • Implements
    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.