 | DapperDbHelperQueryMultipleTFirst, TSecond 方法 (String, IListTFirst, IListTSecond, Object, IDbTransaction, NullableInt32, NullableCommandType) |
Sweet 开发框架
2条Sql语句查询
命名空间:
Sweet.DBUtility.SQLite
程序集:
Sweet.DBUtility.SQLite (在 Sweet.DBUtility.SQLite.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法public static void QueryMultiple<TFirst, TSecond>(
string sql,
out IList<TFirst> tfList,
out IList<TSecond> tsList,
Object param = null,
IDbTransaction transaction = null,
int? commandTimeout = null,
CommandType? commandType = null
)
Public Shared Sub QueryMultiple(Of TFirst, TSecond) (
sql As String,
<OutAttribute> ByRef tfList As IList(Of TFirst),
<OutAttribute> ByRef tsList As IList(Of TSecond),
Optional param As Object = Nothing,
Optional transaction As IDbTransaction = Nothing,
Optional commandTimeout As Integer? = Nothing,
Optional commandType As CommandType? = Nothing
)
static member QueryMultiple :
sql : string *
tfList : IList<'TFirst> byref *
tsList : IList<'TSecond> byref *
?param : Object *
?transaction : IDbTransaction *
?commandTimeout : Nullable<int> *
?commandType : Nullable<CommandType>
(* Defaults:
let _param = defaultArg param null
let _transaction = defaultArg transaction null
let _commandTimeout = defaultArg commandTimeout null
let _commandType = defaultArg commandType null
*)
-> unit
参数
- sql
- 类型:SystemString
2条查询语句 - tfList
- 类型:System.Collections.GenericIListTFirst
返回第一条语句的实体集合 - tsList
- 类型:System.Collections.GenericIListTSecond
返回第二条语句的实体集合 - param (Optional)
- 类型:SystemObject
参数值(可选) - transaction (Optional)
- 类型:System.DataIDbTransaction
事务名称(可选) - commandTimeout (Optional)
- 类型:SystemNullableInt32
超时时间(可选) - commandType (Optional)
- 类型:SystemNullableCommandType
指定如果解释sql字符串:语句/存储过程(可选)
类型参数
- TFirst
- 实体集合一
- TSecond
- 实体集合二
参见