You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2022. It is now read-only.
@@ -257,6 +262,30 @@ static MethodInfo GetBasicPropertySetter(Type declaringType, string name, Type e
257
262
/// </summary>
258
263
staticpartialclassSqlMapper
259
264
{
265
+
/// <summary>
266
+
/// Permits specifying certain SqlMapper values globally.
267
+
/// </summary>
268
+
publicstaticclassSettings
269
+
{
270
+
staticSettings()
271
+
{
272
+
SetDefaults();
273
+
}
274
+
275
+
/// <summary>
276
+
/// Resets all Settings to their default values
277
+
/// </summary>
278
+
publicstaticvoidSetDefaults()
279
+
{
280
+
CommandTimeout=null;
281
+
}
282
+
283
+
/// <summary>
284
+
/// Specifies the default Command Timeout for all Queries
285
+
/// </summary>
286
+
publicstaticint?CommandTimeout{get;set;}
287
+
}
288
+
260
289
/// <summary>
261
290
/// Implement this interface to pass an arbitrary db specific set of parameters to Dapper
262
291
/// </summary>
@@ -1497,7 +1526,7 @@ public static IEnumerable<object> Query(
1497
1526
#else
1498
1527
this IDbConnection cnn,Typetype,stringsql,objectparam=null,IDbTransactiontransaction=null,boolbuffered=true,int?commandTimeout=null,CommandType?commandType=null
0 commit comments