Interface IDbFirst
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)
Declaration
string GetCsConvert(DbColumnInfo column)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetCsParse(DbColumnInfo)
Declaration
string GetCsParse(DbColumnInfo column)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetCsStringify(DbColumnInfo)
Declaration
string GetCsStringify(DbColumnInfo column)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetCsType(DbColumnInfo)
Declaration
string GetCsType(DbColumnInfo column)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetCsTypeInfo(DbColumnInfo)
Declaration
Type GetCsTypeInfo(DbColumnInfo column)
Parameters
Returns
| Type |
Description |
| System.Type |
|
|
Improve this Doc
View Source
GetCsTypeValue(DbColumnInfo)
Declaration
string GetCsTypeValue(DbColumnInfo column)
Parameters
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
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetDbType(DbColumnInfo)
Declaration
int GetDbType(DbColumnInfo column)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
GetEnumsByDatabase(String[])
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
|
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> |
|