Search Results for

    Show / Hide Table of Contents

    Interface IQuerySchema

    Gets the interface to query a database

    Namespace: FluentMigrator
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public interface IQuerySchema

    Properties

    | Edit this page View Source

    DatabaseType

    Gets the database type

    Declaration
    [NotNull]
    string DatabaseType { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    DatabaseTypeAliases

    Gets the database type aliases

    Declaration
    [NotNull]
    [ItemNotNull]
    IList<string> DatabaseTypeAliases { get; }
    Property Value
    Type Description
    IList<string>

    Methods

    | Edit this page View Source

    ColumnExists(string, string, string)

    Tests if a column exists

    Declaration
    bool ColumnExists(string schemaName, string tableName, string columnName)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    string tableName

    The table name

    string columnName

    The column name

    Returns
    Type Description
    bool

    true when it exists

    | Edit this page View Source

    ConstraintExists(string, string, string)

    Tests if a constraint exists

    Declaration
    bool ConstraintExists(string schemaName, string tableName, string constraintName)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    string tableName

    The table name

    string constraintName

    The constraint name

    Returns
    Type Description
    bool

    true when it exists

    | Edit this page View Source

    DefaultValueExists(string, string, string, object)

    Tests if a default value for a column exists

    Declaration
    bool DefaultValueExists(string schemaName, string tableName, string columnName, object defaultValue)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    string tableName

    The table name

    string columnName

    The column name

    object defaultValue

    The default value

    Returns
    Type Description
    bool

    true when it exists

    | Edit this page View Source

    IndexExists(string, string, string)

    Tests if an index exists

    Declaration
    bool IndexExists(string schemaName, string tableName, string indexName)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    string tableName

    The table name

    string indexName

    The index name

    Returns
    Type Description
    bool

    true when it exists

    | Edit this page View Source

    SchemaExists(string)

    Tests if the schema exists

    Declaration
    bool SchemaExists(string schemaName)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    Returns
    Type Description
    bool

    true when it exists

    | Edit this page View Source

    SequenceExists(string, string)

    Tests if a sequence exists

    Declaration
    bool SequenceExists(string schemaName, string sequenceName)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    string sequenceName

    The sequence name

    Returns
    Type Description
    bool

    true when it exists

    | Edit this page View Source

    TableExists(string, string)

    Tests if the table exists

    Declaration
    bool TableExists(string schemaName, string tableName)
    Parameters
    Type Name Description
    string schemaName

    The schema name

    string tableName

    The table name

    Returns
    Type Description
    bool

    true when it exists

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