@@ -884,7 +884,7 @@ public static IEnumerable<TReturn> Query<TFirst, TSecond, TReturn>(
884
884
this IDbConnection cnn , string sql , Func < TFirst , TSecond , TReturn > map , object param = null , IDbTransaction transaction = null , bool buffered = true , string splitOn = "Id" , int ? commandTimeout = null , CommandType ? commandType = null
885
885
)
886
886
{
887
- return MultiMap < TFirst , TSecond , DontMap , DontMap , DontMap , DontMap , DontMap , TReturn > ( cnn , sql , map , param as object , transaction , buffered , splitOn , commandTimeout , commandType ) ;
887
+ return MultiMap < TFirst , TSecond , DontMap , DontMap , DontMap , DontMap , DontMap , TReturn > ( cnn , sql , map , param , transaction , buffered , splitOn , commandTimeout , commandType ) ;
888
888
}
889
889
890
890
/// <summary>
@@ -908,7 +908,7 @@ public static IEnumerable<TReturn> Query<TFirst, TSecond, TThird, TReturn>(
908
908
this IDbConnection cnn , string sql , Func < TFirst , TSecond , TThird , TReturn > map , object param = null , IDbTransaction transaction = null , bool buffered = true , string splitOn = "Id" , int ? commandTimeout = null , CommandType ? commandType = null
909
909
)
910
910
{
911
- return MultiMap < TFirst , TSecond , TThird , DontMap , DontMap , DontMap , DontMap , TReturn > ( cnn , sql , map , param as object , transaction , buffered , splitOn , commandTimeout , commandType ) ;
911
+ return MultiMap < TFirst , TSecond , TThird , DontMap , DontMap , DontMap , DontMap , TReturn > ( cnn , sql , map , param , transaction , buffered , splitOn , commandTimeout , commandType ) ;
912
912
}
913
913
914
914
/// <summary>
@@ -933,7 +933,7 @@ public static IEnumerable<TReturn> Query<TFirst, TSecond, TThird, TFourth, TRetu
933
933
this IDbConnection cnn , string sql , Func < TFirst , TSecond , TThird , TFourth , TReturn > map , object param = null , IDbTransaction transaction = null , bool buffered = true , string splitOn = "Id" , int ? commandTimeout = null , CommandType ? commandType = null
934
934
)
935
935
{
936
- return MultiMap < TFirst , TSecond , TThird , TFourth , DontMap , DontMap , DontMap , TReturn > ( cnn , sql , map , param as object , transaction , buffered , splitOn , commandTimeout , commandType ) ;
936
+ return MultiMap < TFirst , TSecond , TThird , TFourth , DontMap , DontMap , DontMap , TReturn > ( cnn , sql , map , param , transaction , buffered , splitOn , commandTimeout , commandType ) ;
937
937
}
938
938
939
939
/// <summary>
@@ -959,7 +959,7 @@ public static IEnumerable<TReturn> Query<TFirst, TSecond, TThird, TFourth, TFift
959
959
this IDbConnection cnn , string sql , Func < TFirst , TSecond , TThird , TFourth , TFifth , TReturn > map , object param = null , IDbTransaction transaction = null , bool buffered = true , string splitOn = "Id" , int ? commandTimeout = null , CommandType ? commandType = null
960
960
)
961
961
{
962
- return MultiMap < TFirst , TSecond , TThird , TFourth , TFifth , DontMap , DontMap , TReturn > ( cnn , sql , map , param as object , transaction , buffered , splitOn , commandTimeout , commandType ) ;
962
+ return MultiMap < TFirst , TSecond , TThird , TFourth , TFifth , DontMap , DontMap , TReturn > ( cnn , sql , map , param , transaction , buffered , splitOn , commandTimeout , commandType ) ;
963
963
}
964
964
965
965
/// <summary>
@@ -986,7 +986,7 @@ public static IEnumerable<TReturn> Query<TFirst, TSecond, TThird, TFourth, TFift
986
986
this IDbConnection cnn , string sql , Func < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , TReturn > map , object param = null , IDbTransaction transaction = null , bool buffered = true , string splitOn = "Id" , int ? commandTimeout = null , CommandType ? commandType = null
987
987
)
988
988
{
989
- return MultiMap < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , DontMap , TReturn > ( cnn , sql , map , param as object , transaction , buffered , splitOn , commandTimeout , commandType ) ;
989
+ return MultiMap < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , DontMap , TReturn > ( cnn , sql , map , param , transaction , buffered , splitOn , commandTimeout , commandType ) ;
990
990
}
991
991
992
992
@@ -1013,7 +1013,7 @@ public static IEnumerable<TReturn> Query<TFirst, TSecond, TThird, TFourth, TFift
1013
1013
/// <returns></returns>
1014
1014
public static IEnumerable < TReturn > Query < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , TSeventh , TReturn > ( this IDbConnection cnn , string sql , Func < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , TSeventh , TReturn > map , object param = null , IDbTransaction transaction = null , bool buffered = true , string splitOn = "Id" , int ? commandTimeout = null , CommandType ? commandType = null )
1015
1015
{
1016
- return MultiMap < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , TSeventh , TReturn > ( cnn , sql , map , param as object , transaction , buffered , splitOn , commandTimeout , commandType ) ;
1016
+ return MultiMap < TFirst , TSecond , TThird , TFourth , TFifth , TSixth , TSeventh , TReturn > ( cnn , sql , map , param , transaction , buffered , splitOn , commandTimeout , commandType ) ;
1017
1017
}
1018
1018
1019
1019
/// <summary>
@@ -1066,12 +1066,12 @@ static IEnumerable<TReturn> MultiMapImpl<TFirst, TSecond, TThird, TFourth, TFift
1066
1066
reader = ownedReader ;
1067
1067
}
1068
1068
DeserializerState deserializer = default ( DeserializerState ) ;
1069
- Func < IDataReader , object > [ ] otherDeserializers = null ;
1069
+ Func < IDataReader , object > [ ] otherDeserializers ;
1070
1070
1071
1071
int hash = GetColumnHash ( reader ) ;
1072
1072
if ( ( deserializer = cinfo . Deserializer ) . Func == null || ( otherDeserializers = cinfo . OtherDeserializers ) == null || hash != deserializer . Hash )
1073
1073
{
1074
- var deserializers = GenerateDeserializers ( new Type [ ] { typeof ( TFirst ) , typeof ( TSecond ) , typeof ( TThird ) , typeof ( TFourth ) , typeof ( TFifth ) , typeof ( TSixth ) , typeof ( TSeventh ) } , splitOn , reader ) ;
1074
+ var deserializers = GenerateDeserializers ( new [ ] { typeof ( TFirst ) , typeof ( TSecond ) , typeof ( TThird ) , typeof ( TFourth ) , typeof ( TFifth ) , typeof ( TSixth ) , typeof ( TSeventh ) } , splitOn , reader ) ;
1075
1075
deserializer = cinfo . Deserializer = new DeserializerState ( hash , deserializers [ 0 ] ) ;
1076
1076
otherDeserializers = cinfo . OtherDeserializers = deserializers . Skip ( 1 ) . ToArray ( ) ;
1077
1077
if ( command . AddToCache ) SetQueryCache ( identity , cinfo ) ;
@@ -1133,7 +1133,7 @@ static IEnumerable<TReturn> MultiMapImpl<TReturn>(this IDbConnection cnn, Comman
1133
1133
ownedReader = ownedCommand . ExecuteReader ( GetBehavior ( wasClosed , CommandBehavior . SequentialAccess | CommandBehavior . SingleResult ) ) ;
1134
1134
reader = ownedReader ;
1135
1135
}
1136
- DeserializerState deserializer = default ( DeserializerState ) ;
1136
+ DeserializerState deserializer ;
1137
1137
Func < IDataReader , object > [ ] otherDeserializers ;
1138
1138
1139
1139
int hash = GetColumnHash ( reader ) ;
@@ -1350,7 +1350,6 @@ private static CacheInfo GetCacheInfo(Identity identity, object exampleParameter
1350
1350
if ( ( identity . commandType == null || identity . commandType == CommandType . Text ) && ShouldPassByPosition ( identity . sql ) )
1351
1351
{
1352
1352
var tail = reader ;
1353
- var sql = identity . sql ;
1354
1353
reader = ( cmd , obj ) =>
1355
1354
{
1356
1355
tail ( cmd , obj ) ;
0 commit comments