Click or drag to resize
SqlMapper.Query<TFirst, TSecond, TThird, TFourth, TReturn> Method (IDbConnection, String, Func<TFirst, TSecond, TThird, TFourth, TReturn>, Object, IDbTransaction, Boolean, String, Nullable<Int32>, Nullable<CommandType>)
Perform a multi mapping query with 4 input parameters

Namespace: Dapper
Assembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static IEnumerable<TReturn> Query<TFirst, TSecond, TThird, TFourth, TReturn>(
	this IDbConnection cnn,
	string sql,
	Func<TFirst, TSecond, TThird, TFourth, TReturn> map,
	Object param = null,
	IDbTransaction transaction = null,
	bool buffered = true,
	string splitOn = "Id",
	Nullable<int> commandTimeout = null,
	Nullable<CommandType> commandType = null
)

Parameters

cnn
Type: System.Data.IDbConnection
sql
Type: System.String
map
Type: System.Func<TFirst, TSecond, TThird, TFourth, TReturn>
param (Optional)
Type: System.Object
transaction (Optional)
Type: System.Data.IDbTransaction
buffered (Optional)
Type: System.Boolean
splitOn (Optional)
Type: System.String
commandTimeout (Optional)
Type: System.Nullable<Int32>
commandType (Optional)
Type: System.Nullable<CommandType>

Type Parameters

TFirst
TSecond
TThird
TFourth
TReturn

Return Value

Type: IEnumerable<TReturn>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDbConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also