Search Results for

    Show / Hide Table of Contents

    Interface ISqlColumnService

    Revtrieve column-information from a relational database

    Namespace: Simplic.Sql
    Assembly: Simplic.Sql.dll
    Syntax
    public interface ISqlColumnService

    Methods

    | Improve this Doc View Source

    GetColumns(String, String)

    Retrieves the columns from the database table.

    Declaration
    IDictionary<string, Type> GetColumns(string tableName, string databaseName)
    Parameters
    Type Name Description
    System.String tableName

    Table to read the columns from

    System.String databaseName

    Database to read the information from

    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Type>
    | Improve this Doc View Source

    GetModelDBColumnNames(String, Type, IDictionary<String, String>)

    Retrieves the columns from the database table and compares them with the model. Returns only the fields which are found in the model!

    Declaration
    IDictionary<string, string> GetModelDBColumnNames(string tableName, Type modelType, IDictionary<string, string> differentColumnName)
    Parameters
    Type Name Description
    System.String tableName

    Table to read the columns from

    System.Type modelType
    System.Collections.Generic.IDictionary<System.String, System.String> differentColumnName
    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.String>
    | Improve this Doc View Source

    GetModelDBColumnNames(String, Type, IDictionary<String, String>, String)

    Retrieves the columns from the database table and compares them with the model. Returns only the fields which are found in the model!

    Declaration
    IDictionary<string, string> GetModelDBColumnNames(string tableName, Type modelType, IDictionary<string, string> differentColumnName, string databaseName)
    Parameters
    Type Name Description
    System.String tableName

    Table to read the columns from

    System.Type modelType
    System.Collections.Generic.IDictionary<System.String, System.String> differentColumnName
    System.String databaseName
    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.String>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx