Search Results for

    Show / Hide Table of Contents

    Interface IDbFirst

    Namespace: FreeSql
    Assembly: FreeSql.dll
    Syntax
    public interface IDbFirst

    Methods

    | Improve this Doc View Source

    ExistsTable(String, Boolean)

    判断表是否存在

    Declaration
    bool ExistsTable(string name, bool ignoreCase = true)
    Parameters
    Type Name Description
    System.String name

    表名,如:dbo.table1

    System.Boolean ignoreCase

    是否忽略大小写

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetCsConvert(DbColumnInfo)

    获取c#转换,(int)、(long)

    Declaration
    string GetCsConvert(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetCsParse(DbColumnInfo)

    反序列化

    Declaration
    string GetCsParse(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetCsStringify(DbColumnInfo)

    序列化

    Declaration
    string GetCsStringify(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetCsType(DbColumnInfo)

    获取c#类型,int、long

    Declaration
    string GetCsType(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetCsTypeInfo(DbColumnInfo)

    获取c#类型对象

    Declaration
    Type GetCsTypeInfo(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.Type
    | Improve this Doc View Source

    GetCsTypeValue(DbColumnInfo)

    获取c#值

    Declaration
    string GetCsTypeValue(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetDatabases()

    获取所有数据库

    Declaration
    List<string> GetDatabases()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>
    | Improve this Doc View Source

    GetDataReaderMethod(DbColumnInfo)

    获取ado.net读取方法, GetBoolean、GetInt64

    Declaration
    string GetDataReaderMethod(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetDbType(DbColumnInfo)

    获取数据库枚举类型int值

    Declaration
    int GetDbType(DbColumnInfo column)
    Parameters
    Type Name Description
    DbColumnInfo column
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetEnumsByDatabase(String[])

    获取数据库枚举类型,适用 PostgreSQL

    Declaration
    List<DbEnumInfo> GetEnumsByDatabase(params string[] database)
    Parameters
    Type Name Description
    System.String[] database
    Returns
    Type Description
    System.Collections.Generic.List<DbEnumInfo>
    | Improve this Doc View Source

    GetTableByName(String, Boolean)

    获取指定单表信息,包括列详情、主键、唯一键、索引、备注

    Declaration
    DbTableInfo GetTableByName(string name, bool ignoreCase = true)
    Parameters
    Type Name Description
    System.String name

    表名,如:dbo.table1

    System.Boolean ignoreCase

    是否忽略大小写

    Returns
    Type Description
    DbTableInfo
    | Improve this Doc View Source

    GetTablesByDatabase(String[])

    获取指定数据库的表信息,包括表、列详情、主键、唯一键、索引、外键、备注

    Declaration
    List<DbTableInfo> GetTablesByDatabase(params string[] database)
    Parameters
    Type Name Description
    System.String[] database
    Returns
    Type Description
    System.Collections.Generic.List<DbTableInfo>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX