From 3dfeffd4c4f28af80fa25d6872a996439cdbffce Mon Sep 17 00:00:00 2001 From: Michael Camara Pendon Date: Mon, 12 Sep 2022 23:43:10 +0200 Subject: [PATCH] #941 Supported the 'traceKey' and 'trace' to both the BaseRepository and DbRepository operations. --- .../Extensions/DbConnectionExtension.cs | 138 +- RepoDb.Core/RepoDb/Interfaces/ITrace.cs | 2 +- .../Operations/BaseRepository/Average.cs | 360 ++-- .../Operations/BaseRepository/AverageAll.cs | 72 +- .../Operations/BaseRepository/BatchQuery.cs | 216 ++- .../RepoDb/Operations/BaseRepository/Count.cs | 90 +- .../Operations/BaseRepository/CountAll.cs | 18 +- .../Operations/BaseRepository/Delete.cs | 106 +- .../Operations/BaseRepository/DeleteAll.cs | 68 +- .../Operations/BaseRepository/Exists.cs | 99 +- .../Operations/BaseRepository/Insert.cs | 28 +- .../Operations/BaseRepository/InsertAll.cs | 14 +- .../RepoDb/Operations/BaseRepository/Max.cs | 360 ++-- .../Operations/BaseRepository/MaxAll.cs | 72 +- .../RepoDb/Operations/BaseRepository/Merge.cs | 120 +- .../Operations/BaseRepository/MergeAll.cs | 46 +- .../RepoDb/Operations/BaseRepository/Min.cs | 360 ++-- .../Operations/BaseRepository/MinAll.cs | 72 +- .../RepoDb/Operations/BaseRepository/Query.cs | 216 ++- .../Operations/BaseRepository/QueryAll.cs | 36 +- .../RepoDb/Operations/BaseRepository/Sum.cs | 360 ++-- .../Operations/BaseRepository/SumAll.cs | 72 +- .../Operations/BaseRepository/Truncate.cs | 33 +- .../Operations/BaseRepository/Update.cs | 102 +- .../Operations/BaseRepository/UpdateAll.cs | 46 +- .../RepoDb/Operations/DbConnection/Average.cs | 335 +++- .../Operations/DbConnection/AverageAll.cs | 97 +- .../Operations/DbConnection/BatchQuery.cs | 195 ++- .../RepoDb/Operations/DbConnection/Count.cs | 125 +- .../Operations/DbConnection/CountAll.cs | 56 +- .../RepoDb/Operations/DbConnection/Delete.cs | 159 +- .../Operations/DbConnection/DeleteAll.cs | 134 +- .../RepoDb/Operations/DbConnection/Exists.cs | 145 +- .../RepoDb/Operations/DbConnection/Insert.cs | 90 +- .../Operations/DbConnection/InsertAll.cs | 75 +- .../RepoDb/Operations/DbConnection/Max.cs | 335 +++- .../RepoDb/Operations/DbConnection/MaxAll.cs | 95 +- .../RepoDb/Operations/DbConnection/Merge.cs | 266 ++- .../Operations/DbConnection/MergeAll.cs | 140 +- .../RepoDb/Operations/DbConnection/Min.cs | 335 +++- .../RepoDb/Operations/DbConnection/MinAll.cs | 95 +- .../RepoDb/Operations/DbConnection/Query.cs | 223 ++- .../Operations/DbConnection/QueryAll.cs | 102 +- .../Operations/DbConnection/QueryMultiple.cs | 1364 +++++++++++---- .../RepoDb/Operations/DbConnection/Sum.cs | 335 +++- .../RepoDb/Operations/DbConnection/SumAll.cs | 95 +- .../Operations/DbConnection/Truncate.cs | 56 +- .../RepoDb/Operations/DbConnection/Update.cs | 171 +- .../Operations/DbConnection/UpdateAll.cs | 123 +- .../RepoDb/Operations/DbRepository/Average.cs | 280 ++- .../Operations/DbRepository/AverageAll.cs | 60 +- .../Operations/DbRepository/BatchQuery.cs | 165 +- .../RepoDb/Operations/DbRepository/Count.cs | 90 +- .../Operations/DbRepository/CountAll.cs | 20 +- .../RepoDb/Operations/DbRepository/Delete.cs | 120 +- .../Operations/DbRepository/DeleteAll.cs | 90 +- .../RepoDb/Operations/DbRepository/Exists.cs | 110 +- .../RepoDb/Operations/DbRepository/Insert.cs | 60 +- .../Operations/DbRepository/InsertAll.cs | 30 +- .../RepoDb/Operations/DbRepository/Max.cs | 280 ++- .../RepoDb/Operations/DbRepository/MaxAll.cs | 60 +- .../RepoDb/Operations/DbRepository/Merge.cs | 220 ++- .../Operations/DbRepository/MergeAll.cs | 80 +- .../RepoDb/Operations/DbRepository/Min.cs | 280 ++- .../RepoDb/Operations/DbRepository/MinAll.cs | 60 +- .../RepoDb/Operations/DbRepository/Query.cs | 238 ++- .../Operations/DbRepository/QueryAll.cs | 54 +- .../Operations/DbRepository/QueryMultiple.cs | 1512 +++++++++++------ .../RepoDb/Operations/DbRepository/Sum.cs | 280 ++- .../RepoDb/Operations/DbRepository/SumAll.cs | 60 +- .../Operations/DbRepository/Truncate.cs | 42 +- .../RepoDb/Operations/DbRepository/Update.cs | 190 ++- .../Operations/DbRepository/UpdateAll.cs | 54 + RepoDb.Core/RepoDb/TraceKeys.cs | 10 + 74 files changed, 9439 insertions(+), 3258 deletions(-) diff --git a/RepoDb.Core/RepoDb/Extensions/DbConnectionExtension.cs b/RepoDb.Core/RepoDb/Extensions/DbConnectionExtension.cs index 206974b65..ec1d1bcec 100644 --- a/RepoDb.Core/RepoDb/Extensions/DbConnectionExtension.cs +++ b/RepoDb.Core/RepoDb/Extensions/DbConnectionExtension.cs @@ -106,7 +106,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -173,9 +173,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get>(cacheKey, false); + var item = cache.Get>(cacheKey, false); if (item != null) { return item.Value; @@ -200,22 +200,22 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) // Trace var sessionId = Guid.NewGuid(); - // Before Execution - if (trace != null) - { - var cancellableTraceLog = new CancellableTraceLog(sessionId, commandText, param, null); - trace.BeforeAverageAll(cancellableTraceLog); - if (cancellableTraceLog.IsCancelled) - { - if (cancellableTraceLog.IsThrowException) - { - throw new CancelledExecutionException(commandText); - } - return default; - } - commandText = (cancellableTraceLog.Statement ?? commandText); - param = (cancellableTraceLog.Parameter ?? param); - } + // TODO: Before Execution + //if (trace != null) + //{ + // var cancellableTraceLog = new CancellableTraceLog(sessionId, commandText, param, null); + // trace.BeforeAverageAll(cancellableTraceLog); + // if (cancellableTraceLog.IsCancelled) + // { + // if (cancellableTraceLog.IsThrowException) + // { + // throw new CancelledExecutionException(commandText); + // } + // return default; + // } + // commandText = (cancellableTraceLog.Statement ?? commandText); + // param = (cancellableTraceLog.Parameter ?? param); + //} // Result var result = (IEnumerable)null; @@ -226,15 +226,15 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) result = DataReader.ToEnumerable(reader, dbFields, connection.GetDbSetting()).AsList(); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - cache?.Add(cacheKey, (IEnumerable)result, cacheItemExpiration.GetValueOrDefault(), false); + cache.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); } } - // After Execution - trace?.AfterBatchQuery(new TraceLog(sessionId, commandText, param, result, - DateTime.UtcNow.Subtract(beforeExecutionTime))); + // TODO: After Execution + //trace?.AfterBatchQuery(new TraceLog(sessionId, commandText, param, result, + // DateTime.UtcNow.Subtract(beforeExecutionTime))); // Set the output parameters SetOutputParameters(param); @@ -263,7 +263,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -335,9 +335,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync>(cacheKey, false, cancellationToken); + var item = await cache.GetAsync>(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -369,9 +369,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) .ToListAsync(cancellationToken); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - await cache?.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); + await cache.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); } } @@ -403,7 +403,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -471,9 +471,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get>(cacheKey, false); + var item = cache.Get>(cacheKey, false); if (item != null) { return item.Value; @@ -551,9 +551,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get>(cacheKey, false); + var item = cache.Get>(cacheKey, false); if (item != null) { return item.Value; @@ -576,9 +576,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) skipCommandArrayParametersCheck: skipCommandArrayParametersCheck).WithType(); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - cache?.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); + cache.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); } // Set the output parameters @@ -621,9 +621,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get>(cacheKey, false); + var item = cache.Get>(cacheKey, false); if (item != null) { return item.Value; @@ -653,9 +653,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) result = DataReader.ToEnumerable(reader, dbFields, connection.GetDbSetting()).AsList(); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - cache?.Add(cacheKey, (IEnumerable)result, cacheItemExpiration.GetValueOrDefault(), false); + cache.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); } } @@ -687,7 +687,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -760,9 +760,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync>(cacheKey, false, cancellationToken); + var item = await cache.GetAsync>(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -844,9 +844,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync>(cacheKey, false, cancellationToken); + var item = await cache.GetAsync>(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -870,9 +870,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) skipCommandArrayParametersCheck: skipCommandArrayParametersCheck)).WithType(); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - await cache?.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); + await cache.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); } // Set the output parameters @@ -917,9 +917,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck = true) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync>(cacheKey, false, cancellationToken); + var item = await cache.GetAsync>(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -951,9 +951,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) .ToListAsync(cancellationToken); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - await cache?.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); + await cache.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); } } @@ -983,7 +983,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1090,7 +1090,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1200,7 +1200,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// , , and an enumerable of objects. /// /// The command type to be used. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1307,7 +1307,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// , , and an enumerable of objects. /// /// The command type to be used. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1420,7 +1420,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// , , and an enumerable of objects. /// /// The command type to be used. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1508,7 +1508,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// , , and an enumerable of objects. /// /// The command type to be used. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1607,7 +1607,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1661,7 +1661,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1719,7 +1719,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1788,9 +1788,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get(cacheKey, false); + var item = cache.Get(cacheKey, false); if (item != null) { return item.Value; @@ -1810,9 +1810,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) var result = Converter.ToType(command.ExecuteScalar()); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - cache?.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); + cache.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); } // Set the output parameters @@ -1843,7 +1843,7 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) /// This will only work if the 'cache' argument is set. /// /// The expiration in minutes of the cache item. - /// The key to the trace to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1917,9 +1917,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) bool skipCommandArrayParametersCheck) { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync(cacheKey, false, cancellationToken); + var item = await cache.GetAsync(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -1940,9 +1940,9 @@ public static IDbConnection EnsureOpen(this IDbConnection connection) var result = Converter.ToType(await command.ExecuteScalarAsync(cancellationToken)); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - await cache?.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); + await cache.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); } // Set the output parameters diff --git a/RepoDb.Core/RepoDb/Interfaces/ITrace.cs b/RepoDb.Core/RepoDb/Interfaces/ITrace.cs index 7498dc053..ee2e8f469 100644 --- a/RepoDb.Core/RepoDb/Interfaces/ITrace.cs +++ b/RepoDb.Core/RepoDb/Interfaces/ITrace.cs @@ -24,7 +24,7 @@ public interface ITrace /// /// The type of the result. /// The trace log object referenced by the execution. - void AfterExcecution(ResultTraceLog log); + void AfterExecution(ResultTraceLog log); #endregion diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Average.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Average.cs index 0ba6aad1e..f92a96cb5 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Average.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Average.cs @@ -17,17 +17,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -36,17 +39,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -55,16 +61,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -74,17 +83,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -93,17 +105,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -112,17 +127,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -131,17 +149,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -150,16 +171,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -169,17 +193,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -188,17 +215,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -207,17 +237,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -226,17 +259,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -245,16 +281,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -264,17 +303,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -283,17 +325,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -302,17 +347,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -321,17 +369,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -340,16 +391,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -359,17 +413,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -378,17 +435,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null) { return DbRepository.Average(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -401,19 +461,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -423,19 +486,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -445,19 +511,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -467,19 +536,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -489,19 +561,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -511,19 +586,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -533,19 +611,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -555,19 +636,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -577,19 +661,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -599,19 +686,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -621,19 +711,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -643,19 +736,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -665,19 +761,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -687,19 +786,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -709,19 +811,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -731,19 +836,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -753,19 +861,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -775,19 +886,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -797,19 +911,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -819,19 +936,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Average, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/AverageAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/AverageAll.cs index b47d955b7..6eee04d24 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/AverageAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/AverageAll.cs @@ -15,15 +15,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object AverageAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null) { return DbRepository.AverageAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -31,15 +34,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public object AverageAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null) { return DbRepository.AverageAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,15 +54,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult AverageAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null) { return DbRepository.AverageAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -65,15 +74,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The average value of the target field. public TResult AverageAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null) { return DbRepository.AverageAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -85,17 +97,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -104,17 +119,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -124,17 +142,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -144,17 +165,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be averaged. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public Task AverageAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.AverageAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.AverageAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/BatchQuery.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/BatchQuery.cs index deb55793a..0a6874322 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/BatchQuery.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/BatchQuery.cs @@ -20,7 +20,8 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, int page, @@ -28,7 +29,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable orderBy, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(tableName: tableName, page: page, @@ -36,7 +38,8 @@ public abstract partial class BaseRepository : IDisposab orderBy: orderBy, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -49,7 +52,8 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, int page, @@ -58,7 +62,8 @@ public abstract partial class BaseRepository : IDisposab object where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(tableName: tableName, page: page, @@ -67,7 +72,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -80,7 +86,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, int page, @@ -89,7 +96,8 @@ public abstract partial class BaseRepository : IDisposab Expression> where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(tableName: tableName, page: page, @@ -98,7 +106,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -111,7 +120,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, int page, @@ -120,7 +130,8 @@ public abstract partial class BaseRepository : IDisposab QueryField where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(tableName: tableName, page: page, @@ -129,7 +140,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -142,7 +154,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, int page, @@ -151,7 +164,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(tableName: tableName, page: page, @@ -160,7 +174,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -173,7 +188,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, int page, @@ -182,7 +198,8 @@ public abstract partial class BaseRepository : IDisposab QueryGroup where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(tableName: tableName, page: page, @@ -191,7 +208,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -202,21 +220,24 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, int rowsPerBatch, IEnumerable orderBy, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(page: page, rowsPerBatch: rowsPerBatch, orderBy: orderBy, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -228,7 +249,8 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, int rowsPerBatch, @@ -236,7 +258,8 @@ public abstract partial class BaseRepository : IDisposab object where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(where: where, page: page, @@ -244,7 +267,8 @@ public abstract partial class BaseRepository : IDisposab orderBy: orderBy, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -256,14 +280,16 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, int rowsPerBatch, IEnumerable orderBy, Expression> where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(page: page, rowsPerBatch: rowsPerBatch, @@ -271,7 +297,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -283,7 +310,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, int rowsPerBatch, @@ -291,7 +319,8 @@ public abstract partial class BaseRepository : IDisposab QueryField where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(page: page, rowsPerBatch: rowsPerBatch, @@ -299,7 +328,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -311,7 +341,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, int rowsPerBatch, @@ -319,7 +350,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(page: page, rowsPerBatch: rowsPerBatch, @@ -327,7 +359,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -339,7 +372,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, int rowsPerBatch, @@ -347,7 +381,8 @@ public abstract partial class BaseRepository : IDisposab QueryGroup where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null) { return DbRepository.BatchQuery(page: page, rowsPerBatch: rowsPerBatch, @@ -355,7 +390,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -371,7 +407,8 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(string tableName, @@ -380,7 +417,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable orderBy, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(tableName: tableName, @@ -389,7 +427,8 @@ public abstract partial class BaseRepository : IDisposab orderBy: orderBy, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -403,7 +442,8 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(string tableName, @@ -413,7 +453,8 @@ public abstract partial class BaseRepository : IDisposab object where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(tableName: tableName, @@ -423,7 +464,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -437,7 +479,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(string tableName, @@ -447,7 +490,8 @@ public abstract partial class BaseRepository : IDisposab Expression> where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(tableName: tableName, @@ -457,7 +501,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -471,7 +516,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(string tableName, @@ -481,7 +527,8 @@ public abstract partial class BaseRepository : IDisposab QueryField where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(tableName: tableName, @@ -491,7 +538,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -505,7 +553,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(string tableName, @@ -515,7 +564,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(tableName: tableName, @@ -525,7 +575,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -539,7 +590,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(string tableName, @@ -549,7 +601,8 @@ public abstract partial class BaseRepository : IDisposab QueryGroup where = null, string hints = null, IEnumerable fields = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(tableName: tableName, @@ -559,7 +612,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -571,7 +625,8 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(int page, @@ -579,7 +634,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable orderBy, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(page: page, @@ -587,7 +643,8 @@ public abstract partial class BaseRepository : IDisposab orderBy: orderBy, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -600,7 +657,8 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(int page, @@ -609,7 +667,8 @@ public abstract partial class BaseRepository : IDisposab object where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(page: page, @@ -618,7 +677,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -631,7 +691,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(int page, @@ -640,7 +701,8 @@ public abstract partial class BaseRepository : IDisposab Expression> where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(page: page, @@ -649,7 +711,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -662,7 +725,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(int page, @@ -671,7 +735,8 @@ public abstract partial class BaseRepository : IDisposab QueryField where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(page: page, @@ -680,7 +745,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -693,7 +759,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(int page, @@ -702,7 +769,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(page: page, @@ -711,7 +779,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -724,7 +793,8 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> BatchQueryAsync(int page, @@ -733,7 +803,8 @@ public abstract partial class BaseRepository : IDisposab QueryGroup where = null, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.BatchQuery, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.BatchQueryAsync(page: page, @@ -742,7 +813,8 @@ public abstract partial class BaseRepository : IDisposab where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Count.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Count.cs index 41f14a5fb..77f1fb745 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Count.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Count.cs @@ -16,15 +16,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null) { return DbRepository.Count(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -32,15 +35,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null) { return DbRepository.Count(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,14 +54,17 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null) { return DbRepository.Count(where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -64,15 +73,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null) { return DbRepository.Count(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -80,15 +92,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null) { return DbRepository.Count(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -100,17 +115,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public Task CountAsync(object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.CountAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -119,17 +137,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public Task CountAsync(Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.CountAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -138,17 +159,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public Task CountAsync(QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.CountAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -157,17 +181,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public Task CountAsync(IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.CountAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -176,17 +203,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public Task CountAsync(QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Count, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.CountAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/CountAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/CountAll.cs index 5d841b6b6..a22c00561 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/CountAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/CountAll.cs @@ -13,13 +13,16 @@ public abstract partial class BaseRepository : IDisposab /// Count the number of rows from the table. /// /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long CountAll(string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.CountAll, + IDbTransaction transaction = null) { return DbRepository.CountAll(hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -30,15 +33,18 @@ public abstract partial class BaseRepository : IDisposab /// Count the number of rows from the table in an asynchronous way. /// /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public Task CountAllAsync(string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.CountAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.CountAllAsync(hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Delete.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Delete.cs index a797c32ce..305731c1b 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Delete.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Delete.cs @@ -16,15 +16,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The data entity object to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(TEntity entity, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(entity: entity, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -33,15 +36,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the expression or the key value. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(TWhat what, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(what: what, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -49,15 +55,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(object what, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(what: what, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -65,15 +74,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(Expression> where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -81,15 +93,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(QueryField where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -97,15 +112,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(IEnumerable where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -113,15 +131,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(QueryGroup where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null) { return DbRepository.Delete(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -133,17 +154,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The data entity object to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(TEntity entity, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(entity: entity, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -153,17 +177,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the expression or the key value. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(TWhat what, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(what: what, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -172,17 +199,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(object what, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(what: what, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -191,17 +221,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(Expression> where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -210,17 +243,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(QueryField where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -229,17 +265,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(IEnumerable where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -248,17 +287,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAsync(QueryGroup where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Delete, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/DeleteAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/DeleteAll.cs index 937cc4182..6d6d6d55b 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/DeleteAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/DeleteAll.cs @@ -15,15 +15,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The list of data entity objects to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(IEnumerable entities, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null) { return DbRepository.DeleteAll(entities: entities, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -32,15 +35,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the key column. /// The list of the keys to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(IEnumerable keys, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null) { return DbRepository.DeleteAll(keys: keys, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,28 +54,34 @@ public abstract partial class BaseRepository : IDisposab /// /// The list of the keys to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(IEnumerable keys, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null) { return DbRepository.DeleteAll(keys: keys, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// /// Delete all the rows from the table. /// /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null) { return DbRepository.DeleteAll(hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -81,17 +93,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The list of data entity objects to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAllAsync(IEnumerable entities, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAllAsync(entities: entities, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -101,17 +116,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the key column. /// The list of the keys to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAllAsync(IEnumerable keys, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAllAsync(keys: keys, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -120,17 +138,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The list of the keys to be deleted. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAllAsync(IEnumerable keys, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAllAsync(keys: keys, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -138,15 +159,18 @@ public abstract partial class BaseRepository : IDisposab /// Delete all the rows from the table in an asynchronous way. /// /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public Task DeleteAllAsync(string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.DeleteAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.DeleteAllAsync(hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Exists.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Exists.cs index 861e7bf7c..87b77eada 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Exists.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Exists.cs @@ -16,15 +16,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(object what = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null) { return DbRepository.Exists(what: what, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -32,15 +35,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(Expression> where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null) { return DbRepository.Exists(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,14 +54,17 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(QueryField where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null) { return DbRepository.Exists(where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -64,15 +73,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(IEnumerable where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null) { return DbRepository.Exists(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -80,15 +92,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(QueryGroup where, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null) { return DbRepository.Exists(where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -100,17 +115,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public Task ExistsAsync(object what, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.ExistsAsync(what: what, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -120,17 +138,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the expression or the key value. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public Task ExistsAsync(TWhat what, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.ExistsAsync(what: what, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -139,17 +160,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public Task ExistsAsync(Expression> where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.ExistsAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -158,17 +182,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public Task ExistsAsync(QueryField where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.ExistsAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -177,17 +204,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public Task ExistsAsync(IEnumerable where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.ExistsAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -196,17 +226,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public Task ExistsAsync(QueryGroup where, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Exists, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.ExistsAsync(where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Insert.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Insert.cs index 8940682d0..4740cb6f2 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Insert.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Insert.cs @@ -16,17 +16,20 @@ public abstract partial class BaseRepository : IDisposab /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Insert(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Insert, + IDbTransaction transaction = null) { return DbRepository.Insert(entity: entity, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -36,17 +39,20 @@ public abstract partial class BaseRepository : IDisposab /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Insert(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Insert, + IDbTransaction transaction = null) { return DbRepository.Insert(entity: entity, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -59,19 +65,22 @@ public abstract partial class BaseRepository : IDisposab /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public Task InsertAsync(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Insert, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.InsertAsync(entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -82,19 +91,22 @@ public abstract partial class BaseRepository : IDisposab /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public Task InsertAsync(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Insert, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.InsertAsync(entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/InsertAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/InsertAll.cs index fadb28baf..c6809b1b1 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/InsertAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/InsertAll.cs @@ -17,19 +17,22 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of inserted rows in the table. public int InsertAll(IEnumerable entities, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.InsertAll, + IDbTransaction transaction = null) { return DbRepository.InsertAll(entities: entities, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -43,6 +46,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of inserted rows in the table. @@ -50,14 +54,16 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.InsertAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.InsertAllAsync(entities: entities, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Max.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Max.cs index 2e713f9f7..047685049 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Max.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Max.cs @@ -17,17 +17,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -36,17 +39,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -55,16 +61,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -74,17 +83,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -93,17 +105,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -112,17 +127,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -131,17 +149,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -150,16 +171,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -169,17 +193,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -188,17 +215,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -207,17 +237,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -226,17 +259,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -245,16 +281,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -264,17 +303,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -283,17 +325,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -302,17 +347,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -321,17 +369,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -340,16 +391,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -359,17 +413,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -378,17 +435,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null) { return DbRepository.Max(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -401,19 +461,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -423,19 +486,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -445,19 +511,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -467,19 +536,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -489,19 +561,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -511,19 +586,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -533,19 +611,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -555,19 +636,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -577,19 +661,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -599,19 +686,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -621,19 +711,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -643,19 +736,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -665,19 +761,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -687,19 +786,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -709,19 +811,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -731,19 +836,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -753,19 +861,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -775,19 +886,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -797,19 +911,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -819,19 +936,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Max, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/MaxAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/MaxAll.cs index 76e3e7e8e..a6b1d030e 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/MaxAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/MaxAll.cs @@ -15,15 +15,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object MaxAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null) { return DbRepository.MaxAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -31,15 +34,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public object MaxAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null) { return DbRepository.MaxAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,15 +54,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult MaxAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null) { return DbRepository.MaxAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -65,15 +74,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The max value of the target field. public TResult MaxAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null) { return DbRepository.MaxAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -85,17 +97,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -104,17 +119,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -124,17 +142,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -144,17 +165,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be maximized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public Task MaxAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MaxAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MaxAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Merge.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Merge.cs index 65ebeccf6..a6a2933c2 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Merge.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Merge.cs @@ -17,17 +17,20 @@ public abstract partial class BaseRepository : IDisposab /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -37,19 +40,22 @@ public abstract partial class BaseRepository : IDisposab /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, Field qualifier, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, qualifier: qualifier, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -59,19 +65,22 @@ public abstract partial class BaseRepository : IDisposab /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, IEnumerable qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -81,19 +90,22 @@ public abstract partial class BaseRepository : IDisposab /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, Expression> qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -103,17 +115,20 @@ public abstract partial class BaseRepository : IDisposab /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -124,19 +139,22 @@ public abstract partial class BaseRepository : IDisposab /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, Field qualifier, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, qualifier: qualifier, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -147,19 +165,22 @@ public abstract partial class BaseRepository : IDisposab /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, IEnumerable qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -170,19 +191,22 @@ public abstract partial class BaseRepository : IDisposab /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, Expression> qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null) { return DbRepository.Merge(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -195,19 +219,22 @@ public abstract partial class BaseRepository : IDisposab /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public Task MergeAsync(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -218,6 +245,7 @@ public abstract partial class BaseRepository : IDisposab /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -225,14 +253,16 @@ public abstract partial class BaseRepository : IDisposab Field qualifier, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, qualifier: qualifier, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -243,6 +273,7 @@ public abstract partial class BaseRepository : IDisposab /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -250,14 +281,16 @@ public abstract partial class BaseRepository : IDisposab IEnumerable qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -268,21 +301,24 @@ public abstract partial class BaseRepository : IDisposab /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public Task MergeAsync(TEntity entity, Expression> qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -293,19 +329,22 @@ public abstract partial class BaseRepository : IDisposab /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public Task MergeAsync(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -317,6 +356,7 @@ public abstract partial class BaseRepository : IDisposab /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -324,14 +364,16 @@ public abstract partial class BaseRepository : IDisposab Field qualifier, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, qualifier: qualifier, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -343,6 +385,7 @@ public abstract partial class BaseRepository : IDisposab /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -350,14 +393,16 @@ public abstract partial class BaseRepository : IDisposab IEnumerable qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -369,21 +414,24 @@ public abstract partial class BaseRepository : IDisposab /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public Task MergeAsync(TEntity entity, Expression> qualifiers, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Merge, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAsync(entity: entity, qualifiers: qualifiers, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/MergeAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/MergeAll.cs index 4ca39b0ea..b434cb873 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/MergeAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/MergeAll.cs @@ -18,19 +18,22 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(IEnumerable entities, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MergeAll, + IDbTransaction transaction = null) { return DbRepository.MergeAll(entities: entities, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -41,21 +44,24 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(IEnumerable entities, IEnumerable qualifiers, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MergeAll, + IDbTransaction transaction = null) { return DbRepository.MergeAll(entities: entities, qualifiers: qualifiers, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -66,6 +72,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(IEnumerable entities, @@ -73,14 +80,16 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MergeAll, + IDbTransaction transaction = null) { return DbRepository.MergeAll(entities: entities, qualifiers: qualifiers, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -94,6 +103,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -101,14 +111,16 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MergeAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAllAsync(entities: entities, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -120,6 +132,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -128,7 +141,8 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MergeAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAllAsync(entities: entities, @@ -136,7 +150,8 @@ public abstract partial class BaseRepository : IDisposab batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -148,7 +163,8 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. public Task MergeAllAsync(IEnumerable entities, @@ -156,7 +172,8 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MergeAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MergeAllAsync(entities: entities, @@ -164,7 +181,8 @@ public abstract partial class BaseRepository : IDisposab batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Min.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Min.cs index 4cf421430..586a0f9df 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Min.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Min.cs @@ -17,17 +17,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -36,17 +39,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -55,16 +61,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -74,17 +83,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -93,17 +105,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -112,17 +127,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -131,17 +149,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -150,16 +171,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -169,17 +193,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -188,17 +215,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -207,17 +237,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -226,17 +259,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -245,16 +281,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -264,17 +303,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -283,17 +325,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -302,17 +347,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -321,17 +369,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -340,16 +391,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -359,17 +413,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -378,17 +435,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null) { return DbRepository.Min(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -401,19 +461,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -423,19 +486,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -445,19 +511,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -467,19 +536,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -489,19 +561,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -511,19 +586,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -533,19 +611,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -555,19 +636,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -577,19 +661,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -599,19 +686,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -621,19 +711,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -643,19 +736,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -665,19 +761,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -687,19 +786,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -709,19 +811,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -731,19 +836,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -753,19 +861,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -775,19 +886,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -797,19 +911,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -819,19 +936,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Min, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/MinAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/MinAll.cs index 2c7db5f10..2b82d0a43 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/MinAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/MinAll.cs @@ -15,15 +15,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object MinAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null) { return DbRepository.MinAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -31,15 +34,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public object MinAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null) { return DbRepository.MinAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,15 +54,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult MinAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null) { return DbRepository.MinAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -65,15 +74,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The min value of the target field. public TResult MinAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null) { return DbRepository.MinAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -85,17 +97,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -104,17 +119,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -124,17 +142,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -144,17 +165,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be minimized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public Task MinAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.MinAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.MinAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Query.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Query.cs index 04021aca8..c62ea02a1 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Query.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Query.cs @@ -21,7 +21,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, object what, @@ -30,7 +31,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(tableName: tableName, what: what, @@ -39,7 +41,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -53,7 +56,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, TWhat what, @@ -62,7 +66,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(tableName: tableName, what: what, @@ -71,7 +76,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -84,7 +90,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, Expression> where, @@ -93,7 +100,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(tableName: tableName, where: where, @@ -102,7 +110,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -115,7 +124,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, QueryField where, @@ -124,7 +134,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(tableName: tableName, where: where, @@ -133,7 +144,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -146,7 +158,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, IEnumerable where, @@ -155,7 +168,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(tableName: tableName, where: where, @@ -164,7 +178,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -177,7 +192,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, QueryGroup where, @@ -186,7 +202,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(tableName: tableName, where: where, @@ -195,7 +212,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -207,7 +225,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(object what, IEnumerable fields = null, @@ -215,7 +234,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(what: what, fields: fields, @@ -223,7 +243,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -236,7 +257,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(TWhat what, IEnumerable fields = null, @@ -244,7 +266,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(what: what, fields: fields, @@ -252,7 +275,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -264,7 +288,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(Expression> where, IEnumerable fields = null, @@ -272,7 +297,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(where: where, fields: fields, @@ -280,7 +306,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -292,7 +319,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(QueryField where, IEnumerable fields = null, @@ -300,7 +328,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(where: where, fields: fields, @@ -308,7 +337,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -320,7 +350,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(IEnumerable where, IEnumerable fields = null, @@ -328,7 +359,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(where: where, fields: fields, @@ -336,7 +368,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -348,7 +381,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(QueryGroup where, IEnumerable fields = null, @@ -356,7 +390,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null) { return DbRepository.Query(where: where, fields: fields, @@ -364,7 +399,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -381,7 +417,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(string tableName, @@ -391,7 +428,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(tableName: tableName, @@ -401,7 +439,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -416,7 +455,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(string tableName, @@ -426,7 +466,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(tableName: tableName, @@ -436,7 +477,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -450,7 +492,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(string tableName, @@ -460,7 +503,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(tableName: tableName, @@ -470,7 +514,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -484,7 +529,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(string tableName, @@ -494,7 +540,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(tableName: tableName, @@ -504,7 +551,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -518,7 +566,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(string tableName, @@ -528,7 +577,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(tableName: tableName, @@ -538,7 +588,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -552,7 +603,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(string tableName, @@ -562,7 +614,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(tableName: tableName, @@ -572,7 +625,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -585,7 +639,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(object what, @@ -594,7 +649,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(what: what, @@ -603,7 +659,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -617,7 +674,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(TWhat what, @@ -626,7 +684,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(what: what, @@ -635,7 +694,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -648,7 +708,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(Expression> where, @@ -657,7 +718,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(where: where, @@ -666,7 +728,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -679,7 +742,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(QueryField where, @@ -688,7 +752,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(where: where, @@ -697,7 +762,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -710,7 +776,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(IEnumerable where, @@ -719,7 +786,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(where: where, @@ -728,7 +796,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -741,7 +810,8 @@ public abstract partial class BaseRepository : IDisposab /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAsync(QueryGroup where, @@ -750,7 +820,8 @@ public abstract partial class BaseRepository : IDisposab int? top = 0, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Query, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAsync(where: where, @@ -759,7 +830,8 @@ public abstract partial class BaseRepository : IDisposab top: top, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/QueryAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/QueryAll.cs index de129ad69..9fa6a45f9 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/QueryAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/QueryAll.cs @@ -18,21 +18,24 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable QueryAll(string tableName, IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.QueryAll, + IDbTransaction transaction = null) { return DbRepository.QueryAll(tableName: tableName, fields: fields, orderBy: orderBy, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -42,19 +45,22 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable QueryAll(IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, string cacheKey = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.QueryAll, + IDbTransaction transaction = null) { return DbRepository.QueryAll(fields: fields, orderBy: orderBy, hints: hints, cacheKey: cacheKey, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -69,7 +75,8 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAllAsync(string tableName, @@ -77,7 +84,8 @@ public abstract partial class BaseRepository : IDisposab IEnumerable orderBy = null, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.QueryAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAllAsync(tableName: tableName, @@ -85,7 +93,8 @@ public abstract partial class BaseRepository : IDisposab orderBy: orderBy, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -96,21 +105,24 @@ public abstract partial class BaseRepository : IDisposab /// The order definition of the fields to be used. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public Task> QueryAllAsync(IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, string cacheKey = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.QueryAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.QueryAllAsync(fields: fields, orderBy: orderBy, hints: hints, cacheKey: cacheKey, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Sum.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Sum.cs index 4bc27af8b..7c733bd03 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Sum.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Sum.cs @@ -17,17 +17,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -36,17 +39,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -55,16 +61,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -74,17 +83,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -93,17 +105,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -112,17 +127,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -131,17 +149,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -150,16 +171,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -169,17 +193,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -188,17 +215,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -207,17 +237,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -226,17 +259,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -245,16 +281,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -264,17 +303,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -283,17 +325,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -302,17 +347,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -321,17 +369,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -340,16 +391,19 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, hints: hints); } @@ -359,17 +413,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -378,17 +435,20 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null) { return DbRepository.Sum(field: field, where: where, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -401,19 +461,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -423,19 +486,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -445,19 +511,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -467,19 +536,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -489,19 +561,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -511,19 +586,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -533,19 +611,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -555,19 +636,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -577,19 +661,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -599,19 +686,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -621,19 +711,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -643,19 +736,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -665,19 +761,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -687,19 +786,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -709,19 +811,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Field field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -731,19 +836,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, object where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -753,19 +861,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, Expression> where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -775,19 +886,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, QueryField where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -797,19 +911,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, IEnumerable where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -819,19 +936,22 @@ public abstract partial class BaseRepository : IDisposab /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAsync(Expression> field, QueryGroup where = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Sum, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAsync(field: field, where: where, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/SumAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/SumAll.cs index 2b7b1392d..ca4de50e0 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/SumAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/SumAll.cs @@ -15,15 +15,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object SumAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null) { return DbRepository.SumAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -31,15 +34,18 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public object SumAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null) { return DbRepository.SumAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -48,15 +54,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult SumAll(Field field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null) { return DbRepository.SumAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -65,15 +74,18 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The sum value of the target field. public TResult SumAll(Expression> field, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null) { return DbRepository.SumAll(field: field, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -85,17 +97,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -104,17 +119,20 @@ public abstract partial class BaseRepository : IDisposab /// /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -124,17 +142,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAllAsync(Field field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -144,17 +165,20 @@ public abstract partial class BaseRepository : IDisposab /// The type of the result. /// The field to be summarized. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public Task SumAllAsync(Expression> field, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.SumAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.SumAllAsync(field: field, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Truncate.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Truncate.cs index 164c49eec..f7dfe6d74 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Truncate.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Truncate.cs @@ -12,20 +12,24 @@ public abstract partial class BaseRepository : IDisposab /// /// Truncates a table from the database. /// + /// The tracing key to be used. /// The number of rows affected. - public int Truncate() + public int Truncate(string traceKey = TraceKeys.Truncate) { - return DbRepository.Truncate(); + return DbRepository.Truncate(traceKey: traceKey); } /// /// Truncates a table from the database. /// - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of rows affected. - public int Truncate(IDbTransaction transaction = null) + public int Truncate(string traceKey = TraceKeys.Truncate, + IDbTransaction transaction = null) { - return DbRepository.Truncate(transaction: transaction); + return DbRepository.Truncate(traceKey: traceKey, + transaction: transaction); } #endregion @@ -35,8 +39,9 @@ public int Truncate(IDbTransaction transaction = null) /// /// Truncates a table from the database in an asynchronous way. /// + /// The tracing key to be used. /// The number of rows affected. - public Task TruncateAsync() + public Task TruncateAsync(string traceKey = TraceKeys.Truncate) { return DbRepository.TruncateAsync(transaction: null, cancellationToken: CancellationToken.None); @@ -45,23 +50,29 @@ public Task TruncateAsync() /// /// Truncates a table from the database in an asynchronous way. /// + /// The tracing key to be used. /// The object to be used during the asynchronous operation. /// The number of rows affected. - public Task TruncateAsync(CancellationToken cancellationToken = default) + public Task TruncateAsync(string traceKey = TraceKeys.Truncate, + CancellationToken cancellationToken = default) { - return DbRepository.TruncateAsync(cancellationToken: cancellationToken); + return DbRepository.TruncateAsync(traceKey: traceKey, + cancellationToken: cancellationToken); } /// /// Truncates a table from the database in an asynchronous way. /// - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows affected. - public Task TruncateAsync(IDbTransaction transaction = null, + public Task TruncateAsync(string traceKey = TraceKeys.Truncate, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { - return DbRepository.TruncateAsync(transaction: transaction, + return DbRepository.TruncateAsync(traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/Update.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/Update.cs index 4591122ac..a9bca2acd 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/Update.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/Update.cs @@ -17,17 +17,20 @@ public abstract partial class BaseRepository : IDisposab /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -38,19 +41,22 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression or the primary/identity key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, TWhat what, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, what: what, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -60,19 +66,22 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression or the primary/identity key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, object what, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, what: what, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -82,19 +91,22 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, Expression> where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -104,19 +116,22 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, QueryField where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -126,19 +141,22 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, IEnumerable where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -148,19 +166,22 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, QueryGroup where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null) { return DbRepository.Update(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -173,19 +194,22 @@ public abstract partial class BaseRepository : IDisposab /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. public Task UpdateAsync(TEntity entity, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -197,21 +221,24 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression or the primary/identity key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. public Task UpdateAsync(TEntity entity, TWhat what, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, what: what, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -222,6 +249,7 @@ public abstract partial class BaseRepository : IDisposab /// The dynamic expression or the primary/identity key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -229,14 +257,16 @@ public abstract partial class BaseRepository : IDisposab object what, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, what: what, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -247,6 +277,7 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -254,14 +285,16 @@ public abstract partial class BaseRepository : IDisposab Expression> where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -272,6 +305,7 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -279,14 +313,16 @@ public abstract partial class BaseRepository : IDisposab QueryField where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -297,6 +333,7 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -304,14 +341,16 @@ public abstract partial class BaseRepository : IDisposab IEnumerable where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -322,6 +361,7 @@ public abstract partial class BaseRepository : IDisposab /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -329,14 +369,16 @@ public abstract partial class BaseRepository : IDisposab QueryGroup where, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.Update, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAsync(entity: entity, where: where, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/BaseRepository/UpdateAll.cs b/RepoDb.Core/RepoDb/Operations/BaseRepository/UpdateAll.cs index 3534b896d..c7f0b3d45 100644 --- a/RepoDb.Core/RepoDb/Operations/BaseRepository/UpdateAll.cs +++ b/RepoDb.Core/RepoDb/Operations/BaseRepository/UpdateAll.cs @@ -18,19 +18,22 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(IEnumerable entities, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.UpdateAll, + IDbTransaction transaction = null) { return DbRepository.UpdateAll(entities: entities, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -41,21 +44,24 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(IEnumerable entities, IEnumerable qualifiers, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.UpdateAll, + IDbTransaction transaction = null) { return DbRepository.UpdateAll(entities: entities, qualifiers: qualifiers, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } /// @@ -66,6 +72,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(IEnumerable entities, @@ -73,14 +80,16 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null) + string traceKey = TraceKeys.UpdateAll, + IDbTransaction transaction = null) { return DbRepository.UpdateAll(entities: entities, qualifiers: qualifiers, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction); + traceKey: traceKey, + transaction: transaction); } #endregion @@ -94,6 +103,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -101,14 +111,16 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.UpdateAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAllAsync(entities: entities, batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -120,7 +132,8 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. public Task UpdateAllAsync(IEnumerable entities, @@ -128,7 +141,8 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.UpdateAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAllAsync(entities: entities, @@ -136,7 +150,8 @@ public abstract partial class BaseRepository : IDisposab batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } @@ -148,6 +163,7 @@ public abstract partial class BaseRepository : IDisposab /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -156,7 +172,8 @@ public abstract partial class BaseRepository : IDisposab int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, - IDbTransaction transaction = null, + string traceKey = TraceKeys.UpdateAll, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return DbRepository.UpdateAllAsync(entities: entities, @@ -164,7 +181,8 @@ public abstract partial class BaseRepository : IDisposab batchSize: batchSize, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cancellationToken: cancellationToken); } diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Average.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Average.cs index 3c457c9da..b8849f174 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Average.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Average.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -27,7 +26,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -37,6 +37,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -47,6 +48,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -60,7 +62,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -70,6 +73,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -80,6 +84,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -93,7 +98,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -103,6 +109,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -113,6 +120,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -126,7 +134,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -136,6 +145,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -146,6 +156,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -159,7 +170,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -169,6 +181,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -179,6 +192,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -192,7 +206,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -202,6 +217,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -212,6 +228,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -225,7 +242,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -235,6 +253,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -245,6 +264,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -258,7 +278,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -268,6 +289,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -278,6 +300,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -324,7 +350,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -334,6 +361,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -344,6 +372,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -357,7 +386,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -367,6 +397,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -393,6 +424,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -406,7 +438,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -416,6 +449,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -426,6 +460,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -440,7 +475,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -450,6 +486,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -460,6 +497,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -474,7 +512,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -484,6 +523,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -494,6 +534,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -508,7 +549,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -518,6 +560,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -528,6 +571,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -542,7 +586,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -552,6 +597,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -562,6 +608,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -576,7 +623,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -586,6 +634,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -596,6 +645,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -610,7 +660,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -620,6 +671,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -630,6 +682,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -644,7 +697,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -654,6 +708,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -664,6 +719,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -678,7 +734,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -688,6 +745,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -698,6 +756,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -712,7 +771,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -722,6 +782,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -732,6 +793,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -746,7 +808,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -756,6 +819,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -782,6 +846,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -798,7 +863,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -809,6 +875,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -820,6 +887,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -834,7 +902,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -845,6 +914,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -856,6 +926,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -870,7 +941,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -881,6 +953,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -892,6 +965,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -906,7 +980,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -917,6 +992,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -928,6 +1004,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -942,7 +1019,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -953,6 +1031,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -964,6 +1043,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -978,7 +1058,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -989,6 +1070,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1000,6 +1082,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1014,7 +1097,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1025,6 +1109,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1036,6 +1121,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1050,7 +1136,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1061,6 +1148,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1072,6 +1160,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1086,7 +1175,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1097,6 +1187,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1108,6 +1199,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1122,7 +1214,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1133,6 +1226,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1144,6 +1238,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1158,7 +1253,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1168,6 +1264,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1196,6 +1293,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1210,7 +1308,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1221,6 +1320,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1232,6 +1332,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1247,7 +1348,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1258,6 +1360,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1269,6 +1372,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1284,7 +1388,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1295,6 +1400,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1306,6 +1412,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1321,7 +1428,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1332,6 +1440,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1343,6 +1452,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1358,7 +1468,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1369,6 +1480,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1380,6 +1492,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1395,7 +1508,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1406,6 +1520,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1417,6 +1532,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1432,7 +1548,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1443,6 +1560,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1454,6 +1572,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1469,7 +1588,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1480,6 +1600,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1491,6 +1612,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1506,7 +1628,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1517,6 +1640,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1528,6 +1652,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1543,7 +1668,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1554,6 +1680,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1565,6 +1692,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1580,7 +1708,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1590,6 +1719,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1618,6 +1748,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1635,7 +1766,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1646,6 +1778,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1656,6 +1789,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1669,7 +1803,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1680,6 +1815,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1690,6 +1826,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1703,7 +1840,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1714,6 +1852,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1724,6 +1863,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1737,7 +1877,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1748,6 +1889,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1758,6 +1900,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1771,7 +1914,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1782,6 +1926,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1807,6 +1952,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -1820,7 +1966,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1831,6 +1978,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1841,6 +1989,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1855,7 +2004,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1866,6 +2016,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1876,6 +2027,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1890,7 +2042,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1901,6 +2054,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1911,6 +2065,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1925,7 +2080,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1936,6 +2092,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1946,6 +2103,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1960,7 +2118,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1971,6 +2130,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1996,6 +2156,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -2012,7 +2173,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2024,6 +2186,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2035,6 +2198,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2049,7 +2213,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2061,6 +2226,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2072,6 +2238,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2086,7 +2253,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2098,6 +2266,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2109,6 +2278,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2123,7 +2293,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2135,6 +2306,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2146,6 +2318,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2160,7 +2333,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2172,6 +2346,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2198,6 +2373,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2212,7 +2388,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2224,6 +2401,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2235,6 +2413,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2250,7 +2429,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2262,6 +2442,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2273,6 +2454,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2288,7 +2470,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2300,6 +2483,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2311,6 +2495,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2326,7 +2511,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2338,6 +2524,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2349,6 +2536,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2364,7 +2552,8 @@ public static partial class DbConnectionExtension /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2376,6 +2565,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2402,6 +2592,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2417,7 +2608,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The average value of the target field. @@ -2425,6 +2617,7 @@ public static partial class DbConnectionExtension AverageRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null) { @@ -2440,8 +2633,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -2460,7 +2655,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -2469,6 +2665,7 @@ public static partial class DbConnectionExtension AverageRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -2485,8 +2682,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/AverageAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/AverageAll.cs index 34d1dd052..9ecb79f6c 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/AverageAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/AverageAll.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Interfaces; +using RepoDb.Interfaces; using RepoDb.Requests; using System; using System.Data; @@ -24,7 +23,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -33,6 +33,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -42,6 +43,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -54,7 +56,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -63,6 +66,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -72,6 +76,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -85,7 +90,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -94,6 +100,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -103,6 +110,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -116,7 +124,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -125,6 +134,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -134,6 +144,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -147,7 +158,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -156,6 +168,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -175,6 +188,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -190,7 +204,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -200,6 +215,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -210,6 +226,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -223,7 +240,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -233,6 +251,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -243,6 +262,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -257,7 +277,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -267,6 +288,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -277,6 +299,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -325,7 +351,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -335,6 +362,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -355,6 +383,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -371,7 +400,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -381,6 +411,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -390,6 +421,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -403,7 +435,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -413,6 +446,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -422,6 +456,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -435,7 +470,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -445,6 +481,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -462,6 +499,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -477,7 +515,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -488,6 +527,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -498,6 +538,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -512,7 +553,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -523,6 +565,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -533,6 +576,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -547,7 +591,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be averaged. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -558,6 +603,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -576,6 +622,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -592,7 +639,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The average value of the target field. @@ -600,6 +648,7 @@ public static partial class DbConnectionExtension AverageAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null) { @@ -615,8 +664,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -636,7 +687,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -645,6 +697,7 @@ public static partial class DbConnectionExtension AverageAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -652,7 +705,7 @@ public static partial class DbConnectionExtension // Variables var commandType = CommandType.Text; var commandText = CommandTextCache.GetAverageAllText(request); - + // Actual Execution var result = await ExecuteScalarAsyncInternal(connection: connection, commandText: commandText, @@ -661,8 +714,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/BatchQuery.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/BatchQuery.cs index ab039c1dc..7ffee57c0 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/BatchQuery.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/BatchQuery.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -29,7 +28,8 @@ public static partial class DbConnectionExtension /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -42,6 +42,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -56,6 +57,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -73,7 +75,8 @@ public static partial class DbConnectionExtension /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -87,6 +90,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -101,6 +105,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -118,7 +123,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -132,6 +138,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -146,6 +153,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -163,7 +171,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -177,6 +186,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -191,6 +201,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -208,7 +219,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -222,6 +234,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -236,6 +249,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -253,7 +267,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -267,6 +282,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -281,6 +297,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -296,7 +313,8 @@ public static partial class DbConnectionExtension /// The order definition of the fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -308,6 +326,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -322,6 +341,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -338,7 +358,8 @@ public static partial class DbConnectionExtension /// The dynamic expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -351,6 +372,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -365,6 +387,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -381,7 +404,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -394,6 +418,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -408,6 +433,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -424,7 +450,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -437,6 +464,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -451,6 +479,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -467,7 +496,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -480,6 +510,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -494,6 +525,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -510,7 +542,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -523,6 +556,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -537,6 +571,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -554,7 +589,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -568,6 +604,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -587,6 +624,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -607,7 +645,8 @@ public static partial class DbConnectionExtension /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -621,6 +660,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -636,6 +676,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -654,7 +695,8 @@ public static partial class DbConnectionExtension /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -669,6 +711,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -684,6 +727,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -702,7 +746,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -717,6 +762,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -732,6 +778,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -750,7 +797,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -765,6 +813,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -780,6 +829,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -798,7 +848,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -813,6 +864,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -828,6 +880,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -846,7 +899,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -861,6 +915,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -876,6 +931,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -892,7 +948,8 @@ public static partial class DbConnectionExtension /// The order definition of the fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -905,6 +962,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -920,6 +978,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -937,7 +996,8 @@ public static partial class DbConnectionExtension /// The dynamic expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -951,6 +1011,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -966,6 +1027,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -983,7 +1045,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -997,6 +1060,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1012,6 +1076,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1029,7 +1094,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1043,6 +1109,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1058,6 +1125,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1075,7 +1143,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1089,6 +1158,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1104,6 +1174,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1121,7 +1192,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1135,6 +1207,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1150,6 +1223,7 @@ public static partial class DbConnectionExtension orderBy: orderBy, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1168,7 +1242,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1183,6 +1258,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1203,6 +1279,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1223,7 +1300,8 @@ public static partial class DbConnectionExtension /// The order definition of the fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1236,6 +1314,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1249,6 +1328,7 @@ public static partial class DbConnectionExtension where: (QueryGroup)null, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1265,7 +1345,8 @@ public static partial class DbConnectionExtension /// The dynamic expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1279,6 +1360,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1292,6 +1374,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1308,7 +1391,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1322,6 +1406,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1335,6 +1420,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1351,7 +1437,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1365,6 +1452,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1378,6 +1466,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1394,7 +1483,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1408,6 +1498,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1421,6 +1512,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1440,7 +1532,8 @@ public static partial class DbConnectionExtension /// The order definition of the fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1454,6 +1547,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1468,6 +1562,7 @@ public static partial class DbConnectionExtension where: (QueryGroup)null, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1485,7 +1580,8 @@ public static partial class DbConnectionExtension /// The dynamic expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1500,6 +1596,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1514,6 +1611,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1531,7 +1629,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1546,6 +1645,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1560,6 +1660,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1577,7 +1678,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1592,6 +1694,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1606,6 +1709,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1623,7 +1727,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1638,6 +1743,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1652,6 +1758,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1674,7 +1781,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1688,6 +1796,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1722,8 +1831,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, tableName: tableName, skipCommandArrayParametersCheck: true); @@ -1747,7 +1858,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1762,6 +1874,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1797,8 +1910,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, tableName: tableName, skipCommandArrayParametersCheck: true); diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Count.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Count.cs index 300aef931..e93474898 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Count.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Count.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -25,7 +24,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -34,6 +34,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -43,6 +44,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -55,7 +57,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -64,6 +67,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -73,6 +77,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -85,7 +90,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -94,6 +100,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -103,6 +110,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -115,7 +123,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -124,6 +133,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -133,6 +143,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -145,7 +156,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -154,6 +166,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -163,6 +176,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -175,7 +189,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -184,6 +199,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -209,6 +225,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -224,7 +241,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -234,6 +252,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -244,6 +263,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -257,7 +277,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -267,6 +288,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -277,6 +299,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -290,7 +313,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -300,6 +324,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -310,6 +335,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -323,7 +349,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -333,6 +360,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -343,6 +371,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -356,7 +385,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -366,6 +396,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -376,6 +407,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -389,7 +421,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -398,6 +431,7 @@ public static partial class DbConnectionExtension internal static Task CountAsyncInternal(this IDbConnection connection, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -425,6 +459,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -441,7 +476,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -451,6 +487,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -460,6 +497,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -472,7 +510,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -482,6 +521,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -491,6 +531,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -503,7 +544,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -513,6 +555,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -522,6 +565,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -534,7 +578,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -544,6 +589,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -553,6 +599,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -565,7 +612,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -575,6 +623,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -599,6 +648,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -614,7 +664,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -625,6 +676,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -635,6 +687,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -648,7 +701,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -659,6 +713,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -669,6 +724,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -682,7 +738,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -693,6 +750,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -703,6 +761,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -716,7 +775,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -727,6 +787,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -737,6 +798,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -750,7 +812,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -761,6 +824,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -786,6 +850,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -801,7 +866,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// An integer value that holds the number of rows from the table. @@ -809,6 +875,7 @@ public static partial class DbConnectionExtension CountRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null) { @@ -824,8 +891,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -844,7 +913,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -853,6 +923,7 @@ public static partial class DbConnectionExtension CountRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -869,8 +940,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/CountAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/CountAll.cs index 9ecb0e84b..3e96e8e72 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/CountAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/CountAll.cs @@ -1,7 +1,5 @@ -using RepoDb.Exceptions; -using RepoDb.Interfaces; +using RepoDb.Interfaces; using RepoDb.Requests; -using System; using System.Data; using System.Threading; using System.Threading.Tasks; @@ -21,7 +19,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -29,6 +28,7 @@ public static partial class DbConnectionExtension public static long CountAll(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -37,6 +37,7 @@ public static partial class DbConnectionExtension return CountAllInternal(connection: connection, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -48,7 +49,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -56,6 +58,7 @@ public static partial class DbConnectionExtension internal static long CountAllInternal(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -74,6 +77,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -88,7 +92,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -97,6 +102,7 @@ public static partial class DbConnectionExtension public static Task CountAllAsync(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -106,6 +112,7 @@ public static partial class DbConnectionExtension return CountAllAsyncInternal(connection: connection, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -118,7 +125,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -127,6 +135,7 @@ public static partial class DbConnectionExtension internal static Task CountAllAsyncInternal(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -146,6 +155,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -161,7 +171,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -170,6 +181,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -178,6 +190,7 @@ public static partial class DbConnectionExtension tableName: tableName, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -189,7 +202,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -198,6 +212,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -215,6 +230,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -229,7 +245,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -239,6 +256,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -248,6 +266,7 @@ public static partial class DbConnectionExtension tableName: tableName, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -260,7 +279,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -270,6 +290,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -288,6 +309,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -303,7 +325,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// An integer value that holds the number of rows from the table. @@ -311,6 +334,7 @@ public static partial class DbConnectionExtension CountAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null) { @@ -326,8 +350,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -346,7 +372,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -355,6 +382,7 @@ public static partial class DbConnectionExtension CountAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -371,8 +399,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Delete.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Delete.cs index 0af2a6f1c..4036c6879 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Delete.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Delete.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -25,7 +24,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The data entity object to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -34,6 +34,7 @@ public static partial class DbConnectionExtension TEntity entity, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -44,6 +45,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(key, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -57,7 +59,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -66,6 +69,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -75,6 +79,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(typeof(TEntity), connection, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -87,7 +92,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -96,6 +102,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -105,6 +112,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(typeof(TEntity), connection, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -117,7 +125,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -126,6 +135,7 @@ public static partial class DbConnectionExtension Expression> where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -135,6 +145,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -147,7 +158,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -156,6 +168,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -165,6 +178,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -177,7 +191,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -186,6 +201,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -195,6 +211,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -207,7 +224,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -216,6 +234,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -225,6 +244,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -237,7 +257,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -246,6 +267,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -271,6 +293,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -286,7 +309,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The data entity object to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -296,6 +320,7 @@ public static partial class DbConnectionExtension TEntity entity, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -307,6 +332,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(key, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -321,7 +347,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -331,6 +358,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -341,6 +369,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(typeof(TEntity), connection, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -354,7 +383,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -364,6 +394,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -374,6 +405,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(typeof(TEntity), connection, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -387,7 +419,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -397,6 +430,7 @@ public static partial class DbConnectionExtension Expression> where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -407,6 +441,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -420,7 +455,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -430,6 +466,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -440,6 +477,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -453,7 +491,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -463,6 +502,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -473,6 +513,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -486,7 +527,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -496,6 +538,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -506,6 +549,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -519,7 +563,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -529,6 +574,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -555,6 +601,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -572,7 +619,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -582,6 +630,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -591,6 +640,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(connection, tableName, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -603,7 +653,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -613,6 +664,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -622,6 +674,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(connection, tableName, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -634,7 +687,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -644,6 +698,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -653,6 +708,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -665,7 +721,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -675,6 +732,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -684,6 +742,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -696,7 +755,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -706,6 +766,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -715,6 +776,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -727,7 +789,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -737,6 +800,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -761,6 +825,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -777,7 +842,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -788,6 +854,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -798,6 +865,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(connection, tableName, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -811,7 +879,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -822,6 +891,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -832,6 +902,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(connection, tableName, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -845,7 +916,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -855,6 +927,7 @@ public static partial class DbConnectionExtension string tableName, QueryField where, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -866,6 +939,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -879,7 +953,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -890,6 +965,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -900,6 +976,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -913,7 +990,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -924,6 +1002,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -934,6 +1013,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -947,7 +1027,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -958,6 +1039,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -983,6 +1065,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -998,7 +1081,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The number of rows that has been deleted from the table. @@ -1006,20 +1090,23 @@ public static partial class DbConnectionExtension DeleteRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null) { // Variables var commandType = CommandType.Text; var commandText = CommandTextCache.GetDeleteText(request); - + // Actual Execution var result = ExecuteNonQueryInternal(connection: connection, commandText: commandText, param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -1038,7 +1125,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -1047,6 +1135,7 @@ public static partial class DbConnectionExtension DeleteRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -1054,14 +1143,16 @@ public static partial class DbConnectionExtension // Variables var commandType = CommandType.Text; var commandText = CommandTextCache.GetDeleteText(request); - + // Actual Execution var result = await ExecuteNonQueryAsyncInternal(connection: connection, commandText: commandText, param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/DeleteAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/DeleteAll.cs index 35745a9a7..48058d56d 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/DeleteAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/DeleteAll.cs @@ -1,9 +1,7 @@ using RepoDb.Enumerations; -using RepoDb.Exceptions; using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; -using System; using System.Collections.Generic; using System.Data; using System.Linq; @@ -35,7 +33,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of data entity objects to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -45,6 +44,7 @@ public static partial class DbConnectionExtension IEnumerable entities, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -58,6 +58,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -72,7 +73,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -82,6 +84,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -92,6 +95,7 @@ public static partial class DbConnectionExtension keys: keys?.WithType(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -105,7 +109,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -115,6 +120,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -125,6 +131,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -137,7 +144,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The list of data entity objects to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -146,6 +154,7 @@ public static partial class DbConnectionExtension IEnumerable entities, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -159,6 +168,7 @@ public static partial class DbConnectionExtension keys: keys?.WithType(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -172,7 +182,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -181,6 +192,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -191,6 +203,7 @@ public static partial class DbConnectionExtension keys: keys?.WithType(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -203,7 +216,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -212,6 +226,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -222,6 +237,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -233,7 +249,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -241,6 +258,7 @@ public static partial class DbConnectionExtension public static int DeleteAll(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -249,6 +267,7 @@ public static partial class DbConnectionExtension return DeleteAllInternal(connection: connection, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -260,7 +279,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -268,6 +288,7 @@ public static partial class DbConnectionExtension internal static int DeleteAllInternal(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -284,6 +305,7 @@ public static partial class DbConnectionExtension return DeleteAllInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -300,7 +322,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of data entity objects to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -311,6 +334,7 @@ public static partial class DbConnectionExtension IEnumerable entities, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -325,6 +349,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -340,7 +365,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -351,6 +377,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -362,6 +389,7 @@ public static partial class DbConnectionExtension keys: keys?.WithType(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -376,7 +404,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -387,6 +416,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -398,6 +428,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -411,7 +442,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The list of data entity objects to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -421,6 +453,7 @@ public static partial class DbConnectionExtension IEnumerable entities, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -435,6 +468,7 @@ public static partial class DbConnectionExtension keys: keys?.WithType(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -449,7 +483,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -459,6 +494,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -470,6 +506,7 @@ public static partial class DbConnectionExtension keys: keys?.WithType(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -483,7 +520,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -493,6 +531,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -504,6 +543,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -516,7 +556,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -525,6 +566,7 @@ public static partial class DbConnectionExtension public static Task DeleteAllAsync(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -534,6 +576,7 @@ public static partial class DbConnectionExtension return DeleteAllAsyncInternal(connection: connection, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -546,7 +589,8 @@ public static partial class DbConnectionExtension /// The type of the data entity. /// The connection object to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -555,6 +599,7 @@ public static partial class DbConnectionExtension internal static Task DeleteAllAsyncInternal(this IDbConnection connection, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -572,6 +617,7 @@ public static partial class DbConnectionExtension return DeleteAllAsyncInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -588,7 +634,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -598,6 +645,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -607,6 +655,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -618,7 +667,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -627,6 +677,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -635,6 +686,7 @@ public static partial class DbConnectionExtension tableName: tableName, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -646,7 +698,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -655,6 +708,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -670,6 +724,7 @@ public static partial class DbConnectionExtension return DeleteAllInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -681,7 +736,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -691,6 +747,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -726,6 +783,7 @@ public static partial class DbConnectionExtension where: new QueryGroup(field), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -763,7 +821,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -774,6 +833,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -784,6 +844,7 @@ public static partial class DbConnectionExtension keys: keys, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -796,7 +857,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -806,6 +868,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -815,6 +878,7 @@ public static partial class DbConnectionExtension tableName: tableName, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -827,7 +891,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The name of the target table. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -837,6 +902,7 @@ public static partial class DbConnectionExtension string tableName, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -853,6 +919,7 @@ public static partial class DbConnectionExtension return DeleteAllAsyncInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -865,7 +932,8 @@ public static partial class DbConnectionExtension /// The name of the target table. /// The list of the keys to be deleted. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -876,6 +944,7 @@ public static partial class DbConnectionExtension IEnumerable keys, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -912,6 +981,7 @@ public static partial class DbConnectionExtension where: new QueryGroup(field), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -948,13 +1018,15 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The actual object. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The number of rows that has been deleted from the table. internal static int DeleteAllInternalBase(this IDbConnection connection, DeleteAllRequest request, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null) { @@ -968,7 +1040,9 @@ public static partial class DbConnectionExtension param: null, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -986,7 +1060,8 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The actual object. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -994,6 +1069,7 @@ public static partial class DbConnectionExtension internal static async Task DeleteAllAsyncInternalBase(this IDbConnection connection, DeleteAllRequest request, int? commandTimeout = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -1008,7 +1084,9 @@ public static partial class DbConnectionExtension param: null, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Exists.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Exists.cs index da28728a7..a9acc9902 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Exists.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Exists.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -25,7 +24,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -34,6 +34,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -43,6 +44,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(typeof(TEntity), connection, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -56,7 +58,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -65,6 +68,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -74,6 +78,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(typeof(TEntity), connection, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -86,7 +91,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -95,6 +101,7 @@ public static partial class DbConnectionExtension Expression> where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -104,6 +111,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -116,7 +124,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -125,6 +134,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -134,6 +144,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -146,7 +157,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -155,6 +167,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -164,6 +177,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -176,7 +190,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -185,6 +200,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -194,6 +210,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -206,7 +223,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -215,6 +233,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -240,6 +259,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -255,7 +275,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -265,6 +286,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -275,6 +297,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(typeof(TEntity), connection, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -289,7 +312,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -299,6 +323,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -309,6 +334,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(typeof(TEntity), connection, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -322,7 +348,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -332,6 +359,7 @@ public static partial class DbConnectionExtension Expression> where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -342,6 +370,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -355,7 +384,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -365,6 +395,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -375,6 +406,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -388,7 +420,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -398,6 +431,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -408,6 +442,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -421,7 +456,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -431,6 +467,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -441,6 +478,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -454,7 +492,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -463,6 +502,7 @@ public static partial class DbConnectionExtension internal static Task ExistsAsyncInternal(this IDbConnection connection, QueryGroup where, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -490,6 +530,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -507,7 +548,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -517,6 +559,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -526,6 +569,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(connection, tableName, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -538,7 +582,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -548,6 +593,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -557,6 +603,7 @@ public static partial class DbConnectionExtension where: WhatToQueryGroup(connection, tableName, what, transaction), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -569,7 +616,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -579,6 +627,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -588,6 +637,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -600,7 +650,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -610,6 +661,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -619,6 +671,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -631,7 +684,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -641,6 +695,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -650,6 +705,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -662,7 +718,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -672,6 +729,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -696,6 +754,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -712,7 +771,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -723,6 +783,7 @@ public static partial class DbConnectionExtension TWhat what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -733,6 +794,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(connection, tableName, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -746,7 +808,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -757,6 +820,7 @@ public static partial class DbConnectionExtension object what, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -767,6 +831,7 @@ public static partial class DbConnectionExtension where: await WhatToQueryGroupAsync(connection, tableName, what, transaction, cancellationToken), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -780,7 +845,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -791,6 +857,7 @@ public static partial class DbConnectionExtension QueryField where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -801,6 +868,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -814,7 +882,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -825,6 +894,7 @@ public static partial class DbConnectionExtension IEnumerable where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -835,6 +905,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -848,7 +919,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -859,6 +931,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -869,6 +942,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -882,7 +956,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -893,6 +968,7 @@ public static partial class DbConnectionExtension QueryGroup where, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -918,6 +994,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -933,7 +1010,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// A boolean value that indicates whether the rows are existing in the table. @@ -941,6 +1019,7 @@ public static partial class DbConnectionExtension ExistsRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null) { @@ -956,8 +1035,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -976,7 +1057,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -985,6 +1067,7 @@ public static partial class DbConnectionExtension ExistsRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -1001,8 +1084,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Insert.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Insert.cs index 1d8e27410..4af95fa2e 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Insert.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Insert.cs @@ -1,8 +1,6 @@ using RepoDb.Contexts.Providers; -using RepoDb.Exceptions; using RepoDb.Extensions; using RepoDb.Interfaces; -using System; using System.Collections.Generic; using System.Data; using System.Data.Common; @@ -27,7 +25,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -38,6 +37,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -49,6 +49,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -64,7 +65,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -75,6 +77,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -86,6 +89,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -99,7 +103,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -109,6 +114,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -120,6 +126,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -134,7 +141,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -144,6 +152,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -155,6 +164,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -170,7 +180,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -181,6 +192,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -194,6 +206,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -206,6 +219,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -225,7 +239,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -237,6 +252,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -249,6 +265,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -265,7 +282,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -277,6 +295,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -289,6 +308,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -303,7 +323,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -314,6 +335,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -326,6 +348,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -341,7 +364,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -352,6 +376,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -364,6 +389,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -380,7 +406,8 @@ public static partial class DbConnectionExtension /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -392,6 +419,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -406,6 +434,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -419,6 +448,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -438,7 +468,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -449,6 +480,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -459,6 +491,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -473,7 +506,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -484,6 +518,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -494,6 +529,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -512,7 +548,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -524,6 +561,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -535,6 +573,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -550,7 +589,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -562,6 +602,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -573,6 +614,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -593,7 +635,8 @@ public static partial class DbConnectionExtension /// The data entity or dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -604,6 +647,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -630,9 +674,13 @@ public static partial class DbConnectionExtension // Set the values context.ParametersSetterFunc(command, entity); + // TODO: Before Execution + // Actual Execution result = Converter.ToType(command.ExecuteScalar()); + // TODO: After Execution + // Set the return value if (result != null) { @@ -658,7 +706,8 @@ public static partial class DbConnectionExtension /// The data entity or dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -670,6 +719,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -698,9 +748,13 @@ public static partial class DbConnectionExtension // Set the values context.ParametersSetterFunc(command, entity); + // TODO: Before Execution + // Actual Execution result = Converter.ToType(await command.ExecuteScalarAsync(cancellationToken)); + // TODO: After Execution + // Set the return value if (result != null) { diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/InsertAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/InsertAll.cs index 15a38dcce..ebf482609 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/InsertAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/InsertAll.cs @@ -1,5 +1,4 @@ using RepoDb.Contexts.Providers; -using RepoDb.Exceptions; using RepoDb.Extensions; using RepoDb.Interfaces; using System; @@ -30,7 +29,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -42,6 +42,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -54,6 +55,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -68,7 +70,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -79,6 +82,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -91,6 +95,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -106,7 +111,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -118,6 +124,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -132,6 +139,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -145,6 +153,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -165,7 +174,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -178,6 +188,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -191,6 +202,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -206,7 +218,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -218,6 +231,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -231,6 +245,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -247,7 +262,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -260,6 +276,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -275,6 +292,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -289,6 +307,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -309,7 +328,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -321,6 +341,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -332,6 +353,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -350,7 +372,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -363,6 +386,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -375,6 +399,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -395,7 +420,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -407,6 +433,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -466,9 +493,13 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution var returnValue = Converter.DbNullToNull(command.ExecuteScalar()); + // TODO: After Execution + // Set the return value if (returnValue != null) { @@ -528,11 +559,17 @@ public static partial class DbConnectionExtension // Actual Execution if (context.IdentityPropertySetterFunc == null) { + // TODO: Before Execution + // No identity setters result += command.ExecuteNonQuery(); + + // TODO: After Execution } else { + // TODO: Before Execution + // Set the identity back using var reader = command.ExecuteReader(); @@ -550,6 +587,8 @@ public static partial class DbConnectionExtension position++; } while (reader.NextResult()); + + // TODO: After Execution } } } @@ -597,7 +636,8 @@ public static partial class DbConnectionExtension /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -610,6 +650,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -671,9 +712,13 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution var returnValue = Converter.DbNullToNull(await command.ExecuteScalarAsync(cancellationToken)); + // TODO: After Execution + // Set the return value if (returnValue != null) { @@ -734,11 +779,17 @@ public static partial class DbConnectionExtension // Actual Execution if (context.IdentityPropertySetterFunc == null) { + // TODO: Before Execution + // No identity setters result += await command.ExecuteNonQueryAsync(cancellationToken); + + // TODO: After Execution } else { + // TODO: Before Execution + // Set the identity back using var reader = await command.ExecuteReaderAsync(cancellationToken); @@ -757,6 +808,8 @@ public static partial class DbConnectionExtension position++; } while (await reader.NextResultAsync(cancellationToken)); + + // TODO: After Execution } } } diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Max.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Max.cs index a36b3fb14..c81e6da04 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Max.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Max.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -27,7 +26,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -37,6 +37,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -47,6 +48,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -60,7 +62,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -70,6 +73,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -80,6 +84,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -93,7 +98,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -103,6 +109,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -113,6 +120,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -126,7 +134,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -136,6 +145,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -146,6 +156,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -159,7 +170,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -169,6 +181,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -179,6 +192,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -192,7 +206,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -202,6 +217,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -212,6 +228,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -225,7 +242,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -235,6 +253,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -245,6 +264,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -258,7 +278,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -268,6 +289,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -278,6 +300,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -324,7 +350,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -334,6 +361,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -344,6 +372,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -357,7 +386,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -367,6 +397,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -393,6 +424,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -406,7 +438,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -416,6 +449,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -426,6 +460,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -440,7 +475,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -450,6 +486,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -460,6 +497,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -474,7 +512,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -484,6 +523,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -494,6 +534,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -508,7 +549,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -518,6 +560,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -528,6 +571,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -542,7 +586,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -552,6 +597,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -562,6 +608,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -576,7 +623,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -586,6 +634,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -596,6 +645,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -610,7 +660,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -620,6 +671,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -630,6 +682,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -644,7 +697,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -654,6 +708,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -664,6 +719,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -678,7 +734,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -688,6 +745,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -698,6 +756,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -712,7 +771,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -722,6 +782,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -732,6 +793,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -746,7 +808,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -756,6 +819,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -782,6 +846,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -798,7 +863,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -809,6 +875,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -820,6 +887,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -834,7 +902,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -845,6 +914,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -856,6 +926,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -870,7 +941,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -881,6 +953,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -892,6 +965,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -906,7 +980,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -917,6 +992,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -928,6 +1004,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -942,7 +1019,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -953,6 +1031,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -964,6 +1043,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -978,7 +1058,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -989,6 +1070,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1000,6 +1082,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1014,7 +1097,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1025,6 +1109,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1036,6 +1121,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1050,7 +1136,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1061,6 +1148,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1072,6 +1160,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1086,7 +1175,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1097,6 +1187,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1108,6 +1199,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1122,7 +1214,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1133,6 +1226,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1144,6 +1238,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1158,7 +1253,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1168,6 +1264,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1196,6 +1293,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1210,7 +1308,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1221,6 +1320,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1232,6 +1332,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1247,7 +1348,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1258,6 +1360,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1269,6 +1372,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1284,7 +1388,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1295,6 +1400,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1306,6 +1412,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1321,7 +1428,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1332,6 +1440,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1343,6 +1452,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1358,7 +1468,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1369,6 +1480,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1380,6 +1492,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1395,7 +1508,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1406,6 +1520,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1417,6 +1532,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1432,7 +1548,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1443,6 +1560,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1454,6 +1572,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1469,7 +1588,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1480,6 +1600,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1491,6 +1612,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1506,7 +1628,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1517,6 +1640,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1528,6 +1652,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1543,7 +1668,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1554,6 +1680,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1565,6 +1692,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1580,7 +1708,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1590,6 +1719,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1618,6 +1748,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1635,7 +1766,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1646,6 +1778,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1656,6 +1789,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1669,7 +1803,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1680,6 +1815,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1690,6 +1826,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1703,7 +1840,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1714,6 +1852,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1724,6 +1863,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1737,7 +1877,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1748,6 +1889,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1758,6 +1900,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1771,7 +1914,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1782,6 +1926,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1807,6 +1952,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -1820,7 +1966,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1831,6 +1978,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1841,6 +1989,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1855,7 +2004,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1866,6 +2016,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1876,6 +2027,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1890,7 +2042,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1901,6 +2054,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1911,6 +2065,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1925,7 +2080,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1936,6 +2092,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1946,6 +2103,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1960,7 +2118,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1971,6 +2130,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1996,6 +2156,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -2012,7 +2173,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2024,6 +2186,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2035,6 +2198,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2049,7 +2213,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2061,6 +2226,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2072,6 +2238,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2086,7 +2253,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2098,6 +2266,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2109,6 +2278,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2123,7 +2293,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2135,6 +2306,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2146,6 +2318,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2160,7 +2333,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2172,6 +2346,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2198,6 +2373,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2212,7 +2388,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2224,6 +2401,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2235,6 +2413,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2250,7 +2429,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2262,6 +2442,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2273,6 +2454,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2288,7 +2470,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2300,6 +2483,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2311,6 +2495,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2326,7 +2511,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2338,6 +2524,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2349,6 +2536,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2364,7 +2552,8 @@ public static partial class DbConnectionExtension /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2376,6 +2565,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2402,6 +2592,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2417,7 +2608,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The max value of the target field. @@ -2425,6 +2617,7 @@ public static partial class DbConnectionExtension MaxRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null) { @@ -2440,8 +2633,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -2460,7 +2655,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -2469,6 +2665,7 @@ public static partial class DbConnectionExtension MaxRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -2485,8 +2682,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/MaxAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/MaxAll.cs index ecb773660..6d423c4a9 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/MaxAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/MaxAll.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Interfaces; +using RepoDb.Interfaces; using RepoDb.Requests; using System; using System.Data; @@ -24,7 +23,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -33,6 +33,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -42,6 +43,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -54,7 +56,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -63,6 +66,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -72,6 +76,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -85,7 +90,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -94,6 +100,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -103,6 +110,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -116,7 +124,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -125,6 +134,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -134,6 +144,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -147,7 +158,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -156,6 +168,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -175,6 +188,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -190,7 +204,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -200,6 +215,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -210,6 +226,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -223,7 +240,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -233,6 +251,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -243,6 +262,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -257,7 +277,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -267,6 +288,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -277,6 +299,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -325,7 +351,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -335,6 +362,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -355,6 +383,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -371,7 +400,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -381,6 +411,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -390,6 +421,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -403,7 +435,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -413,6 +446,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -422,6 +456,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -435,7 +470,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -445,6 +481,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -462,6 +499,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -477,7 +515,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -488,6 +527,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -498,6 +538,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -512,7 +553,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -523,6 +565,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -533,6 +576,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -547,7 +591,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be maximized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -558,6 +603,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -576,6 +622,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -592,7 +639,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The max value of the target field. @@ -600,6 +648,7 @@ public static partial class DbConnectionExtension MaxAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null) { @@ -615,8 +664,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -636,7 +687,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -645,6 +697,7 @@ public static partial class DbConnectionExtension MaxAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -661,8 +714,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Merge.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Merge.cs index 1e2b4cb5b..8e3bc4752 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Merge.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Merge.cs @@ -29,7 +29,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The table hints to be used. /// The mapping list of objects to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -40,6 +41,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -52,6 +54,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -67,7 +70,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -79,6 +83,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -91,6 +96,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -106,7 +112,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -118,6 +125,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -130,6 +138,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -145,7 +154,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -157,6 +167,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -169,6 +180,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -184,7 +196,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -195,6 +208,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -207,6 +221,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -223,7 +238,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -235,6 +251,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -247,6 +264,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -263,7 +281,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -275,6 +294,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -287,6 +307,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -303,7 +324,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -315,6 +337,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -327,6 +350,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -340,7 +364,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -350,6 +375,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -362,6 +388,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -376,7 +403,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -387,6 +415,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -399,6 +428,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -413,7 +443,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -424,6 +455,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -436,6 +468,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -450,7 +483,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -461,6 +495,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -473,6 +508,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -487,7 +523,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -497,6 +534,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -509,6 +547,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -524,7 +563,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -535,6 +575,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -547,6 +588,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -562,7 +604,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -573,6 +616,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -585,6 +629,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -600,7 +645,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -611,6 +657,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -623,6 +670,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -639,7 +687,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -651,6 +700,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -671,6 +721,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -684,6 +735,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -700,6 +752,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -713,6 +766,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -733,7 +787,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -745,6 +800,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -758,6 +814,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -774,7 +831,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -787,6 +845,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -800,6 +859,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -816,7 +876,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -829,6 +890,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -842,6 +904,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -858,7 +921,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -871,6 +935,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -884,6 +949,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -900,7 +966,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -912,6 +979,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -925,6 +993,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -942,7 +1011,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -955,6 +1025,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -968,6 +1039,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -985,7 +1057,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -998,6 +1071,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1011,6 +1085,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1028,7 +1103,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1041,6 +1117,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1054,6 +1131,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1068,7 +1146,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1079,6 +1158,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1092,6 +1172,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1107,7 +1188,8 @@ public static partial class DbConnectionExtension /// The field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1119,6 +1201,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1132,6 +1215,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1147,7 +1231,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1159,6 +1244,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1172,6 +1258,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1187,7 +1274,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1199,6 +1287,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1212,6 +1301,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1227,7 +1317,8 @@ public static partial class DbConnectionExtension /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1238,6 +1329,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1251,6 +1343,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1267,7 +1360,8 @@ public static partial class DbConnectionExtension /// The field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1279,6 +1373,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1292,6 +1387,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1308,7 +1404,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1320,6 +1417,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1333,6 +1431,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1349,7 +1448,8 @@ public static partial class DbConnectionExtension /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1361,6 +1461,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1374,6 +1475,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1391,7 +1493,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1404,6 +1507,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1425,6 +1529,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1439,6 +1544,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1456,6 +1562,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1470,6 +1577,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1490,7 +1598,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1501,6 +1610,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1512,6 +1622,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1526,7 +1637,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1538,6 +1650,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1549,6 +1662,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1563,7 +1677,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1575,6 +1690,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1586,6 +1702,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1600,7 +1717,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1611,6 +1729,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1622,6 +1741,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1637,7 +1757,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1649,6 +1770,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1660,6 +1782,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1675,7 +1798,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1687,6 +1811,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1698,6 +1823,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1715,7 +1841,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1727,6 +1854,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1739,6 +1867,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1754,7 +1883,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1767,6 +1897,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1779,6 +1910,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1794,7 +1926,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1807,6 +1940,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1819,6 +1953,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1834,7 +1969,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1846,6 +1982,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1858,6 +1995,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1874,7 +2012,8 @@ public static partial class DbConnectionExtension /// The qualifier field to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1887,6 +2026,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1899,6 +2039,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1915,7 +2056,8 @@ public static partial class DbConnectionExtension /// The qualifier objects to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1928,6 +2070,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1940,6 +2083,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1961,7 +2105,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1973,6 +2118,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -2005,9 +2151,13 @@ public static partial class DbConnectionExtension // Set the values context.ParametersSetterFunc(command, entity); + // TODO: Before Execution + // Actual Execution result = Converter.ToType(command.ExecuteScalar()); + // TODO: After Execution + // Set the return value if (result != null) { @@ -2034,7 +2184,8 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2046,6 +2197,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -2115,6 +2267,7 @@ public static partial class DbConnectionExtension where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -2129,6 +2282,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -2161,6 +2315,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -2188,7 +2343,8 @@ public static partial class DbConnectionExtension /// The mapping list of objects to be used. /// The list of qualifier fields to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2201,6 +2357,7 @@ public static partial class DbConnectionExtension IEnumerable qualifiers = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2235,9 +2392,13 @@ public static partial class DbConnectionExtension // Set the values context.ParametersSetterFunc(command, entity); + // TODO: Before Execution + // Actual Execution result = Converter.ToType(await command.ExecuteScalarAsync(cancellationToken)); + // TODO: After Execution + // Set the return value if (result != null) { @@ -2264,7 +2425,8 @@ public static partial class DbConnectionExtension /// The mapping list of objects to be used. /// The list of qualifier fields to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2277,6 +2439,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2347,6 +2510,7 @@ public static partial class DbConnectionExtension where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2362,6 +2526,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2395,6 +2560,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/MergeAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/MergeAll.cs index 2c77f38a0..9ff94f165 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/MergeAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/MergeAll.cs @@ -31,7 +31,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -43,6 +44,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -56,6 +58,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -72,6 +75,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -85,6 +89,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -98,6 +103,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -114,6 +120,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -127,6 +134,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -140,6 +148,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -156,7 +165,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -169,6 +179,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -182,6 +193,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -196,7 +208,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -207,6 +220,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -220,6 +234,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -235,6 +250,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -247,6 +263,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -260,6 +277,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -275,6 +293,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -287,6 +306,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -300,6 +320,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -315,7 +336,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -327,6 +349,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -340,6 +363,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -356,6 +380,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -369,6 +394,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -398,6 +424,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -412,6 +439,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -428,6 +456,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -441,6 +470,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -462,7 +492,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -475,6 +506,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -489,6 +521,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -506,6 +539,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -520,6 +554,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -534,6 +569,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -551,6 +587,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -565,6 +602,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -579,6 +617,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -596,7 +635,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -610,6 +650,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -624,6 +665,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -639,7 +681,8 @@ public static partial class DbConnectionExtension /// The mapping list of objects to be used. /// The batch size of the merge operation. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -651,6 +694,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -665,6 +709,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -681,6 +726,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -694,6 +740,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -708,6 +755,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -724,6 +772,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -737,6 +786,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -751,6 +801,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -767,7 +818,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -780,6 +832,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -794,6 +847,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -811,6 +865,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -825,6 +880,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -855,6 +911,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -870,6 +927,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -887,6 +945,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -901,6 +960,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entities?.FirstOrDefault()), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -922,7 +982,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -934,6 +995,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -946,6 +1008,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -961,7 +1024,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -974,6 +1038,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -986,6 +1051,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1001,7 +1067,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1014,6 +1081,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1026,6 +1094,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1044,7 +1113,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1057,6 +1127,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1070,6 +1141,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1086,7 +1158,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1100,6 +1173,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1113,6 +1187,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1129,7 +1204,8 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1143,6 +1219,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1156,6 +1233,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1177,6 +1255,7 @@ public static partial class DbConnectionExtension /// The mapping list of objects to be used. /// The list of qualifier fields to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1190,6 +1269,7 @@ public static partial class DbConnectionExtension IEnumerable fields, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1252,9 +1332,13 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution var returnValue = Converter.DbNullToNull(command.ExecuteScalar()); + // TODO: After Execution + // Set the return value if (returnValue != null) { @@ -1317,14 +1401,22 @@ public static partial class DbConnectionExtension // Actual Execution if (context.IdentityPropertySetterFunc == null) { + // TODO: Before Execution + // No identity setters result += command.ExecuteNonQuery(); + + // TODO: After Execution } else { + // TODO: Before Execution + // Set the identity back using var reader = command.ExecuteReader(); + // TODO: After Execution + // Get the results var position = 0; do @@ -1386,6 +1478,7 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1398,6 +1491,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1465,6 +1559,7 @@ public static partial class DbConnectionExtension immutableFields, hints, commandTimeout, + traceKey: traceKey, transaction, trace, statementBuilder); @@ -1519,6 +1614,7 @@ public static partial class DbConnectionExtension /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1533,6 +1629,7 @@ public static partial class DbConnectionExtension IEnumerable fields, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1597,9 +1694,13 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution var returnValue = Converter.DbNullToNull(await command.ExecuteScalarAsync(cancellationToken)); + // TODO: After Execution + // Set the return value if (returnValue != null) { @@ -1663,14 +1764,22 @@ public static partial class DbConnectionExtension // Actual Execution if (context.IdentityPropertySetterFunc == null) { + // TODO: Before Execution + // No identity setters result += await command.ExecuteNonQueryAsync(cancellationToken); + + // TODO: After Execution } else { + // TODO: After Execution + // Set the identity back using var reader = await command.ExecuteReaderAsync(cancellationToken); + // TODO: Before Execution + // Get the results var position = 0; do @@ -1733,6 +1842,7 @@ public static partial class DbConnectionExtension /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1746,6 +1856,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1814,6 +1925,7 @@ public static partial class DbConnectionExtension immutableFields, hints, commandTimeout, + traceKey, transaction, trace, statementBuilder, diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Min.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Min.cs index da091430f..0be2cc5db 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Min.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Min.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -27,7 +26,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -37,6 +37,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -47,6 +48,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -60,7 +62,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -70,6 +73,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -80,6 +84,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -93,7 +98,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -103,6 +109,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -113,6 +120,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -126,7 +134,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -136,6 +145,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -146,6 +156,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -159,7 +170,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -169,6 +181,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -179,6 +192,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -192,7 +206,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -202,6 +217,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -212,6 +228,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -225,7 +242,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -235,6 +253,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -245,6 +264,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -258,7 +278,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -268,6 +289,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -278,6 +300,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -324,7 +350,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -334,6 +361,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -344,6 +372,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -357,7 +386,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -367,6 +397,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -393,6 +424,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -406,7 +438,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -416,6 +449,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -426,6 +460,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -440,7 +475,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -450,6 +486,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -460,6 +497,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -474,7 +512,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -484,6 +523,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -494,6 +534,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -508,7 +549,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -518,6 +560,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -528,6 +571,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -542,7 +586,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -552,6 +597,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -562,6 +608,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -576,7 +623,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -586,6 +634,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -596,6 +645,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -610,7 +660,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -620,6 +671,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -630,6 +682,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -644,7 +697,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -654,6 +708,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -664,6 +719,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -678,7 +734,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -688,6 +745,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -698,6 +756,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -712,7 +771,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -722,6 +782,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -732,6 +793,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -746,7 +808,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -756,6 +819,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -782,6 +846,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -798,7 +863,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -809,6 +875,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -820,6 +887,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -834,7 +902,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -845,6 +914,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -856,6 +926,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -870,7 +941,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -881,6 +953,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -892,6 +965,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -906,7 +980,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -917,6 +992,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -928,6 +1004,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -942,7 +1019,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -953,6 +1031,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -964,6 +1043,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -978,7 +1058,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -989,6 +1070,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1000,6 +1082,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1014,7 +1097,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1025,6 +1109,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1036,6 +1121,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1050,7 +1136,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1061,6 +1148,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1072,6 +1160,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1086,7 +1175,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1097,6 +1187,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1108,6 +1199,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1122,7 +1214,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1133,6 +1226,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1144,6 +1238,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1158,7 +1253,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1168,6 +1264,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1196,6 +1293,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1210,7 +1308,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1221,6 +1320,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1232,6 +1332,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1247,7 +1348,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1258,6 +1360,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1269,6 +1372,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1284,7 +1388,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1295,6 +1400,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1306,6 +1412,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1321,7 +1428,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1332,6 +1440,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1343,6 +1452,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1358,7 +1468,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1369,6 +1480,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1380,6 +1492,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1395,7 +1508,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1406,6 +1520,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1417,6 +1532,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1432,7 +1548,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1443,6 +1560,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1454,6 +1572,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1469,7 +1588,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1480,6 +1600,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1491,6 +1612,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1506,7 +1628,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1517,6 +1640,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1528,6 +1652,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1543,7 +1668,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1554,6 +1680,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1565,6 +1692,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1580,7 +1708,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1590,6 +1719,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1618,6 +1748,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1635,7 +1766,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1646,6 +1778,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1656,6 +1789,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1669,7 +1803,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1680,6 +1815,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1690,6 +1826,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1703,7 +1840,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1714,6 +1852,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1724,6 +1863,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1737,7 +1877,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1748,6 +1889,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1758,6 +1900,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1771,7 +1914,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1782,6 +1926,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1807,6 +1952,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -1820,7 +1966,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1831,6 +1978,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1841,6 +1989,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1855,7 +2004,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1866,6 +2016,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1876,6 +2027,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1890,7 +2042,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1901,6 +2054,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1911,6 +2065,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1925,7 +2080,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1936,6 +2092,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1946,6 +2103,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1960,7 +2118,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1971,6 +2130,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1996,6 +2156,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -2012,7 +2173,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2024,6 +2186,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2035,6 +2198,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2049,7 +2213,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2061,6 +2226,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2072,6 +2238,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2086,7 +2253,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2098,6 +2266,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2109,6 +2278,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2123,7 +2293,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2135,6 +2306,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2146,6 +2318,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2160,7 +2333,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2172,6 +2346,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2198,6 +2373,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2212,7 +2388,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2224,6 +2401,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2235,6 +2413,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2250,7 +2429,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2262,6 +2442,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2273,6 +2454,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2288,7 +2470,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2300,6 +2483,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2311,6 +2495,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2326,7 +2511,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2338,6 +2524,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2349,6 +2536,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2364,7 +2552,8 @@ public static partial class DbConnectionExtension /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2376,6 +2565,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2402,6 +2592,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2417,7 +2608,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The min value of the target field. @@ -2425,6 +2617,7 @@ public static partial class DbConnectionExtension MinRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null) { @@ -2440,8 +2633,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -2460,7 +2655,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -2469,6 +2665,7 @@ public static partial class DbConnectionExtension MinRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -2485,8 +2682,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/MinAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/MinAll.cs index f72bfb90a..a8bce5be3 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/MinAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/MinAll.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Interfaces; +using RepoDb.Interfaces; using RepoDb.Requests; using System; using System.Data; @@ -24,7 +23,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -33,6 +33,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -42,6 +43,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -54,7 +56,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -63,6 +66,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -72,6 +76,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -85,7 +90,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -94,6 +100,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -103,6 +110,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -116,7 +124,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -125,6 +134,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -134,6 +144,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -147,7 +158,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -156,6 +168,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -175,6 +188,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -190,7 +204,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -200,6 +215,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -210,6 +226,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -223,7 +240,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -233,6 +251,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -243,6 +262,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -257,7 +277,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -267,6 +288,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -277,6 +299,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -325,7 +351,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -335,6 +362,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -355,6 +383,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -371,7 +400,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -381,6 +411,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -390,6 +421,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -403,7 +435,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -413,6 +446,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -422,6 +456,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -435,7 +470,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -445,6 +481,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -462,6 +499,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -477,7 +515,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -488,6 +527,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -498,6 +538,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -512,7 +553,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -523,6 +565,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -533,6 +576,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -547,7 +591,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be minimized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -558,6 +603,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -576,6 +622,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -592,7 +639,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The min value of the target field. @@ -600,6 +648,7 @@ public static partial class DbConnectionExtension MinAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null) { @@ -615,8 +664,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -636,7 +687,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -645,6 +697,7 @@ public static partial class DbConnectionExtension MinAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -661,8 +714,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Query.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Query.cs index 97f2d0169..a5df5c9a2 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Query.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Query.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -31,7 +30,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -47,6 +47,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -63,6 +64,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -83,7 +85,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -99,6 +102,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -115,6 +119,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -134,7 +139,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -150,6 +156,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -166,6 +173,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -185,7 +193,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -201,6 +210,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -217,6 +227,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -236,7 +247,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -252,6 +264,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -268,6 +281,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -287,7 +301,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -303,6 +318,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -319,6 +335,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -337,7 +354,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -352,6 +370,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -368,6 +387,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -387,7 +407,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -402,6 +423,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -418,6 +440,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -436,7 +459,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -451,6 +475,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -467,6 +492,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -485,7 +511,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -500,6 +527,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -515,6 +543,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -533,7 +562,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -548,6 +578,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -564,6 +595,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -582,7 +614,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -597,6 +630,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -613,6 +647,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -632,7 +667,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -648,6 +684,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -669,6 +706,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -692,7 +730,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -709,6 +748,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -726,6 +766,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -747,7 +788,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -764,6 +806,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -781,6 +824,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -801,7 +845,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -818,6 +863,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -835,6 +881,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -855,7 +902,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -872,6 +920,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -889,6 +938,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -909,7 +959,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -926,6 +977,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -943,6 +995,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -963,7 +1016,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -980,6 +1034,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -997,6 +1052,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1016,7 +1072,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1032,6 +1089,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1049,6 +1107,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1069,7 +1128,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1085,6 +1145,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1102,6 +1163,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1121,7 +1183,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1137,6 +1200,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1154,6 +1218,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1173,7 +1238,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1189,6 +1255,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1206,6 +1273,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1225,7 +1293,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1241,6 +1310,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1258,6 +1328,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1277,7 +1348,8 @@ public static partial class DbConnectionExtension /// The number of rows to be returned. /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1293,6 +1365,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1310,6 +1383,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1330,7 +1404,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1347,6 +1422,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1369,6 +1445,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1393,7 +1470,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1409,6 +1487,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1424,6 +1503,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1442,7 +1522,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1458,6 +1539,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1473,6 +1555,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1491,7 +1574,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1507,6 +1591,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1522,6 +1607,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1540,7 +1626,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1556,6 +1643,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1571,6 +1659,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1589,7 +1678,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1605,6 +1695,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1620,6 +1711,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1638,7 +1730,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1654,6 +1747,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1669,6 +1763,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1692,7 +1787,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1709,6 +1805,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1725,6 +1822,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1744,7 +1842,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1761,6 +1860,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1777,6 +1877,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1796,7 +1897,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1813,6 +1915,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1829,6 +1932,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1848,7 +1952,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1865,6 +1970,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1881,6 +1987,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1900,7 +2007,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1917,6 +2025,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1933,6 +2042,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -1952,7 +2062,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -1969,6 +2080,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1985,6 +2097,7 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, trace: trace, @@ -2009,7 +2122,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -2025,6 +2139,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2032,9 +2147,9 @@ public static partial class DbConnectionExtension where TEntity : class { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get>(cacheKey, false); + var item = cache.Get>(cacheKey, false); if (item != null) { return item.Value; @@ -2069,15 +2184,17 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, tableName: tableName, skipCommandArrayParametersCheck: true); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - cache?.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); + cache.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); } // Result @@ -2101,7 +2218,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -2118,6 +2236,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.Query, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2126,9 +2245,9 @@ public static partial class DbConnectionExtension where TEntity : class { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync>(cacheKey, false, cancellationToken); + var item = await cache.GetAsync>(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -2148,7 +2267,7 @@ public static partial class DbConnectionExtension statementBuilder); var commandText = await CommandTextCache.GetQueryTextAsync(request, cancellationToken); var param = (object)null; - + // Converts to property mapped object if (where != null) { @@ -2163,16 +2282,18 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cancellationToken: cancellationToken, cache: null, + trace: trace, tableName: tableName, skipCommandArrayParametersCheck: true); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - await cache?.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); + await cache.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); } // Result diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/QueryAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/QueryAll.cs index db71aada0..279cdd901 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/QueryAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/QueryAll.cs @@ -1,8 +1,6 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; -using System; using System.Collections.Generic; using System.Data; using System.Threading; @@ -28,7 +26,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -42,6 +41,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -56,9 +56,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder); } @@ -72,7 +73,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -85,6 +87,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -99,9 +102,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder); } @@ -116,7 +120,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -130,6 +135,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -149,9 +155,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder); } @@ -170,7 +177,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -185,6 +193,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -200,9 +209,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -217,7 +227,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -231,6 +242,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -246,9 +258,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -264,7 +277,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -279,6 +293,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -299,9 +314,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -320,7 +336,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -334,6 +351,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -347,9 +365,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder); } @@ -363,7 +382,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -377,6 +397,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -390,9 +411,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder); } @@ -410,7 +432,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -425,6 +448,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -439,9 +463,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -456,7 +481,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -471,6 +497,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -485,9 +512,10 @@ public static partial class DbConnectionExtension cacheKey: cacheKey, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: cache, - trace: trace, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -507,7 +535,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -521,6 +550,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -528,9 +558,9 @@ public static partial class DbConnectionExtension where TEntity : class { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = cache?.Get>(cacheKey, false); + var item = cache.Get>(cacheKey, false); if (item != null) { return item.Value; @@ -557,15 +587,17 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, tableName: tableName, skipCommandArrayParametersCheck: true); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - cache?.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); + cache.Add(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false); } // Result @@ -587,7 +619,8 @@ public static partial class DbConnectionExtension /// The table hints to be used. /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -602,6 +635,7 @@ public static partial class DbConnectionExtension string cacheKey = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -610,9 +644,9 @@ public static partial class DbConnectionExtension where TEntity : class { // Get Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - var item = await cache?.GetAsync>(cacheKey, false, cancellationToken); + var item = await cache.GetAsync>(cacheKey, false, cancellationToken); if (item != null) { return item.Value; @@ -639,16 +673,18 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, tableName: tableName, skipCommandArrayParametersCheck: true); // Set Cache - if (cacheKey != null) + if (cache != null && cacheKey != null) { - await cache?.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); + await cache.AddAsync(cacheKey, result, cacheItemExpiration.GetValueOrDefault(), false, cancellationToken); } // Result diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/QueryMultiple.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/QueryMultiple.cs index 7d0318195..1c73a573e 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/QueryMultiple.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/QueryMultiple.cs @@ -41,6 +41,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -62,6 +63,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -84,9 +86,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -109,6 +112,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -130,6 +134,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -152,9 +157,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -177,6 +183,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -198,6 +205,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -220,9 +228,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -245,6 +254,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -266,6 +276,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -288,9 +299,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -313,6 +325,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -334,6 +347,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -356,9 +370,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -381,6 +396,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -402,6 +418,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -426,9 +443,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -462,6 +480,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -489,6 +508,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -518,9 +538,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -550,6 +571,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -577,6 +599,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -606,9 +629,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -638,6 +662,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -665,6 +690,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -694,9 +720,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -726,6 +753,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -753,6 +781,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -782,9 +811,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -814,6 +844,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -841,6 +872,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -870,9 +902,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -902,6 +935,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -929,6 +963,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -961,9 +996,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1004,6 +1040,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1038,6 +1075,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1074,9 +1112,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1113,6 +1152,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1147,6 +1187,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1183,9 +1224,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1222,6 +1264,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1256,6 +1299,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1292,9 +1336,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1331,6 +1376,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1365,6 +1411,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1401,9 +1448,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1440,6 +1488,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1474,6 +1523,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1510,9 +1560,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1549,6 +1600,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1583,6 +1635,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1623,9 +1676,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1673,6 +1727,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1713,6 +1768,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1756,9 +1812,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1802,6 +1859,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1842,6 +1900,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -1885,9 +1944,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -1931,6 +1991,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -1971,6 +2032,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2014,9 +2076,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2060,6 +2123,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2100,6 +2164,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2143,9 +2208,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2189,6 +2255,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2229,6 +2296,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2272,9 +2340,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2318,6 +2387,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2358,6 +2428,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2406,9 +2477,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2463,6 +2535,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2509,6 +2582,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2559,9 +2633,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2612,6 +2687,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2658,6 +2734,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2708,9 +2785,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2761,6 +2839,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2807,6 +2886,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -2857,9 +2937,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -2910,6 +2991,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -2956,6 +3038,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3006,9 +3089,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -3059,6 +3143,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -3105,6 +3190,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3155,9 +3241,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -3208,6 +3295,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -3254,6 +3342,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3310,9 +3399,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -3374,6 +3464,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -3426,6 +3517,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3483,9 +3575,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -3543,6 +3636,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -3595,6 +3689,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3652,9 +3747,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -3712,6 +3808,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -3764,6 +3861,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3821,9 +3919,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -3881,6 +3980,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -3933,6 +4033,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -3990,9 +4091,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -4050,6 +4152,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4102,6 +4205,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4159,9 +4263,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -4219,6 +4324,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4271,6 +4377,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4335,9 +4442,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -4368,6 +4476,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4390,6 +4499,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4413,9 +4523,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4439,6 +4550,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4461,6 +4573,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4484,9 +4597,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4510,6 +4624,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4532,6 +4647,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4555,9 +4671,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4581,6 +4698,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4603,6 +4721,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4626,9 +4745,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4652,6 +4772,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4674,6 +4795,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4697,9 +4819,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4723,6 +4846,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4745,6 +4869,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4770,9 +4895,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4807,6 +4933,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4835,6 +4962,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4865,9 +4993,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4898,6 +5027,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -4926,6 +5056,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -4956,9 +5087,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -4989,6 +5121,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5017,6 +5150,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5047,9 +5181,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5080,6 +5215,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5108,6 +5244,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5138,9 +5275,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5171,6 +5309,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5199,6 +5338,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5229,9 +5369,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5262,6 +5403,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5290,6 +5432,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5323,9 +5466,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5367,6 +5511,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5402,6 +5547,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5439,9 +5585,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5479,6 +5626,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5514,6 +5662,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5551,9 +5700,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5591,6 +5741,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5626,6 +5777,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5663,9 +5815,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5703,6 +5856,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5738,6 +5892,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5775,9 +5930,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5815,6 +5971,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5850,6 +6007,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -5887,9 +6045,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -5927,6 +6086,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -5962,6 +6122,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6003,9 +6164,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6054,6 +6216,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6095,6 +6258,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6139,9 +6303,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6186,6 +6351,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6227,6 +6393,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6271,9 +6438,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6318,6 +6486,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6359,6 +6528,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6403,9 +6573,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6450,6 +6621,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6491,6 +6663,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6535,9 +6708,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6582,6 +6756,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6623,6 +6798,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6667,9 +6843,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6714,6 +6891,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6755,6 +6933,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6804,9 +6983,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -6862,6 +7042,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -6909,6 +7090,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -6960,9 +7142,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7014,6 +7197,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -7061,6 +7245,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -7112,9 +7297,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7166,6 +7352,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -7213,6 +7400,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -7264,9 +7452,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7318,6 +7507,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -7365,6 +7555,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -7416,9 +7607,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7470,6 +7662,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -7517,6 +7710,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -7568,9 +7762,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7622,6 +7817,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -7669,6 +7865,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -7726,9 +7923,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7791,6 +7989,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -7844,6 +8043,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -7902,9 +8102,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -7963,6 +8164,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8016,6 +8218,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8074,9 +8277,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -8135,6 +8339,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8188,6 +8393,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8246,9 +8452,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -8307,6 +8514,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8360,6 +8568,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8418,9 +8627,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -8479,6 +8689,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8532,6 +8743,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8590,9 +8802,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -8651,6 +8864,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8704,6 +8918,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8769,9 +8984,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -8807,7 +9023,8 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -8830,6 +9047,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8854,9 +9072,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -8881,6 +9100,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8904,6 +9124,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -8928,9 +9149,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -8955,6 +9177,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -8978,6 +9201,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9002,9 +9226,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9029,6 +9254,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9052,6 +9278,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9076,9 +9303,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9103,6 +9331,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9126,6 +9355,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9150,9 +9380,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9177,6 +9408,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9200,6 +9432,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9272,7 +9505,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -9342,6 +9577,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9372,6 +9608,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9404,9 +9641,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9439,6 +9677,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9469,6 +9708,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9501,9 +9741,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9536,6 +9777,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9566,6 +9808,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9598,9 +9841,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9633,6 +9877,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9663,6 +9908,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9695,9 +9941,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9730,6 +9977,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9760,6 +10008,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9792,9 +10041,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -9827,6 +10077,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -9857,6 +10108,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -9952,7 +10204,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -10042,6 +10296,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10080,6 +10335,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -10120,9 +10376,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -10163,6 +10420,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10201,6 +10459,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -10241,9 +10500,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -10284,6 +10544,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10322,6 +10583,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -10362,9 +10624,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -10405,6 +10668,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10443,6 +10707,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -10483,9 +10748,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -10526,6 +10792,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10564,6 +10831,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -10604,9 +10872,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -10647,6 +10916,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10685,6 +10955,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -10803,7 +11074,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -10912,6 +11185,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -10957,6 +11231,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -11005,9 +11280,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -11056,6 +11332,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -11101,6 +11378,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -11149,9 +11427,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -11200,6 +11479,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -11245,6 +11525,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -11293,9 +11574,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -11344,6 +11626,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -11389,6 +11672,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -11437,9 +11721,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -11488,6 +11773,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -11533,6 +11819,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -11581,9 +11868,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -11632,6 +11920,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -11677,6 +11966,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -11818,7 +12108,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -11946,6 +12238,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -11998,6 +12291,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -12054,9 +12348,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -12113,6 +12408,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -12165,6 +12461,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -12221,9 +12518,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -12280,6 +12578,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -12332,6 +12631,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -12388,9 +12688,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -12447,6 +12748,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -12499,6 +12801,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -12555,9 +12858,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -12614,6 +12918,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -12666,6 +12971,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -12722,9 +13028,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -12781,6 +13088,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -12833,6 +13141,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -12997,7 +13306,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -13144,6 +13455,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -13203,6 +13515,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -13267,9 +13580,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -13334,6 +13648,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -13393,6 +13708,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -13457,9 +13773,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -13524,6 +13841,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -13583,6 +13901,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -13647,9 +13966,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -13714,6 +14034,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -13773,6 +14094,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -13837,9 +14159,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -13904,6 +14227,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -13963,6 +14287,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14027,9 +14352,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -14094,6 +14420,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -14153,6 +14480,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14340,7 +14668,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -14460,7 +14790,8 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -14483,6 +14814,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14505,9 +14837,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -14530,6 +14863,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -14553,6 +14887,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14575,9 +14910,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -14600,6 +14936,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -14623,6 +14960,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14645,9 +14983,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -14670,6 +15009,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -14693,6 +15033,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14715,9 +15056,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -14740,6 +15082,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -14763,6 +15106,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14833,7 +15177,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -14900,6 +15246,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -14930,6 +15277,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -14959,9 +15307,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -14991,6 +15340,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15021,6 +15371,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15050,9 +15401,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15082,6 +15434,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15112,6 +15465,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15141,9 +15495,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15173,6 +15528,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15203,6 +15559,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15232,9 +15589,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15264,6 +15622,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15294,6 +15653,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15386,7 +15746,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -15472,6 +15834,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15510,6 +15873,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15546,9 +15910,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15585,6 +15950,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15623,6 +15989,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15659,9 +16026,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15698,6 +16066,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15736,6 +16105,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15772,9 +16142,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15811,6 +16182,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15849,6 +16221,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -15885,9 +16258,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -15924,6 +16298,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -15962,6 +16337,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -16076,7 +16452,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -16180,6 +16558,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -16225,6 +16604,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -16268,9 +16648,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -16314,6 +16695,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -16359,6 +16741,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -16402,9 +16785,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -16448,6 +16832,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -16493,6 +16878,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -16536,9 +16922,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -16582,6 +16969,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -16627,6 +17015,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -16670,9 +17059,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -16716,6 +17106,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -16761,6 +17152,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -16897,7 +17289,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -17019,6 +17413,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -17071,6 +17466,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -17121,9 +17517,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -17174,6 +17571,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -17226,6 +17624,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -17276,9 +17675,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -17329,6 +17729,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -17381,6 +17782,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -17431,9 +17833,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -17484,6 +17887,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -17536,6 +17940,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -17586,9 +17991,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -17639,6 +18045,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -17691,6 +18098,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -17849,7 +18257,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -17989,6 +18399,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -18048,6 +18459,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -18105,9 +18517,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -18165,6 +18578,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -18224,6 +18638,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -18281,9 +18696,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -18341,6 +18757,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -18400,6 +18817,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -18457,9 +18875,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -18517,6 +18936,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -18576,6 +18996,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -18633,9 +19054,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder); } @@ -18693,6 +19115,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -18752,6 +19175,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -18932,7 +19356,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: null, dbFields: null, skipCommandArrayParametersCheck: true)) @@ -19058,7 +19484,8 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -19082,6 +19509,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19107,9 +19535,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19135,6 +19564,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19159,6 +19589,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19184,9 +19615,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19212,6 +19644,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19236,6 +19669,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19261,9 +19695,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19289,6 +19724,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19313,6 +19749,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19338,9 +19775,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19366,6 +19804,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19390,6 +19829,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19415,9 +19855,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19443,6 +19884,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19467,6 +19909,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19544,7 +19987,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -19617,6 +20062,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19648,6 +20094,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19681,9 +20128,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19717,6 +20165,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19748,6 +20197,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19781,9 +20231,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19817,6 +20268,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19848,6 +20300,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19881,9 +20334,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -19917,6 +20371,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -19948,6 +20403,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -19981,9 +20437,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20017,6 +20474,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20048,6 +20506,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20081,9 +20540,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20117,6 +20577,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20148,6 +20609,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20247,7 +20709,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -20340,6 +20804,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20379,6 +20844,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20420,9 +20886,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20464,6 +20931,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20503,6 +20971,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20544,9 +21013,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20588,6 +21058,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20627,6 +21098,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20668,9 +21140,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20712,6 +21185,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20751,6 +21225,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20792,9 +21267,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20836,6 +21312,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20875,6 +21352,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -20916,9 +21394,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -20960,6 +21439,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -20999,6 +21479,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -21122,7 +21603,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -21235,6 +21718,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -21281,6 +21765,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -21330,9 +21815,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -21382,6 +21868,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -21428,6 +21915,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -21477,9 +21965,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -21529,6 +22018,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -21575,6 +22065,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -21624,9 +22115,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -21676,6 +22168,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -21722,6 +22215,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -21771,9 +22265,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -21823,6 +22318,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -21869,6 +22365,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -21918,9 +22415,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -21970,6 +22468,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -22016,6 +22515,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -22163,7 +22663,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -22296,6 +22798,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -22349,6 +22852,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -22406,9 +22910,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -22466,6 +22971,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -22519,6 +23025,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -22576,9 +23083,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -22636,6 +23144,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -22689,6 +23198,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -22746,9 +23256,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -22806,6 +23317,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -22859,6 +23371,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -22916,9 +23429,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -22976,6 +23490,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -23029,6 +23544,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -23086,9 +23602,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -23146,6 +23663,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -23199,6 +23717,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -23370,7 +23889,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -23523,6 +24044,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -23583,6 +24105,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -23648,9 +24171,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -23716,6 +24240,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -23776,6 +24301,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -23841,9 +24367,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -23909,6 +24436,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -23969,6 +24497,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -24034,9 +24563,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -24102,6 +24632,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -24162,6 +24693,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -24227,9 +24759,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -24295,6 +24828,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -24355,6 +24889,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -24420,9 +24955,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -24488,6 +25024,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -24548,6 +25085,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -24743,7 +25281,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -24870,7 +25410,8 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. /// The trace object to be used. @@ -24894,6 +25435,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -24917,9 +25459,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -24943,6 +25486,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -24967,6 +25511,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -24990,9 +25535,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25016,6 +25562,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25040,6 +25587,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25063,9 +25611,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25089,6 +25638,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25113,6 +25663,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25136,9 +25687,10 @@ public static partial class DbConnectionExtension cacheKey2: cacheKey2, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25162,6 +25714,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25186,6 +25739,7 @@ public static partial class DbConnectionExtension string cacheKey2 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25259,7 +25813,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -25329,6 +25885,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25360,6 +25917,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25390,9 +25948,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25423,6 +25982,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25454,6 +26014,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25484,9 +26045,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25517,6 +26079,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25548,6 +26111,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25578,9 +26142,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25611,6 +26176,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25642,6 +26208,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25672,9 +26239,10 @@ public static partial class DbConnectionExtension cacheKey3: cacheKey3, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -25705,6 +26273,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25736,6 +26305,7 @@ public static partial class DbConnectionExtension string cacheKey3 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25832,7 +26402,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -25921,6 +26493,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -25960,6 +26533,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -25997,9 +26571,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -26037,6 +26612,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26076,6 +26652,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -26113,9 +26690,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -26153,6 +26731,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26192,6 +26771,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -26229,9 +26809,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -26269,6 +26850,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26308,6 +26890,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -26345,9 +26928,10 @@ public static partial class DbConnectionExtension cacheKey4: cacheKey4, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -26385,6 +26969,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26424,6 +27009,7 @@ public static partial class DbConnectionExtension string cacheKey4 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -26543,7 +27129,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -26651,6 +27239,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26697,6 +27286,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -26741,9 +27331,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -26788,6 +27379,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26834,6 +27426,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -26878,9 +27471,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -26925,6 +27519,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -26971,6 +27566,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -27015,9 +27611,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -27062,6 +27659,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -27108,6 +27706,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -27152,9 +27751,10 @@ public static partial class DbConnectionExtension cacheKey5: cacheKey5, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -27199,6 +27799,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -27245,6 +27846,7 @@ public static partial class DbConnectionExtension string cacheKey5 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -27387,7 +27989,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -27514,6 +28118,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -27567,6 +28172,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -27618,9 +28224,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -27672,6 +28279,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -27725,6 +28333,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -27776,9 +28385,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -27830,6 +28440,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -27883,6 +28494,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -27934,9 +28546,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -27988,6 +28601,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -28041,6 +28655,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -28092,9 +28707,10 @@ public static partial class DbConnectionExtension cacheKey6: cacheKey6, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -28146,6 +28762,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -28199,6 +28816,7 @@ public static partial class DbConnectionExtension string cacheKey6 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -28364,7 +28982,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, @@ -28510,6 +29130,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -28570,6 +29191,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -28628,9 +29250,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -28689,6 +29312,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -28749,6 +29373,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -28807,9 +29432,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -28868,6 +29494,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -28928,6 +29555,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -28986,9 +29614,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -29047,6 +29676,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -29107,6 +29737,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -29165,9 +29796,10 @@ public static partial class DbConnectionExtension cacheKey7: cacheKey7, cacheItemExpiration: cacheItemExpiration, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, - cache: cache, - trace: trace, + cache: null, + trace: trace, statementBuilder: statementBuilder, cancellationToken: cancellationToken); } @@ -29226,6 +29858,7 @@ public static partial class DbConnectionExtension /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. /// The expiration in minutes of the cache item. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The cache object to be used. @@ -29286,6 +29919,7 @@ public static partial class DbConnectionExtension string cacheKey7 = null, int? cacheItemExpiration = Constant.DefaultCacheItemExpirationInMinutes, int? commandTimeout = null, + string traceKey = TraceKeys.QueryMultiple, IDbTransaction transaction = null, ICache cache = null, ITrace trace = null, @@ -29474,7 +30108,9 @@ public static partial class DbConnectionExtension param: param, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: null, dbFields: null, diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Sum.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Sum.cs index ad8771309..1eefbdaf2 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Sum.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Sum.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Extensions; +using RepoDb.Extensions; using RepoDb.Interfaces; using RepoDb.Requests; using System; @@ -27,7 +26,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -37,6 +37,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -47,6 +48,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -60,7 +62,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -70,6 +73,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -80,6 +84,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -93,7 +98,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -103,6 +109,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -113,6 +120,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -126,7 +134,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -136,6 +145,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -146,6 +156,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -159,7 +170,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -169,6 +181,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -179,6 +192,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -192,7 +206,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -202,6 +217,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -212,6 +228,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -225,7 +242,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -235,6 +253,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -245,6 +264,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -258,7 +278,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -268,6 +289,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -278,6 +300,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -324,7 +350,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -334,6 +361,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -344,6 +372,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -357,7 +386,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -367,6 +397,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -393,6 +424,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -406,7 +438,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -416,6 +449,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -426,6 +460,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -440,7 +475,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -450,6 +486,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -460,6 +497,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -474,7 +512,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -484,6 +523,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -494,6 +534,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -508,7 +549,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -518,6 +560,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -528,6 +571,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -542,7 +586,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -552,6 +597,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -562,6 +608,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -576,7 +623,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -586,6 +634,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -596,6 +645,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -610,7 +660,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -620,6 +671,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -630,6 +682,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -644,7 +697,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -654,6 +708,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -664,6 +719,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -678,7 +734,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -688,6 +745,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -698,6 +756,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -712,7 +771,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -722,6 +782,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -732,6 +793,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -746,7 +808,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -756,6 +819,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -782,6 +846,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -798,7 +863,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -809,6 +875,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -820,6 +887,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -834,7 +902,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -845,6 +914,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -856,6 +926,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -870,7 +941,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -881,6 +953,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -892,6 +965,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -906,7 +980,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -917,6 +992,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -928,6 +1004,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -942,7 +1019,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -953,6 +1031,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -964,6 +1043,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -978,7 +1058,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -989,6 +1070,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1000,6 +1082,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1014,7 +1097,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1025,6 +1109,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1036,6 +1121,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1050,7 +1136,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1061,6 +1148,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1072,6 +1160,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1086,7 +1175,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1097,6 +1187,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1108,6 +1199,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1122,7 +1214,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1133,6 +1226,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1144,6 +1238,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1158,7 +1253,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1168,6 +1264,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1196,6 +1293,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1210,7 +1308,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1221,6 +1320,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1232,6 +1332,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1247,7 +1348,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1258,6 +1360,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1269,6 +1372,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1284,7 +1388,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1295,6 +1400,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1306,6 +1412,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1321,7 +1428,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1332,6 +1440,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1343,6 +1452,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1358,7 +1468,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1369,6 +1480,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1380,6 +1492,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1395,7 +1508,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1406,6 +1520,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1417,6 +1532,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1432,7 +1548,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1443,6 +1560,7 @@ public static partial class DbConnectionExtension Expression> where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1454,6 +1572,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1469,7 +1588,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1480,6 +1600,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1491,6 +1612,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1506,7 +1628,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1517,6 +1640,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1528,6 +1652,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1543,7 +1668,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1554,6 +1680,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1565,6 +1692,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1580,7 +1708,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1590,6 +1719,7 @@ public static partial class DbConnectionExtension Field field, QueryGroup where = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, string hints = null, IDbTransaction transaction = null, ITrace trace = null, @@ -1618,6 +1748,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -1635,7 +1766,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1646,6 +1778,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1656,6 +1789,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1669,7 +1803,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1680,6 +1815,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1690,6 +1826,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1703,7 +1840,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1714,6 +1852,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1724,6 +1863,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1737,7 +1877,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1748,6 +1889,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1758,6 +1900,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1771,7 +1914,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1782,6 +1926,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1807,6 +1952,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -1820,7 +1966,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1831,6 +1978,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1841,6 +1989,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1855,7 +2004,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1866,6 +2016,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1876,6 +2027,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1890,7 +2042,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1901,6 +2054,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1911,6 +2065,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1925,7 +2080,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1936,6 +2092,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1946,6 +2103,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1960,7 +2118,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1971,6 +2130,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1996,6 +2156,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -2012,7 +2173,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2024,6 +2186,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2035,6 +2198,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2049,7 +2213,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2061,6 +2226,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2072,6 +2238,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2086,7 +2253,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2098,6 +2266,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2109,6 +2278,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2123,7 +2293,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2135,6 +2306,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2146,6 +2318,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2160,7 +2333,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2172,6 +2346,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2198,6 +2373,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2212,7 +2388,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2224,6 +2401,7 @@ public static partial class DbConnectionExtension object where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2235,6 +2413,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2250,7 +2429,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2262,6 +2442,7 @@ public static partial class DbConnectionExtension QueryField where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2273,6 +2454,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2288,7 +2470,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2300,6 +2483,7 @@ public static partial class DbConnectionExtension IEnumerable where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2311,6 +2495,7 @@ public static partial class DbConnectionExtension where: ToQueryGroup(where), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2326,7 +2511,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2338,6 +2524,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2349,6 +2536,7 @@ public static partial class DbConnectionExtension where: where, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -2364,7 +2552,8 @@ public static partial class DbConnectionExtension /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -2376,6 +2565,7 @@ public static partial class DbConnectionExtension QueryGroup where = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -2402,6 +2592,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -2417,7 +2608,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The sum value of the target field. @@ -2425,6 +2617,7 @@ public static partial class DbConnectionExtension SumRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null) { @@ -2440,8 +2633,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -2460,7 +2655,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -2469,6 +2665,7 @@ public static partial class DbConnectionExtension SumRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -2485,8 +2682,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/SumAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/SumAll.cs index 71a358fde..acc449ed1 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/SumAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/SumAll.cs @@ -1,5 +1,4 @@ -using RepoDb.Exceptions; -using RepoDb.Interfaces; +using RepoDb.Interfaces; using RepoDb.Requests; using System; using System.Data; @@ -24,7 +23,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -33,6 +33,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -42,6 +43,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -54,7 +56,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -63,6 +66,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -72,6 +76,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -85,7 +90,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -94,6 +100,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -103,6 +110,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -116,7 +124,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -125,6 +134,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -134,6 +144,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -147,7 +158,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -156,6 +168,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -175,6 +188,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -190,7 +204,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -200,6 +215,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -210,6 +226,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -223,7 +240,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -233,6 +251,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -243,6 +262,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -257,7 +277,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -267,6 +288,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -277,6 +299,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -291,7 +314,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -301,6 +325,7 @@ public static partial class DbConnectionExtension Expression> field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -311,6 +336,7 @@ public static partial class DbConnectionExtension field: Field.Parse(field).First(), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -325,7 +351,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -335,6 +362,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -355,6 +383,7 @@ public static partial class DbConnectionExtension request: request, param: param, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -371,7 +400,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -381,6 +411,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -390,6 +421,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -403,7 +435,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -413,6 +446,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -422,6 +456,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -435,7 +470,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -445,6 +481,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -462,6 +499,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -477,7 +515,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -488,6 +527,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -498,6 +538,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -512,7 +553,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -523,6 +565,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -533,6 +576,7 @@ public static partial class DbConnectionExtension field: field, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -547,7 +591,8 @@ public static partial class DbConnectionExtension /// The name of the target table to be used. /// The field to be summarized. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -558,6 +603,7 @@ public static partial class DbConnectionExtension Field field, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -576,6 +622,7 @@ public static partial class DbConnectionExtension request: request, param: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -592,7 +639,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The sum value of the target field. @@ -600,6 +648,7 @@ public static partial class DbConnectionExtension SumAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null) { @@ -615,8 +664,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -636,7 +687,8 @@ public static partial class DbConnectionExtension /// The connection object to be used. /// The actual object. /// The mapped object parameters. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -645,6 +697,7 @@ public static partial class DbConnectionExtension SumAllRequest request, object param, int? commandTimeout = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -661,8 +714,10 @@ public static partial class DbConnectionExtension cacheKey: null, cacheItemExpiration: null, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, cache: null, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Truncate.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Truncate.cs index 3e490e7e6..df8a6cea7 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Truncate.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Truncate.cs @@ -1,7 +1,5 @@ -using RepoDb.Exceptions; -using RepoDb.Interfaces; +using RepoDb.Interfaces; using RepoDb.Requests; -using System; using System.Data; using System.Threading; using System.Threading.Tasks; @@ -20,13 +18,15 @@ public static partial class DbConnectionExtension /// /// The type of the data entity. /// The connection object to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. /// The number of rows affected. public static int Truncate(this IDbConnection connection, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -34,6 +34,7 @@ public static partial class DbConnectionExtension { return TruncateInternal(connection: connection, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -44,13 +45,15 @@ public static partial class DbConnectionExtension /// /// The type of the data entity. /// The connection object to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. /// The number of rows affected. internal static int TruncateInternal(this IDbConnection connection, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -66,6 +69,7 @@ public static partial class DbConnectionExtension return TruncateInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -79,7 +83,8 @@ public static partial class DbConnectionExtension /// /// The type of the data entity. /// The connection object to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -87,6 +92,7 @@ public static partial class DbConnectionExtension /// The number of rows affected. public static Task TruncateAsync(this IDbConnection connection, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -95,6 +101,7 @@ public static partial class DbConnectionExtension { return TruncateAsyncInternal(connection: connection, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -106,7 +113,8 @@ public static partial class DbConnectionExtension /// /// The type of the data entity. /// The connection object to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -114,6 +122,7 @@ public static partial class DbConnectionExtension /// The number of rows affected. internal static Task TruncateAsyncInternal(this IDbConnection connection, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -130,6 +139,7 @@ public static partial class DbConnectionExtension return TruncateAsyncInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -144,7 +154,8 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The name of the target table. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -152,6 +163,7 @@ public static partial class DbConnectionExtension public static int Truncate(this IDbConnection connection, string tableName, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -159,6 +171,7 @@ public static partial class DbConnectionExtension return TruncateInternal(connection: connection, tableName: tableName, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -169,7 +182,8 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The name of the target table. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -177,6 +191,7 @@ public static partial class DbConnectionExtension internal static int TruncateInternal(this IDbConnection connection, string tableName, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -191,6 +206,7 @@ public static partial class DbConnectionExtension return TruncateInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace); } @@ -204,7 +220,8 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The name of the target table. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -213,6 +230,7 @@ public static partial class DbConnectionExtension public static Task TruncateAsync(this IDbConnection connection, string tableName, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -221,6 +239,7 @@ public static partial class DbConnectionExtension return TruncateAsyncInternal(connection: connection, tableName: tableName, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -232,7 +251,8 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The name of the target table. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -241,6 +261,7 @@ public static partial class DbConnectionExtension internal static Task TruncateAsyncInternal(this IDbConnection connection, string tableName, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -256,6 +277,7 @@ public static partial class DbConnectionExtension return TruncateAsyncInternalBase(connection: connection, request: request, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, cancellationToken: cancellationToken); @@ -270,13 +292,15 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The actual object. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The number of rows affected. internal static int TruncateInternalBase(this IDbConnection connection, TruncateRequest request, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null) { @@ -290,7 +314,9 @@ public static partial class DbConnectionExtension param: null, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, entityType: request.Type, dbFields: DbFieldCache.Get(connection, request.Name, transaction, true), skipCommandArrayParametersCheck: true); @@ -308,7 +334,8 @@ public static partial class DbConnectionExtension /// /// The connection object to be used. /// The actual object. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The object to be used during the asynchronous operation. @@ -316,6 +343,7 @@ public static partial class DbConnectionExtension internal static async Task TruncateAsyncInternalBase(this IDbConnection connection, TruncateRequest request, int? commandTimeout = null, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, ITrace trace = null, CancellationToken cancellationToken = default) @@ -330,7 +358,9 @@ public static partial class DbConnectionExtension param: null, commandType: commandType, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, + trace: trace, cancellationToken: cancellationToken, entityType: request.Type, dbFields: await DbFieldCache.GetAsync(connection, request.Name, transaction, true, cancellationToken), diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/Update.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/Update.cs index 13eee6ac2..3db8c2c49 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/Update.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/Update.cs @@ -1,5 +1,4 @@ using RepoDb.Contexts.Providers; -using RepoDb.Exceptions; using RepoDb.Extensions; using RepoDb.Interfaces; using System; @@ -28,7 +27,8 @@ public static partial class DbConnectionExtension /// The data entity object to be used for update. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -39,6 +39,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -53,6 +54,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -69,7 +71,8 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -81,6 +84,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -93,6 +97,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -108,6 +113,7 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -120,6 +126,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -132,6 +139,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -147,6 +155,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -159,6 +168,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -171,6 +181,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -186,6 +197,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -198,6 +210,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -210,6 +223,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -225,6 +239,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -237,6 +252,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -249,6 +265,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -264,6 +281,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -276,6 +294,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -288,6 +307,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -301,7 +321,8 @@ public static partial class DbConnectionExtension /// The data entity object to be used for update. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -311,6 +332,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -324,6 +346,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -339,7 +362,8 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -350,6 +374,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -362,6 +387,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -376,6 +402,7 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -387,6 +414,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -399,6 +427,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -413,6 +442,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -424,6 +454,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -436,6 +467,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -450,6 +482,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -461,6 +494,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -473,6 +507,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -487,6 +522,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -498,6 +534,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -510,6 +547,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -524,6 +562,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -535,6 +574,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -547,6 +587,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -562,6 +603,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -574,6 +616,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -588,6 +631,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -601,6 +645,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -620,7 +665,8 @@ public static partial class DbConnectionExtension /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -632,6 +678,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -647,6 +694,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -664,7 +712,8 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -677,6 +726,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -690,6 +740,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -706,6 +757,7 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -719,6 +771,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -732,6 +785,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -748,6 +802,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -761,6 +816,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -774,6 +830,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -790,6 +847,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -803,6 +861,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -816,6 +875,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -832,6 +892,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -845,6 +906,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -858,6 +920,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -874,6 +937,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -887,6 +951,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -900,6 +965,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -914,7 +980,8 @@ public static partial class DbConnectionExtension /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -925,6 +992,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -939,6 +1007,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -955,6 +1024,7 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -967,6 +1037,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -980,6 +1051,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -995,7 +1067,8 @@ public static partial class DbConnectionExtension /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1007,6 +1080,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1020,6 +1094,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1035,6 +1110,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1047,6 +1123,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1060,6 +1137,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1075,6 +1153,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1087,6 +1166,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1100,6 +1180,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1115,6 +1196,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1127,6 +1209,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1140,6 +1223,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1155,6 +1239,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1167,6 +1252,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1180,6 +1266,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1196,6 +1283,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1209,6 +1297,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1224,6 +1313,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1238,6 +1328,7 @@ public static partial class DbConnectionExtension fields: GetQualifiedFields(fields, entity), hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1257,7 +1348,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be used for update. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1268,6 +1360,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1280,6 +1373,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, trace: trace, statementBuilder: statementBuilder, transaction: transaction); @@ -1294,7 +1388,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1306,6 +1401,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1317,6 +1413,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, trace: trace, statementBuilder: statementBuilder, transaction: transaction); @@ -1331,7 +1428,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1343,6 +1441,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1354,6 +1453,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1368,7 +1468,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1380,6 +1481,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1391,6 +1493,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1405,7 +1508,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1417,6 +1521,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1428,6 +1533,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -1445,7 +1551,8 @@ public static partial class DbConnectionExtension /// The dynamic object to be used for update. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1457,6 +1564,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1471,6 +1579,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1486,7 +1595,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1499,6 +1609,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1511,6 +1622,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1526,7 +1638,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1539,6 +1652,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1551,6 +1665,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1566,7 +1681,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1579,6 +1695,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1591,6 +1708,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1606,7 +1724,8 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1619,6 +1738,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1631,6 +1751,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1651,6 +1772,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1663,6 +1785,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1694,8 +1817,12 @@ public static partial class DbConnectionExtension WhereToCommandParameters(command, where, entity?.GetType(), DbFieldCache.Get(connection, tableName, transaction)); + // TODO: Before Execution + // Actual Execution result = command.ExecuteNonQuery(); + + // TODO: After Execution } // Return the result @@ -1716,6 +1843,7 @@ public static partial class DbConnectionExtension /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1729,6 +1857,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1762,8 +1891,12 @@ public static partial class DbConnectionExtension WhereToCommandParameters(command, where, entity?.GetType(), await DbFieldCache.GetAsync(connection, tableName, transaction, cancellationToken)); + // TODO: Before Execution + // Actual Execution result = await command.ExecuteNonQueryAsync(cancellationToken); + + // TODO: After Execution } // Return the result diff --git a/RepoDb.Core/RepoDb/Operations/DbConnection/UpdateAll.cs b/RepoDb.Core/RepoDb/Operations/DbConnection/UpdateAll.cs index e16c6da94..6cc5a62c8 100644 --- a/RepoDb.Core/RepoDb/Operations/DbConnection/UpdateAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbConnection/UpdateAll.cs @@ -1,5 +1,4 @@ using RepoDb.Contexts.Providers; -using RepoDb.Exceptions; using RepoDb.Extensions; using RepoDb.Interfaces; using System; @@ -31,7 +30,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -43,6 +43,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -56,6 +57,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -72,6 +74,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -85,6 +88,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -98,6 +102,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -114,6 +119,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -127,6 +133,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -140,6 +147,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -156,7 +164,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -169,6 +178,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -182,6 +192,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -196,7 +207,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -207,6 +219,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -220,6 +233,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -235,6 +249,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -247,6 +262,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -260,6 +276,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -275,6 +292,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -287,6 +305,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -300,6 +319,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -315,7 +335,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -327,6 +348,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -340,6 +362,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -356,7 +379,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -369,6 +393,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -390,6 +415,7 @@ public static partial class DbConnectionExtension qualifiers: qualifiers, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -404,6 +430,7 @@ public static partial class DbConnectionExtension qualifiers: qualifiers, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -424,7 +451,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -437,6 +465,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -451,6 +480,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -468,6 +498,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -482,6 +513,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -496,6 +528,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -513,6 +546,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -527,6 +561,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -541,6 +576,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -558,7 +594,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -572,6 +609,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -586,6 +624,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -601,6 +640,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -613,6 +653,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -627,6 +668,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -643,6 +685,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -656,6 +699,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -670,6 +714,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -686,6 +731,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -699,6 +745,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -713,6 +760,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -729,7 +777,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -742,6 +791,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -756,6 +806,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -773,6 +824,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -787,6 +839,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -809,6 +862,7 @@ public static partial class DbConnectionExtension qualifiers: qualifiers, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -824,6 +878,7 @@ public static partial class DbConnectionExtension qualifiers: qualifiers, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -844,7 +899,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -856,6 +912,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -868,6 +925,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -883,7 +941,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -896,6 +955,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -908,6 +968,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -923,7 +984,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -936,6 +998,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -948,6 +1011,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder); @@ -966,7 +1030,8 @@ public static partial class DbConnectionExtension /// The mapping list of objects to be used. /// The batch size of the update operation. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -979,6 +1044,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -992,6 +1058,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1008,7 +1075,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1022,6 +1090,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1035,6 +1104,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1051,7 +1121,8 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. - /// The command timeout in seconds to be used. + /// The tracing key to be used. + /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. /// The statement builder object to be used. @@ -1065,6 +1136,7 @@ public static partial class DbConnectionExtension IEnumerable fields = null, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1078,6 +1150,7 @@ public static partial class DbConnectionExtension fields: fields, hints: hints, commandTimeout: commandTimeout, + traceKey: traceKey, transaction: transaction, trace: trace, statementBuilder: statementBuilder, @@ -1099,6 +1172,7 @@ public static partial class DbConnectionExtension /// The list of the qualifier objects. /// The batch size of the update operation. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1112,6 +1186,7 @@ public static partial class DbConnectionExtension IEnumerable fields, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null) @@ -1174,8 +1249,12 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution result += command.ExecuteNonQuery(); + + // TODO: After Execution } } else @@ -1225,8 +1304,12 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution result += command.ExecuteNonQuery(); + + // TODO: After Execution } } } @@ -1274,6 +1357,7 @@ public static partial class DbConnectionExtension /// The batch size of the update operation. /// The list of objects to be updated. /// The table hints to be used. + /// The tracing key to be used. /// The command timeout in seconds to be used. /// The transaction to be used. /// The trace object to be used. @@ -1288,6 +1372,7 @@ public static partial class DbConnectionExtension IEnumerable fields, string hints = null, int? commandTimeout = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, ITrace trace = null, IStatementBuilder statementBuilder = null, @@ -1352,8 +1437,12 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution result += await command.ExecuteNonQueryAsync(cancellationToken); + + // TODO: After Execution } } else @@ -1404,8 +1493,12 @@ public static partial class DbConnectionExtension command.Prepare(); } + // TODO: Before Execution + // Actual Execution result += await command.ExecuteNonQueryAsync(cancellationToken); + + // TODO: After Execution } } } diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Average.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Average.cs index 2303a7a13..34f6448cb 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Average.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Average.cs @@ -20,11 +20,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -38,7 +40,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -56,11 +59,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -74,7 +79,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -92,11 +98,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -110,7 +118,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -128,11 +137,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -146,7 +157,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -164,11 +176,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -182,7 +196,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -200,11 +215,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -218,7 +235,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -236,11 +254,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -254,7 +274,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -272,11 +293,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -290,7 +313,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -308,11 +332,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -326,7 +352,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -344,11 +371,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -362,7 +391,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -381,11 +411,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -399,7 +431,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -418,11 +451,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -455,11 +491,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -473,7 +511,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -492,11 +531,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -510,7 +551,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -529,11 +571,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -547,7 +591,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -566,11 +611,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -584,7 +631,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -603,11 +651,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -621,7 +671,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -640,11 +691,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -658,7 +711,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -677,11 +731,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -695,7 +751,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -714,11 +771,13 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) where TEntity : class { @@ -732,7 +791,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -754,12 +814,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -774,7 +836,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -793,12 +856,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -813,7 +878,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -832,12 +898,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -852,7 +920,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -871,12 +940,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -891,7 +962,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -910,12 +982,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -930,7 +1004,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -949,12 +1024,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -969,7 +1046,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -988,12 +1066,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1008,7 +1088,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1027,12 +1108,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1047,7 +1130,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1066,12 +1150,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1086,7 +1172,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1105,12 +1192,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1125,7 +1214,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1145,12 +1235,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1165,7 +1257,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1185,12 +1278,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1205,7 +1300,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1225,12 +1321,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1245,7 +1343,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1265,12 +1364,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1285,7 +1386,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1305,12 +1407,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1325,7 +1429,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1345,12 +1450,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1365,7 +1472,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1385,12 +1493,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1405,7 +1515,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1425,12 +1536,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1445,7 +1558,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1465,12 +1579,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1485,7 +1601,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1505,12 +1622,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1525,7 +1644,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1548,12 +1668,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1567,7 +1689,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1585,12 +1708,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1604,7 +1729,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1622,12 +1748,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1641,7 +1769,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1659,12 +1788,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object Average(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1678,7 +1809,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1697,12 +1829,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1716,7 +1850,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1735,12 +1870,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1754,7 +1891,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1773,12 +1911,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1792,7 +1932,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1811,12 +1952,14 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult Average(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null) { // Create a connection @@ -1830,7 +1973,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1852,6 +1996,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -1859,6 +2004,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1873,7 +2019,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1892,6 +2039,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -1899,6 +2047,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1913,7 +2062,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1932,6 +2082,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -1939,6 +2090,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1953,7 +2105,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1972,6 +2125,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -1979,6 +2133,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1993,7 +2148,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2013,6 +2169,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -2020,6 +2177,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2034,7 +2192,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2054,6 +2213,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -2061,6 +2221,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2075,7 +2236,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2095,6 +2257,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -2102,6 +2265,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2116,7 +2280,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2136,6 +2301,7 @@ public partial class DbRepository : IDisposable /// The field to be averaged. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. @@ -2143,6 +2309,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Average, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2157,7 +2324,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/AverageAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/AverageAll.cs index bc122e1c1..53b152915 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/AverageAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/AverageAll.cs @@ -18,10 +18,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object AverageAll(Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null) where TEntity : class { @@ -34,7 +36,8 @@ public partial class DbRepository : IDisposable return connection.AverageAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -51,10 +54,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object AverageAll(Expression> field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null) where TEntity : class { @@ -67,7 +72,8 @@ public partial class DbRepository : IDisposable return connection.AverageAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -85,10 +91,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult AverageAll(Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null) where TEntity : class { @@ -101,7 +109,8 @@ public partial class DbRepository : IDisposable return connection.AverageAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -119,10 +128,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult AverageAll(Expression> field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null) where TEntity : class { @@ -135,7 +146,8 @@ public partial class DbRepository : IDisposable return connection.AverageAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -156,11 +168,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -174,7 +188,8 @@ public partial class DbRepository : IDisposable return await connection.AverageAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -192,11 +207,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -210,7 +227,8 @@ public partial class DbRepository : IDisposable return await connection.AverageAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -229,11 +247,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -247,7 +267,8 @@ public partial class DbRepository : IDisposable return await connection.AverageAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -266,11 +287,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -284,7 +307,8 @@ public partial class DbRepository : IDisposable return await connection.AverageAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -306,11 +330,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public object AverageAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null) { // Create a connection @@ -323,7 +349,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -341,11 +368,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The average value of the target field. public TResult AverageAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null) { // Create a connection @@ -358,7 +387,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -379,12 +409,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -398,7 +430,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -417,12 +450,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be averaged. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The average value of the target field. public async Task AverageAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.AverageAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/BatchQuery.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/BatchQuery.cs index 8d099aa61..a5465c70a 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/BatchQuery.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/BatchQuery.cs @@ -23,6 +23,7 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, @@ -31,6 +32,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -47,7 +49,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -69,6 +72,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, @@ -78,6 +82,7 @@ public partial class DbRepository : IDisposable object where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -95,7 +100,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -117,6 +123,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, @@ -126,6 +133,7 @@ public partial class DbRepository : IDisposable Expression> where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -144,7 +152,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -166,6 +175,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, @@ -175,6 +185,7 @@ public partial class DbRepository : IDisposable QueryField where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -192,7 +203,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -214,6 +226,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, @@ -223,6 +236,7 @@ public partial class DbRepository : IDisposable IEnumerable where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -240,7 +254,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -262,6 +277,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(string tableName, @@ -271,6 +287,7 @@ public partial class DbRepository : IDisposable QueryGroup where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -288,7 +305,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -308,6 +326,7 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, @@ -315,6 +334,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -330,7 +350,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -351,6 +372,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, @@ -359,6 +381,7 @@ public partial class DbRepository : IDisposable IEnumerable fields = null, object where = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -375,7 +398,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -396,6 +420,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, @@ -404,6 +429,7 @@ public partial class DbRepository : IDisposable Expression> where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -420,7 +446,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -441,6 +468,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, @@ -449,6 +477,7 @@ public partial class DbRepository : IDisposable QueryField where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -465,7 +494,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -486,6 +516,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, @@ -494,6 +525,7 @@ public partial class DbRepository : IDisposable IEnumerable where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -510,7 +542,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -531,6 +564,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable BatchQuery(int page, @@ -539,6 +573,7 @@ public partial class DbRepository : IDisposable QueryGroup where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) where TEntity : class { @@ -554,7 +589,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -579,6 +615,7 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -588,6 +625,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -605,7 +643,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -628,6 +667,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -638,6 +678,7 @@ public partial class DbRepository : IDisposable object where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -656,7 +697,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -679,6 +721,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -689,6 +732,7 @@ public partial class DbRepository : IDisposable Expression> where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -708,7 +752,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -731,6 +776,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -741,6 +787,7 @@ public partial class DbRepository : IDisposable QueryField where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -759,7 +806,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -782,6 +830,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -792,6 +841,7 @@ public partial class DbRepository : IDisposable IEnumerable where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -810,7 +860,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -831,6 +882,7 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -839,6 +891,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -855,7 +908,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -877,6 +931,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -886,6 +941,7 @@ public partial class DbRepository : IDisposable object where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -904,7 +960,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -926,6 +983,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -935,6 +993,7 @@ public partial class DbRepository : IDisposable Expression> where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -953,7 +1012,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -975,6 +1035,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -984,6 +1045,7 @@ public partial class DbRepository : IDisposable QueryField where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1002,7 +1064,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1024,6 +1087,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -1033,6 +1097,7 @@ public partial class DbRepository : IDisposable IEnumerable where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1051,7 +1116,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1073,6 +1139,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -1082,6 +1149,7 @@ public partial class DbRepository : IDisposable QueryGroup where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1100,7 +1168,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1125,6 +1194,7 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable BatchQuery(string tableName, @@ -1133,6 +1203,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) { // Create a connection @@ -1148,7 +1219,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1169,6 +1241,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable BatchQuery(string tableName, @@ -1178,6 +1251,7 @@ public partial class DbRepository : IDisposable object where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) { // Create a connection @@ -1194,7 +1268,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1215,6 +1290,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable BatchQuery(string tableName, @@ -1224,6 +1300,7 @@ public partial class DbRepository : IDisposable QueryField where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) { // Create a connection @@ -1240,7 +1317,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1261,6 +1339,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable BatchQuery(string tableName, @@ -1270,6 +1349,7 @@ public partial class DbRepository : IDisposable IEnumerable where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) { // Create a connection @@ -1286,7 +1366,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1307,6 +1388,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable BatchQuery(string tableName, @@ -1316,6 +1398,7 @@ public partial class DbRepository : IDisposable QueryGroup where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null) { // Create a connection @@ -1332,7 +1415,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1356,6 +1440,7 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1365,6 +1450,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1381,7 +1467,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1403,6 +1490,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1413,6 +1501,7 @@ public partial class DbRepository : IDisposable object where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1431,7 +1520,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1453,6 +1543,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1463,6 +1554,7 @@ public partial class DbRepository : IDisposable QueryField where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1481,7 +1573,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1503,6 +1596,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1513,6 +1607,7 @@ public partial class DbRepository : IDisposable IEnumerable where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1531,7 +1626,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1553,6 +1649,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1563,6 +1660,7 @@ public partial class DbRepository : IDisposable QueryGroup where = null, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.BatchQuery, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1581,7 +1679,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Count.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Count.cs index 05af449fa..0988cea91 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Count.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Count.cs @@ -19,10 +19,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(object where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) where TEntity : class { @@ -35,7 +37,8 @@ public partial class DbRepository : IDisposable return connection.Count(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -52,10 +55,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(Expression> where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) where TEntity : class { @@ -68,7 +73,8 @@ public partial class DbRepository : IDisposable return connection.Count(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -85,10 +91,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(QueryField where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) where TEntity : class { @@ -101,7 +109,8 @@ public partial class DbRepository : IDisposable return connection.Count(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -118,10 +127,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) where TEntity : class { @@ -134,7 +145,8 @@ public partial class DbRepository : IDisposable return connection.Count(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -151,10 +163,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) where TEntity : class { @@ -167,7 +181,8 @@ public partial class DbRepository : IDisposable return connection.Count(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -188,11 +203,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(object where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -206,7 +223,8 @@ public partial class DbRepository : IDisposable return await connection.CountAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -224,11 +242,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(Expression> where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -242,7 +262,8 @@ public partial class DbRepository : IDisposable return await connection.CountAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -260,11 +281,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(QueryField where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -278,7 +301,8 @@ public partial class DbRepository : IDisposable return await connection.CountAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -296,11 +320,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -314,7 +340,8 @@ public partial class DbRepository : IDisposable return await connection.CountAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -332,11 +359,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -350,7 +379,8 @@ public partial class DbRepository : IDisposable return await connection.CountAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -372,11 +402,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(string tableName, object where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) { // Create a connection @@ -389,7 +421,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -406,11 +439,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(string tableName, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) { // Create a connection @@ -423,7 +458,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -440,11 +476,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(string tableName, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) { // Create a connection @@ -457,7 +495,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -474,11 +513,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long Count(string tableName, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null) { // Create a connection @@ -491,7 +532,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -512,12 +554,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(string tableName, object where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -531,7 +575,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -549,12 +594,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(string tableName, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -568,7 +615,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -586,12 +634,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(string tableName, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -605,7 +655,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -623,12 +674,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAsync(string tableName, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Count, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -642,7 +695,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/CountAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/CountAll.cs index ee94e756c..704d45f30 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/CountAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/CountAll.cs @@ -16,9 +16,11 @@ public partial class DbRepository : IDisposable /// /// The type of the data entity. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// An integer value that holds the number of rows from the table. public long CountAll(string hints = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null) where TEntity : class { @@ -30,7 +32,8 @@ public partial class DbRepository : IDisposable // Call the method return connection.CountAll(hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -50,10 +53,12 @@ public partial class DbRepository : IDisposable /// /// The type of the data entity. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAllAsync(string hints = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -66,7 +71,8 @@ public partial class DbRepository : IDisposable // Call the method return await connection.CountAllAsync(hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -88,9 +94,11 @@ public partial class DbRepository : IDisposable /// The transaction to be used. /// The name of the target table. /// The table hints to be used. + /// The tracing key to be used. /// An integer value that holds the number of rows from the table. public long CountAll(string tableName, string hints = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null) { // Create a connection @@ -102,7 +110,8 @@ public partial class DbRepository : IDisposable return connection.CountAll(tableName: tableName, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -123,10 +132,12 @@ public partial class DbRepository : IDisposable /// The transaction to be used. /// The name of the target table. /// The table hints to be used. + /// The tracing key to be used. /// The object to be used during the asynchronous operation. /// An integer value that holds the number of rows from the table. public async Task CountAllAsync(string tableName, string hints = null, + string traceKey = TraceKeys.CountAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -139,7 +150,8 @@ public partial class DbRepository : IDisposable return await connection.CountAllAsync(tableName: tableName, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Delete.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Delete.cs index 9d78fecff..b54cdc0fd 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Delete.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Delete.cs @@ -19,10 +19,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The data entity object to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(TEntity entity, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -35,7 +37,8 @@ public partial class DbRepository : IDisposable return connection.Delete(entity: entity, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -53,10 +56,12 @@ public partial class DbRepository : IDisposable /// The type of the expression or the key value. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(TWhat what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -69,7 +74,8 @@ public partial class DbRepository : IDisposable return connection.Delete(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -86,10 +92,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The dynamic expression or the primary/identity key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(object what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -102,7 +110,8 @@ public partial class DbRepository : IDisposable return connection.Delete(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -119,10 +128,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(Expression> where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -135,7 +146,8 @@ public partial class DbRepository : IDisposable return connection.Delete(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -152,10 +164,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(QueryField where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -168,7 +182,8 @@ public partial class DbRepository : IDisposable return connection.Delete(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -185,10 +200,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(IEnumerable where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -201,7 +218,8 @@ public partial class DbRepository : IDisposable return connection.Delete(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -218,10 +236,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(QueryGroup where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) where TEntity : class { @@ -234,7 +254,8 @@ public partial class DbRepository : IDisposable return connection.Delete(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -255,11 +276,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The data entity object to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(TEntity entity, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -273,7 +296,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(entity: entity, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -292,11 +316,13 @@ public partial class DbRepository : IDisposable /// The type of the expression or the key value. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(TWhat what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -310,7 +336,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -328,11 +355,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(object what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -346,7 +375,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -364,11 +394,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(Expression> where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -382,7 +414,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -400,11 +433,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(QueryField where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -418,7 +453,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -436,11 +472,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(IEnumerable where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -454,7 +492,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -472,11 +511,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(QueryGroup where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -490,7 +531,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -513,11 +555,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(string tableName, TWhat what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) { // Create a connection @@ -530,7 +574,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -547,11 +592,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(string tableName, object what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) { // Create a connection @@ -564,7 +611,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -581,11 +629,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(string tableName, QueryField where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) { // Create a connection @@ -598,7 +648,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -615,11 +666,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(string tableName, IEnumerable where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) { // Create a connection @@ -632,7 +685,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -649,11 +703,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int Delete(string tableName, QueryGroup where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null) { // Create a connection @@ -666,7 +722,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -688,12 +745,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(string tableName, TWhat what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -707,7 +766,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -725,12 +785,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The data entity object, the dynamic expression or the key value to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(string tableName, object what, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -744,7 +806,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -762,12 +825,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(string tableName, QueryField where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -781,7 +846,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -799,12 +865,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(string tableName, IEnumerable where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -818,7 +886,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -836,12 +905,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAsync(string tableName, QueryGroup where, string hints = null, + string traceKey = TraceKeys.Delete, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -855,7 +926,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/DeleteAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/DeleteAll.cs index e76334453..ee3f126dd 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/DeleteAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/DeleteAll.cs @@ -19,11 +19,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of data entity objects to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(string tableName, IEnumerable entities, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -37,7 +39,8 @@ public partial class DbRepository : IDisposable entities: entities, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -56,11 +59,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(string tableName, IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -74,7 +79,8 @@ public partial class DbRepository : IDisposable keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -92,11 +98,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(string tableName, IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -110,7 +118,8 @@ public partial class DbRepository : IDisposable keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -127,10 +136,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The list of data entity objects to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(IEnumerable entities, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -143,7 +154,8 @@ public partial class DbRepository : IDisposable return connection.DeleteAll(entities: entities, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -161,10 +173,12 @@ public partial class DbRepository : IDisposable /// The type of the key column. /// The list of the keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -177,7 +191,8 @@ public partial class DbRepository : IDisposable return connection.DeleteAll(keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -194,10 +209,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The list of the keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -210,7 +227,8 @@ public partial class DbRepository : IDisposable return connection.DeleteAll(keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -226,9 +244,11 @@ public partial class DbRepository : IDisposable /// /// The type of the data entity. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) where TEntity : class { @@ -240,7 +260,8 @@ public partial class DbRepository : IDisposable // Call the method return connection.DeleteAll(hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -262,12 +283,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of data entity objects to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(string tableName, IEnumerable entities, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -282,7 +305,8 @@ public partial class DbRepository : IDisposable entities: entities, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -302,12 +326,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(string tableName, IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -322,7 +348,8 @@ public partial class DbRepository : IDisposable keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -341,12 +368,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(string tableName, IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -361,7 +390,8 @@ public partial class DbRepository : IDisposable keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -379,11 +409,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The list of data entity objects to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(IEnumerable entities, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -397,7 +429,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAllAsync(entities: entities, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -416,11 +449,13 @@ public partial class DbRepository : IDisposable /// The type of the key column. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -434,7 +469,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAllAsync(keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -452,11 +488,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -470,7 +508,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAllAsync(keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -487,10 +526,12 @@ public partial class DbRepository : IDisposable /// /// The type of the data entity. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -503,7 +544,8 @@ public partial class DbRepository : IDisposable // Call the method return await connection.DeleteAllAsync(hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -525,11 +567,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows that has been deleted from the table. public int DeleteAll(string tableName, IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) { // Create a connection @@ -542,7 +586,8 @@ public partial class DbRepository : IDisposable keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -557,11 +602,13 @@ public partial class DbRepository : IDisposable /// Delete all the rows from the table. /// /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The name of the target table. /// The number of rows that has been deleted from the table. public int DeleteAll(string tableName, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null) { // Create a connection @@ -573,7 +620,8 @@ public partial class DbRepository : IDisposable return connection.DeleteAll(tableName: tableName, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -594,12 +642,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The list of the primary keys to be deleted. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(string tableName, IEnumerable keys, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -613,7 +663,8 @@ public partial class DbRepository : IDisposable keys: keys, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -629,12 +680,14 @@ public partial class DbRepository : IDisposable /// Delete all the rows from the table in an asynchronous way. /// /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The name of the target table. /// The object to be used during the asynchronous operation. /// The number of rows that has been deleted from the table. public async Task DeleteAllAsync(string tableName, string hints = null, + string traceKey = TraceKeys.DeleteAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -647,7 +700,8 @@ public partial class DbRepository : IDisposable return await connection.DeleteAllAsync(tableName: tableName, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Exists.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Exists.cs index 06d9b2ce6..23eabb738 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Exists.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Exists.cs @@ -19,10 +19,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The dynamic expression or the primary/identity key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(object what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) where TEntity : class { @@ -35,7 +37,8 @@ public partial class DbRepository : IDisposable return connection.Exists(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -53,10 +56,12 @@ public partial class DbRepository : IDisposable /// The type of the expression or the key value. /// The dynamic expression or the primary/identity key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(TWhat what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) where TEntity : class { @@ -69,7 +74,8 @@ public partial class DbRepository : IDisposable return connection.Exists(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -86,10 +92,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(Expression> where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) where TEntity : class { @@ -102,7 +110,8 @@ public partial class DbRepository : IDisposable return connection.Exists(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -119,10 +128,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(QueryField where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) where TEntity : class { @@ -135,7 +146,8 @@ public partial class DbRepository : IDisposable return connection.Exists(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -152,10 +164,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(IEnumerable where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) where TEntity : class { @@ -168,7 +182,8 @@ public partial class DbRepository : IDisposable return connection.Exists(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -185,10 +200,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(QueryGroup where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) where TEntity : class { @@ -201,7 +218,8 @@ public partial class DbRepository : IDisposable return connection.Exists(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -222,11 +240,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(object what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -240,7 +260,8 @@ public partial class DbRepository : IDisposable return await connection.ExistsAsync(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -259,11 +280,13 @@ public partial class DbRepository : IDisposable /// The type of the expression or the key value. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(TWhat what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -277,7 +300,8 @@ public partial class DbRepository : IDisposable return await connection.ExistsAsync(what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -295,11 +319,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(Expression> where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -313,7 +339,8 @@ public partial class DbRepository : IDisposable return await connection.ExistsAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -331,11 +358,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(QueryField where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -349,7 +378,8 @@ public partial class DbRepository : IDisposable return await connection.ExistsAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -367,11 +397,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(IEnumerable where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -385,7 +417,8 @@ public partial class DbRepository : IDisposable return await connection.ExistsAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -403,11 +436,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(QueryGroup where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -421,7 +456,8 @@ public partial class DbRepository : IDisposable return await connection.ExistsAsync(where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -444,11 +480,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(string tableName, TWhat what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) { // Create a connection @@ -461,7 +499,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -478,11 +517,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(string tableName, object what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) { // Create a connection @@ -495,7 +536,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -512,11 +554,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(string tableName, QueryField where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) { // Create a connection @@ -529,7 +573,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -546,11 +591,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(string tableName, IEnumerable where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) { // Create a connection @@ -563,7 +610,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -580,11 +628,13 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// A boolean value that indicates whether the rows are existing in the table. public bool Exists(string tableName, QueryGroup where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null) { // Create a connection @@ -597,7 +647,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -619,12 +670,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(string tableName, TWhat what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -638,7 +691,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -656,12 +710,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The dynamic expression or the key value to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(string tableName, object what, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -675,7 +731,8 @@ public partial class DbRepository : IDisposable what: what, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -693,12 +750,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(string tableName, QueryField where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -712,7 +771,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -730,12 +790,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(string tableName, IEnumerable where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -749,7 +811,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -767,12 +830,14 @@ public partial class DbRepository : IDisposable /// The name of the target table to be used. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A boolean value that indicates whether the rows are existing in the table. public async Task ExistsAsync(string tableName, QueryGroup where, string hints = null, + string traceKey = TraceKeys.Exists, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -786,7 +851,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Insert.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Insert.cs index 05546daf1..819f9aac4 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Insert.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Insert.cs @@ -20,12 +20,14 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Insert(string tableName, TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null) where TEntity : class { @@ -40,7 +42,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -60,12 +63,14 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Insert(string tableName, TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null) where TEntity : class { @@ -80,7 +85,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -98,11 +104,13 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Insert(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null) where TEntity : class { @@ -116,7 +124,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -135,11 +144,13 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Insert(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null) where TEntity : class { @@ -153,7 +164,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -176,6 +188,7 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -183,6 +196,7 @@ public partial class DbRepository : IDisposable TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -198,7 +212,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -219,6 +234,7 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -226,6 +242,7 @@ public partial class DbRepository : IDisposable TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -241,7 +258,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -260,12 +278,14 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public async Task InsertAsync(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -280,7 +300,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -300,12 +321,14 @@ public partial class DbRepository : IDisposable /// The data entity object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public async Task InsertAsync(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -320,7 +343,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -343,12 +367,14 @@ public partial class DbRepository : IDisposable /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Insert(string tableName, object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null) { // Create a connection @@ -362,7 +388,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -381,12 +408,14 @@ public partial class DbRepository : IDisposable /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Insert(string tableName, object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null) { // Create a connection @@ -400,7 +429,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -422,6 +452,7 @@ public partial class DbRepository : IDisposable /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -429,6 +460,7 @@ public partial class DbRepository : IDisposable object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -443,7 +475,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -463,6 +496,7 @@ public partial class DbRepository : IDisposable /// The dynamic object to be inserted. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the primary key of the newly inserted data. @@ -470,6 +504,7 @@ public partial class DbRepository : IDisposable object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Insert, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -484,7 +519,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/InsertAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/InsertAll.cs index 4fd3da19d..8da2e2b81 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/InsertAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/InsertAll.cs @@ -21,6 +21,7 @@ public partial class DbRepository : IDisposable /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of inserted rows in the table. public int InsertAll(string tableName, @@ -28,6 +29,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null) where TEntity : class { @@ -43,7 +45,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -62,12 +65,14 @@ public partial class DbRepository : IDisposable /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of inserted rows in the table. public int InsertAll(IEnumerable entities, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null) where TEntity : class { @@ -82,7 +87,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -106,6 +112,7 @@ public partial class DbRepository : IDisposable /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of inserted rows in the table. @@ -114,6 +121,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -130,7 +138,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -150,6 +159,7 @@ public partial class DbRepository : IDisposable /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of inserted rows in the table. @@ -157,6 +167,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -172,7 +183,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -196,6 +208,7 @@ public partial class DbRepository : IDisposable /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of inserted rows in the table. public int InsertAll(string tableName, @@ -203,6 +216,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null) { // Create a connection @@ -217,7 +231,8 @@ public partial class DbRepository : IDisposable batchSize: batchSize, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -240,6 +255,7 @@ public partial class DbRepository : IDisposable /// The batch size of the insertion. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of inserted rows in the table. @@ -248,6 +264,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.InsertAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -263,7 +280,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Max.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Max.cs index f2d7e3edb..ad2b9c990 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Max.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Max.cs @@ -20,11 +20,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -38,7 +40,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -56,11 +59,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -74,7 +79,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -92,11 +98,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -110,7 +118,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -128,11 +137,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -146,7 +157,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -164,11 +176,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -182,7 +196,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -200,11 +215,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -218,7 +235,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -236,11 +254,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -254,7 +274,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -272,11 +293,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -290,7 +313,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -308,11 +332,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -326,7 +352,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -344,11 +371,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -362,7 +391,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -381,11 +411,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -399,7 +431,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -418,11 +451,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -455,11 +491,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -473,7 +511,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -492,11 +531,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -510,7 +551,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -529,11 +571,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -547,7 +591,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -566,11 +611,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -584,7 +631,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -603,11 +651,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -621,7 +671,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -640,11 +691,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -658,7 +711,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -677,11 +731,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -695,7 +751,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -714,11 +771,13 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) where TEntity : class { @@ -732,7 +791,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -754,12 +814,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -774,7 +836,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -793,12 +856,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -813,7 +878,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -832,12 +898,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -852,7 +920,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -871,12 +940,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -891,7 +962,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -910,12 +982,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -930,7 +1004,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -949,12 +1024,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -969,7 +1046,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -988,12 +1066,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1008,7 +1088,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1027,12 +1108,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1047,7 +1130,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1066,12 +1150,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1086,7 +1172,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1105,12 +1192,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1125,7 +1214,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1145,12 +1235,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1165,7 +1257,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1185,12 +1278,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1205,7 +1300,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1225,12 +1321,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1245,7 +1343,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1265,12 +1364,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1285,7 +1386,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1305,12 +1407,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1325,7 +1429,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1345,12 +1450,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1365,7 +1472,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1385,12 +1493,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1405,7 +1515,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1425,12 +1536,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1445,7 +1558,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1465,12 +1579,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1485,7 +1601,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1505,12 +1622,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1525,7 +1644,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1548,12 +1668,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1567,7 +1689,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1585,12 +1708,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1604,7 +1729,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1622,12 +1748,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1641,7 +1769,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1659,12 +1788,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object Max(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1678,7 +1809,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1697,12 +1829,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1716,7 +1850,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1735,12 +1870,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1754,7 +1891,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1773,12 +1911,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1792,7 +1932,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1811,12 +1952,14 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult Max(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null) { // Create a connection @@ -1830,7 +1973,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1852,6 +1996,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -1859,6 +2004,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1873,7 +2019,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1892,6 +2039,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -1899,6 +2047,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1913,7 +2062,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1932,6 +2082,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -1939,6 +2090,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1953,7 +2105,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1972,6 +2125,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -1979,6 +2133,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1993,7 +2148,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2013,6 +2169,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -2020,6 +2177,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2034,7 +2192,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2054,6 +2213,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -2061,6 +2221,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2075,7 +2236,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2095,6 +2257,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -2102,6 +2265,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2116,7 +2280,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2136,6 +2301,7 @@ public partial class DbRepository : IDisposable /// The field to be maximized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. @@ -2143,6 +2309,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Max, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2157,7 +2324,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/MaxAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/MaxAll.cs index dd56319a7..20e1db7fe 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/MaxAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/MaxAll.cs @@ -18,10 +18,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object MaxAll(Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null) where TEntity : class { @@ -34,7 +36,8 @@ public partial class DbRepository : IDisposable return connection.MaxAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -51,10 +54,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object MaxAll(Expression> field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null) where TEntity : class { @@ -67,7 +72,8 @@ public partial class DbRepository : IDisposable return connection.MaxAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -85,10 +91,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult MaxAll(Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null) where TEntity : class { @@ -101,7 +109,8 @@ public partial class DbRepository : IDisposable return connection.MaxAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -119,10 +128,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult MaxAll(Expression> field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null) where TEntity : class { @@ -135,7 +146,8 @@ public partial class DbRepository : IDisposable return connection.MaxAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -156,11 +168,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -174,7 +188,8 @@ public partial class DbRepository : IDisposable return await connection.MaxAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -192,11 +207,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -210,7 +227,8 @@ public partial class DbRepository : IDisposable return await connection.MaxAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -229,11 +247,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -247,7 +267,8 @@ public partial class DbRepository : IDisposable return await connection.MaxAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -266,11 +287,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -284,7 +307,8 @@ public partial class DbRepository : IDisposable return await connection.MaxAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -306,11 +330,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public object MaxAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null) { // Create a connection @@ -323,7 +349,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -341,11 +368,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The max value of the target field. public TResult MaxAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null) { // Create a connection @@ -358,7 +387,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -379,12 +409,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -398,7 +430,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -417,12 +450,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be maximized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The max value of the target field. public async Task MaxAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MaxAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Merge.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Merge.cs index ea39fc860..dcd7a982c 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Merge.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Merge.cs @@ -21,12 +21,14 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -40,7 +42,8 @@ public partial class DbRepository : IDisposable entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -60,6 +63,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, @@ -67,6 +71,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -82,7 +87,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -102,6 +108,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, @@ -109,6 +116,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -124,7 +132,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -144,6 +153,7 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, @@ -151,6 +161,7 @@ public partial class DbRepository : IDisposable Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -166,7 +177,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -186,12 +198,14 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -206,7 +220,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -227,6 +242,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, @@ -234,6 +250,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -249,7 +266,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -270,6 +288,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, @@ -277,6 +296,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -292,7 +312,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -313,6 +334,7 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, @@ -320,6 +342,7 @@ public partial class DbRepository : IDisposable Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -335,7 +358,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -353,11 +377,13 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -370,7 +396,8 @@ public partial class DbRepository : IDisposable return connection.Merge(entity: entity, fields: fields, hints: hints, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -389,12 +416,14 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -409,7 +438,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -428,12 +458,14 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -448,7 +480,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -467,12 +500,14 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(TEntity entity, Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -487,7 +522,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -506,11 +542,13 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -524,7 +562,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -544,12 +583,14 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -564,7 +605,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -584,12 +626,14 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -604,7 +648,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -624,12 +669,14 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(TEntity entity, Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) where TEntity : class { @@ -644,7 +691,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -667,6 +715,7 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -674,6 +723,7 @@ public partial class DbRepository : IDisposable TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -689,7 +739,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -710,6 +761,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -718,6 +770,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -734,7 +787,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -755,6 +809,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -763,6 +818,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -779,7 +835,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -800,6 +857,7 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -808,6 +866,7 @@ public partial class DbRepository : IDisposable Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -824,7 +883,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -845,6 +905,7 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -852,6 +913,7 @@ public partial class DbRepository : IDisposable TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -867,7 +929,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -889,6 +952,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -897,6 +961,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -913,7 +978,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -935,6 +1001,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -943,6 +1010,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -959,7 +1027,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -981,6 +1050,7 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -989,6 +1059,7 @@ public partial class DbRepository : IDisposable Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1005,7 +1076,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1024,12 +1096,14 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public async Task MergeAsync(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1044,7 +1118,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1064,6 +1139,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1071,6 +1147,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1086,7 +1163,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1106,6 +1184,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1113,6 +1192,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1128,7 +1208,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1148,6 +1229,7 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1155,6 +1237,7 @@ public partial class DbRepository : IDisposable Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1170,7 +1253,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1190,12 +1274,14 @@ public partial class DbRepository : IDisposable /// The object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. public async Task MergeAsync(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1210,7 +1296,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1231,6 +1318,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1238,6 +1326,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1253,7 +1342,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1274,6 +1364,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1281,6 +1372,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1296,7 +1388,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1317,6 +1410,7 @@ public partial class DbRepository : IDisposable /// The expression for the qualifier fields. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1324,6 +1418,7 @@ public partial class DbRepository : IDisposable Expression> qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1339,7 +1434,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1362,12 +1458,14 @@ public partial class DbRepository : IDisposable /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) { // Create a connection @@ -1381,7 +1479,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1400,6 +1499,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, @@ -1407,6 +1507,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) { // Create a connection @@ -1421,7 +1522,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1440,6 +1542,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public object Merge(string tableName, @@ -1447,6 +1550,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) { // Create a connection @@ -1461,7 +1565,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1480,12 +1585,14 @@ public partial class DbRepository : IDisposable /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) { // Create a connection @@ -1499,7 +1606,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1519,6 +1627,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, @@ -1526,6 +1635,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) { // Create a connection @@ -1540,7 +1650,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1560,6 +1671,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The value of the identity field if present, otherwise, the value of the primary field. public TResult Merge(string tableName, @@ -1567,6 +1679,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null) { // Create a connection @@ -1581,7 +1694,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1603,6 +1717,7 @@ public partial class DbRepository : IDisposable /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1610,6 +1725,7 @@ public partial class DbRepository : IDisposable object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1624,7 +1740,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1644,6 +1761,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1652,6 +1770,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1667,7 +1786,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1687,6 +1807,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1695,6 +1816,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1710,7 +1832,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1730,6 +1853,7 @@ public partial class DbRepository : IDisposable /// The dynamic object to be merged. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1737,6 +1861,7 @@ public partial class DbRepository : IDisposable object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1751,7 +1876,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1772,6 +1898,7 @@ public partial class DbRepository : IDisposable /// The qualifier field to be used during merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1780,6 +1907,7 @@ public partial class DbRepository : IDisposable Field qualifier, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1795,7 +1923,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1816,6 +1945,7 @@ public partial class DbRepository : IDisposable /// The list of qualifier fields to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The value of the identity field if present, otherwise, the value of the primary field. @@ -1824,6 +1954,7 @@ public partial class DbRepository : IDisposable IEnumerable qualifiers, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Merge, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1839,7 +1970,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/MergeAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/MergeAll.cs index 6e3dfa807..f67ff78d9 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/MergeAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/MergeAll.cs @@ -22,6 +22,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(string tableName, @@ -29,6 +30,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) where TEntity : class { @@ -44,7 +46,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -65,6 +68,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(string tableName, @@ -73,6 +77,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) where TEntity : class { @@ -89,7 +94,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -110,6 +116,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(string tableName, @@ -118,6 +125,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) where TEntity : class { @@ -134,7 +142,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -153,12 +162,14 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(IEnumerable entities, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) where TEntity : class { @@ -173,7 +184,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -193,6 +205,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(IEnumerable entities, @@ -200,6 +213,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) where TEntity : class { @@ -215,7 +229,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -235,6 +250,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(IEnumerable entities, @@ -242,6 +258,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) where TEntity : class { @@ -257,7 +274,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -281,6 +299,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -289,6 +308,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -305,7 +325,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -327,6 +348,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -336,6 +358,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -353,7 +376,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -375,6 +399,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -384,6 +409,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -401,7 +427,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -421,6 +448,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -428,6 +456,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -443,7 +472,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -464,6 +494,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -472,6 +503,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -488,7 +520,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -509,6 +542,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -517,6 +551,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -533,7 +568,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -557,6 +593,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(string tableName, @@ -564,6 +601,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) { // Create a connection @@ -578,7 +616,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -598,6 +637,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the merge process. public int MergeAll(string tableName, @@ -606,6 +646,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null) { // Create a connection @@ -621,7 +662,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -644,6 +686,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -652,6 +695,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -667,7 +711,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -688,6 +733,7 @@ public partial class DbRepository : IDisposable /// The batch size of the merge operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the merge process. @@ -697,6 +743,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.MergeAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -713,7 +760,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Min.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Min.cs index f08d6da10..2292fda51 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Min.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Min.cs @@ -20,11 +20,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -38,7 +40,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -56,11 +59,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -74,7 +79,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -92,11 +98,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -110,7 +118,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -128,11 +137,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -146,7 +157,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -164,11 +176,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -182,7 +196,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -200,11 +215,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -218,7 +235,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -236,11 +254,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -254,7 +274,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -272,11 +293,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -290,7 +313,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -308,11 +332,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -326,7 +352,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -344,11 +371,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -362,7 +391,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -381,11 +411,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -399,7 +431,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -418,11 +451,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -455,11 +491,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -473,7 +511,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -492,11 +531,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -510,7 +551,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -529,11 +571,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -547,7 +591,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -566,11 +611,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -584,7 +631,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -603,11 +651,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -621,7 +671,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -640,11 +691,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -658,7 +711,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -677,11 +731,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -695,7 +751,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -714,11 +771,13 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) where TEntity : class { @@ -732,7 +791,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -754,12 +814,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -774,7 +836,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -793,12 +856,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -813,7 +878,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -832,12 +898,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -852,7 +920,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -871,12 +940,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -891,7 +962,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -910,12 +982,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -930,7 +1004,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -949,12 +1024,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -969,7 +1046,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -988,12 +1066,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1008,7 +1088,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1027,12 +1108,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1047,7 +1130,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1066,12 +1150,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1086,7 +1172,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1105,12 +1192,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1125,7 +1214,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1145,12 +1235,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1165,7 +1257,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1185,12 +1278,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1205,7 +1300,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1225,12 +1321,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1245,7 +1343,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1265,12 +1364,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1285,7 +1386,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1305,12 +1407,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1325,7 +1429,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1345,12 +1450,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1365,7 +1472,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1385,12 +1493,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1405,7 +1515,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1425,12 +1536,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1445,7 +1558,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1465,12 +1579,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1485,7 +1601,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1505,12 +1622,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1525,7 +1644,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1548,12 +1668,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1567,7 +1689,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1585,12 +1708,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1604,7 +1729,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1622,12 +1748,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1641,7 +1769,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1659,12 +1788,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object Min(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1678,7 +1809,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1697,12 +1829,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1716,7 +1850,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1735,12 +1870,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1754,7 +1891,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1773,12 +1911,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1792,7 +1932,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1811,12 +1952,14 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult Min(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null) { // Create a connection @@ -1830,7 +1973,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1852,6 +1996,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -1859,6 +2004,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1873,7 +2019,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1892,6 +2039,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -1899,6 +2047,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1913,7 +2062,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1932,6 +2082,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -1939,6 +2090,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1953,7 +2105,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1972,6 +2125,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -1979,6 +2133,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1993,7 +2148,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2013,6 +2169,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -2020,6 +2177,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2034,7 +2192,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2054,6 +2213,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -2061,6 +2221,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2075,7 +2236,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2095,6 +2257,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -2102,6 +2265,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2116,7 +2280,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2136,6 +2301,7 @@ public partial class DbRepository : IDisposable /// The field to be minimized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. @@ -2143,6 +2309,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Min, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2157,7 +2324,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/MinAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/MinAll.cs index 336fa2f5c..366af6324 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/MinAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/MinAll.cs @@ -18,10 +18,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object MinAll(Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null) where TEntity : class { @@ -34,7 +36,8 @@ public partial class DbRepository : IDisposable return connection.MinAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -51,10 +54,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object MinAll(Expression> field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null) where TEntity : class { @@ -67,7 +72,8 @@ public partial class DbRepository : IDisposable return connection.MinAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -85,10 +91,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult MinAll(Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null) where TEntity : class { @@ -101,7 +109,8 @@ public partial class DbRepository : IDisposable return connection.MinAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -119,10 +128,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult MinAll(Expression> field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null) where TEntity : class { @@ -135,7 +146,8 @@ public partial class DbRepository : IDisposable return connection.MinAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -156,11 +168,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -174,7 +188,8 @@ public partial class DbRepository : IDisposable return await connection.MinAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -192,11 +207,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -210,7 +227,8 @@ public partial class DbRepository : IDisposable return await connection.MinAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -229,11 +247,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -247,7 +267,8 @@ public partial class DbRepository : IDisposable return await connection.MinAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -266,11 +287,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -284,7 +307,8 @@ public partial class DbRepository : IDisposable return await connection.MinAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -306,11 +330,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public object MinAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null) { // Create a connection @@ -323,7 +349,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -341,11 +368,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The min value of the target field. public TResult MinAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null) { // Create a connection @@ -358,7 +387,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -379,12 +409,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -398,7 +430,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -417,12 +450,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be minimized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The min value of the target field. public async Task MinAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.MinAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Query.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Query.cs index 83e32aaf5..a4d286bf3 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Query.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Query.cs @@ -23,7 +23,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, @@ -32,6 +33,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -51,7 +53,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -74,7 +77,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, @@ -83,6 +87,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -102,7 +107,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -124,7 +130,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, @@ -133,6 +140,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -152,7 +160,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -174,7 +183,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, @@ -183,6 +193,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -202,7 +213,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -224,7 +236,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, @@ -233,6 +246,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -252,7 +266,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -274,7 +289,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(string tableName, @@ -283,6 +299,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -302,7 +319,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -323,7 +341,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(object what, @@ -331,6 +350,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -349,7 +369,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -371,7 +392,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(TWhat what, @@ -379,6 +401,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -397,7 +420,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -418,7 +442,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(Expression> where, @@ -426,6 +451,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -444,7 +470,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -465,7 +492,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(QueryField where, @@ -473,6 +501,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class { @@ -490,7 +519,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -511,7 +541,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(IEnumerable where, @@ -519,6 +550,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -537,7 +569,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -558,7 +591,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable Query(QueryGroup where, @@ -566,6 +600,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) where TEntity : class @@ -584,7 +619,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -610,7 +646,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -620,6 +657,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -640,7 +678,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -664,7 +703,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -674,6 +714,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -694,7 +735,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -717,7 +759,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -727,6 +770,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -747,7 +791,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -770,7 +815,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -780,6 +826,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -800,7 +847,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -823,7 +871,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -833,6 +882,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -853,7 +903,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -876,7 +927,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -886,6 +938,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -906,7 +959,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -928,7 +982,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -937,6 +992,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -956,7 +1012,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -979,7 +1036,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -988,6 +1046,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1007,7 +1066,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1029,7 +1089,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -1038,6 +1099,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1057,7 +1119,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1079,7 +1142,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -1088,6 +1152,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1107,7 +1172,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1129,7 +1195,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -1138,6 +1205,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1157,7 +1225,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1179,7 +1248,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -1188,6 +1258,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1207,7 +1278,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1234,7 +1306,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable Query(string tableName, @@ -1243,6 +1316,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) { @@ -1261,7 +1335,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1282,7 +1357,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable Query(string tableName, @@ -1291,6 +1367,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) { @@ -1309,7 +1386,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1330,7 +1408,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable Query(string tableName, @@ -1339,6 +1418,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) { // Create a connection @@ -1356,7 +1436,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1377,7 +1458,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable Query(string tableName, @@ -1386,6 +1468,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) { @@ -1404,7 +1487,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1425,7 +1509,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of dynamic objects. public IEnumerable Query(string tableName, @@ -1434,6 +1519,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null) { @@ -1452,7 +1538,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1478,7 +1565,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1488,6 +1576,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1507,7 +1596,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1529,7 +1619,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1539,6 +1630,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1558,7 +1650,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1580,7 +1673,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1590,6 +1684,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1609,7 +1704,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1631,7 +1727,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1641,6 +1738,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1660,7 +1758,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -1682,7 +1781,8 @@ public partial class DbRepository : IDisposable /// The order definition of the fields to be used. /// The number of rows to be returned. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of dynamic objects. @@ -1692,6 +1792,7 @@ public partial class DbRepository : IDisposable IEnumerable orderBy = null, int? top = 0, string hints = null, + string traceKey = TraceKeys.Query, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) @@ -1711,7 +1812,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/QueryAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/QueryAll.cs index 006b999ea..fd010d347 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/QueryAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/QueryAll.cs @@ -20,14 +20,16 @@ public partial class DbRepository : IDisposable /// The mapping list of objects to be used. /// The order definition of the fields to be used. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable QueryAll(string tableName, IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, - string cacheKey = null, + string cacheKey = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null) where TEntity : class { @@ -44,7 +46,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -63,13 +66,15 @@ public partial class DbRepository : IDisposable /// The mapping list of objects to be used. /// The order definition of the fields to be used. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable QueryAll(IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, - string cacheKey = null, + string cacheKey = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null) where TEntity : class { @@ -85,7 +90,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -109,7 +115,8 @@ public partial class DbRepository : IDisposable /// The mapping list of objects to be used. /// The order definition of the fields to be used. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -117,7 +124,8 @@ public partial class DbRepository : IDisposable IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, - string cacheKey = null, + string cacheKey = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -135,7 +143,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -155,14 +164,16 @@ public partial class DbRepository : IDisposable /// The mapping list of objects to be used. /// The order definition of the fields to be used. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. public async Task> QueryAllAsync(IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, - string cacheKey = null, + string cacheKey = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -179,7 +190,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -203,14 +215,16 @@ public partial class DbRepository : IDisposable /// The mapping list of objects to be used. /// The order definition of the fields to be used. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// An enumerable list of data entity objects. public IEnumerable QueryAll(string tableName, IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, - string cacheKey = null, + string cacheKey = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null) { // Create a connection @@ -226,7 +240,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -249,7 +264,8 @@ public partial class DbRepository : IDisposable /// The mapping list of objects to be used. /// The order definition of the fields to be used. /// The table hints to be used. - /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The key to the cache item. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// An enumerable list of data entity objects. @@ -257,7 +273,8 @@ public partial class DbRepository : IDisposable IEnumerable fields = null, IEnumerable orderBy = null, string hints = null, - string cacheKey = null, + string cacheKey = null, + string traceKey = TraceKeys.QueryAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -274,7 +291,8 @@ public partial class DbRepository : IDisposable cacheKey: cacheKey, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/QueryMultiple.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/QueryMultiple.cs index c1e022d17..d5afa4898 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/QueryMultiple.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/QueryMultiple.cs @@ -32,7 +32,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(object what1, object what2, @@ -46,7 +47,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -70,7 +72,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -99,7 +102,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(Expression> where1, Expression> where2, @@ -113,7 +117,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -137,7 +142,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -166,7 +172,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(QueryField where1, QueryField where2, @@ -180,7 +187,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -204,7 +212,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -233,7 +242,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(IEnumerable where1, IEnumerable where2, @@ -247,7 +257,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -271,7 +282,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -300,7 +312,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(QueryGroup where1, QueryGroup where2, @@ -314,7 +327,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -338,7 +352,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -378,7 +393,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(object what1, object what2, @@ -398,7 +414,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -429,7 +446,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -465,7 +483,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(Expression> where1, Expression> where2, @@ -485,7 +504,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -516,7 +536,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -552,7 +573,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(QueryField where1, QueryField where2, @@ -572,7 +594,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -603,7 +626,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -639,7 +663,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(IEnumerable where1, IEnumerable where2, @@ -659,7 +684,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -690,7 +716,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -726,7 +753,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(QueryGroup where1, QueryGroup where2, @@ -746,7 +774,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -777,7 +806,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -824,7 +854,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(object what1, @@ -851,7 +882,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -889,7 +921,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -932,7 +965,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(Expression> where1, @@ -959,7 +993,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -997,7 +1032,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1040,7 +1076,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryField where1, @@ -1067,7 +1104,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1105,7 +1143,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1148,7 +1187,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(IEnumerable where1, @@ -1175,7 +1215,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1213,7 +1254,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1256,7 +1298,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryGroup where1, @@ -1283,7 +1326,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1321,7 +1365,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1375,7 +1420,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(object what1, @@ -1408,7 +1454,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1453,7 +1500,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1503,7 +1551,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(Expression> where1, @@ -1536,7 +1585,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1581,7 +1631,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1631,7 +1682,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryField where1, @@ -1664,7 +1716,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1709,7 +1762,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1759,7 +1813,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(IEnumerable where1, @@ -1792,7 +1847,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1837,7 +1893,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -1887,7 +1944,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryGroup where1, @@ -1920,7 +1978,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -1965,7 +2024,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2026,7 +2086,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(object what1, @@ -2065,7 +2126,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -2117,7 +2179,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2174,7 +2237,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(Expression> where1, @@ -2213,7 +2277,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -2265,7 +2330,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2322,7 +2388,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryField where1, @@ -2361,7 +2428,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -2413,7 +2481,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2470,7 +2539,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(IEnumerable where1, @@ -2509,7 +2579,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -2561,7 +2632,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2618,7 +2690,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryGroup where1, @@ -2657,7 +2730,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -2709,7 +2783,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2777,7 +2852,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(object what1, @@ -2822,7 +2898,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -2881,7 +2958,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -2945,7 +3023,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(Expression> where1, @@ -2990,7 +3069,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -3049,7 +3129,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -3113,7 +3194,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryField where1, @@ -3158,7 +3240,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -3217,7 +3300,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -3281,7 +3365,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(IEnumerable where1, @@ -3326,7 +3411,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -3385,7 +3471,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -3449,7 +3536,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(QueryGroup where1, @@ -3494,7 +3582,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -3553,7 +3642,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -3590,7 +3680,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(object what1, @@ -3605,7 +3696,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -3630,7 +3722,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -3660,7 +3753,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(Expression> where1, @@ -3675,7 +3769,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -3700,7 +3795,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -3730,7 +3826,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(QueryField where1, @@ -3745,7 +3842,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -3770,7 +3868,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -3800,7 +3899,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(IEnumerable where1, @@ -3815,7 +3915,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -3840,7 +3941,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -3870,7 +3972,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(QueryGroup where1, @@ -3885,7 +3988,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -3910,7 +4014,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -3951,7 +4056,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(object what1, @@ -3972,7 +4078,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4004,7 +4111,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4041,7 +4149,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(Expression> where1, @@ -4062,7 +4171,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4094,7 +4204,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4131,7 +4242,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(QueryField where1, @@ -4152,7 +4264,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4184,7 +4297,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4221,7 +4335,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(IEnumerable where1, @@ -4242,7 +4357,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4274,7 +4390,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4311,7 +4428,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(QueryGroup where1, @@ -4332,7 +4450,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4364,7 +4483,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4412,7 +4532,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -4440,7 +4561,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4479,7 +4601,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4523,7 +4646,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -4551,7 +4675,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4590,7 +4715,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4634,7 +4760,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -4662,7 +4789,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4701,7 +4829,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4745,7 +4874,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -4773,7 +4903,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4812,7 +4943,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4856,7 +4988,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -4884,7 +5017,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -4923,7 +5057,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -4978,7 +5113,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5012,7 +5148,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5058,7 +5195,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5109,7 +5247,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5143,7 +5282,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5189,7 +5329,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5240,7 +5381,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5274,7 +5416,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5320,7 +5463,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5371,7 +5515,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5405,7 +5550,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5451,7 +5597,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5502,7 +5649,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5536,7 +5684,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5582,7 +5731,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5644,7 +5794,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5684,7 +5835,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5737,7 +5889,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5795,7 +5948,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5835,7 +5989,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -5888,7 +6043,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -5946,7 +6102,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -5986,7 +6143,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -6039,7 +6197,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -6097,7 +6256,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -6137,7 +6297,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -6190,7 +6351,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -6248,7 +6410,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -6288,7 +6451,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -6341,7 +6505,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -6410,7 +6575,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -6456,7 +6622,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -6516,7 +6683,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -6581,7 +6749,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -6627,7 +6796,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -6687,7 +6857,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -6752,7 +6923,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -6798,7 +6970,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -6858,7 +7031,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -6923,7 +7097,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -6969,7 +7144,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -7029,7 +7205,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -7094,7 +7271,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -7140,7 +7318,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -7200,7 +7379,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -7242,7 +7422,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, object what1, @@ -7258,7 +7439,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -7284,7 +7466,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7315,7 +7498,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, Expression> where1, @@ -7331,7 +7515,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -7357,7 +7542,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7388,7 +7574,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, QueryField where1, @@ -7404,7 +7591,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -7430,7 +7618,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7461,7 +7650,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, IEnumerable where1, @@ -7477,7 +7667,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -7503,7 +7694,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7534,7 +7726,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, QueryGroup where1, @@ -7550,7 +7743,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class { @@ -7576,7 +7770,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7619,7 +7814,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, object what1, @@ -7642,7 +7838,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -7676,7 +7873,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7715,7 +7913,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, Expression> where1, @@ -7738,7 +7937,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -7772,7 +7972,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7811,7 +8012,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, QueryField where1, @@ -7834,7 +8036,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -7868,7 +8071,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -7907,7 +8111,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, IEnumerable where1, @@ -7930,7 +8135,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -7964,7 +8170,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8003,7 +8210,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, QueryGroup where1, @@ -8026,7 +8234,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8060,7 +8269,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8111,7 +8321,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8142,7 +8353,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8184,7 +8396,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8231,7 +8444,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8262,7 +8476,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8304,7 +8519,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8351,7 +8567,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8382,7 +8599,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8424,7 +8642,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8471,7 +8690,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8502,7 +8722,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8544,7 +8765,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8591,7 +8813,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8622,7 +8845,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8664,7 +8888,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8723,7 +8948,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8761,7 +8987,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8811,7 +9038,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -8866,7 +9094,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -8904,7 +9133,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -8954,7 +9184,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9009,7 +9240,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9047,7 +9279,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -9097,7 +9330,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9152,7 +9386,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9190,7 +9425,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -9240,7 +9476,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9295,7 +9532,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9333,7 +9571,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -9383,7 +9622,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9450,7 +9690,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9495,7 +9736,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -9553,7 +9795,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9616,7 +9859,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9661,7 +9905,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -9719,7 +9964,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9782,7 +10028,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9827,7 +10074,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -9885,7 +10133,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -9948,7 +10197,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -9993,7 +10243,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -10051,7 +10302,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -10114,7 +10366,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -10159,7 +10412,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -10217,7 +10471,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -10292,7 +10547,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -10344,7 +10600,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -10410,7 +10667,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -10481,7 +10739,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -10533,7 +10792,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -10599,7 +10859,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -10670,7 +10931,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -10722,7 +10984,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -10788,7 +11051,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -10859,7 +11123,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -10911,7 +11176,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -10977,7 +11243,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11048,7 +11315,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -11100,7 +11368,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) where T1 : class where T2 : class where T3 : class @@ -11166,7 +11435,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11203,7 +11473,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, object what1, @@ -11219,7 +11490,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11243,7 +11515,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11272,7 +11545,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, QueryField where1, @@ -11288,7 +11562,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11312,7 +11587,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11341,7 +11617,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, IEnumerable where1, @@ -11357,7 +11634,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11381,7 +11659,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11410,7 +11689,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 2 enumerable target data entity types. public Tuple, IEnumerable> QueryMultiple(string tableName1, QueryGroup where1, @@ -11426,7 +11706,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11450,7 +11731,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11490,7 +11772,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, object what1, @@ -11513,7 +11796,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11544,7 +11828,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11580,7 +11865,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, QueryField where1, @@ -11603,7 +11889,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11634,7 +11921,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11670,7 +11958,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, IEnumerable where1, @@ -11693,7 +11982,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11724,7 +12014,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11760,7 +12051,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 3 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable> QueryMultiple(string tableName1, QueryGroup where1, @@ -11783,7 +12075,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11814,7 +12107,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11861,7 +12155,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -11892,7 +12187,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -11930,7 +12226,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -11973,7 +12270,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12004,7 +12302,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12042,7 +12341,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12085,7 +12385,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12116,7 +12417,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12154,7 +12456,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12197,7 +12500,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 4 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12228,7 +12532,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12266,7 +12571,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12320,7 +12626,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12358,7 +12665,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12403,7 +12711,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12453,7 +12762,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12491,7 +12801,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12536,7 +12847,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12586,7 +12898,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12624,7 +12937,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12669,7 +12983,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12719,7 +13034,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 5 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12757,7 +13073,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12802,7 +13119,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -12863,7 +13181,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -12908,7 +13227,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -12960,7 +13280,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -13017,7 +13338,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -13062,7 +13384,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -13114,7 +13437,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -13171,7 +13495,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -13216,7 +13541,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -13268,7 +13594,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -13325,7 +13652,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 6 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -13370,7 +13698,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -13422,7 +13751,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -13490,7 +13820,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -13542,7 +13873,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -13601,7 +13933,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -13665,7 +13998,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -13717,7 +14051,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -13776,7 +14111,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -13840,7 +14176,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -13892,7 +14229,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -13951,7 +14289,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -14015,7 +14354,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// A tuple of 7 enumerable target data entity types. public Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> QueryMultiple(string tableName1, @@ -14067,7 +14407,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null) + string traceKey = null, + IDbTransaction transaction = null) { // Create a connection var connection = (transaction?.Connection ?? CreateConnection()); @@ -14126,7 +14467,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder); @@ -14169,7 +14511,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14186,7 +14529,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14213,7 +14557,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14245,7 +14590,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14262,7 +14608,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14289,7 +14636,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14321,7 +14669,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14338,7 +14687,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14365,7 +14715,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14397,7 +14748,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14414,7 +14766,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14441,7 +14794,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14473,7 +14827,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T2). /// The table hints to be used (for T2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14490,7 +14845,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14517,7 +14873,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14561,7 +14918,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14585,7 +14943,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14620,7 +14979,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14660,7 +15020,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14684,7 +15045,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14719,7 +15081,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14759,7 +15122,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14783,7 +15147,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14818,7 +15183,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14858,7 +15224,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14882,7 +15249,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -14917,7 +15285,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -14957,7 +15326,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T3). /// The table hints to be used (for T3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -14981,7 +15351,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15016,7 +15387,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15068,7 +15440,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -15100,7 +15473,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15143,7 +15517,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15191,7 +15566,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -15223,7 +15599,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15266,7 +15643,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15314,7 +15692,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -15346,7 +15725,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15389,7 +15769,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15437,7 +15818,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -15469,7 +15851,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15512,7 +15895,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15560,7 +15944,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T4). /// The table hints to be used (for T4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -15592,7 +15977,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15635,7 +16021,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15695,7 +16082,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -15734,7 +16122,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15785,7 +16174,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15841,7 +16231,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -15880,7 +16271,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -15931,7 +16323,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -15987,7 +16380,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16026,7 +16420,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -16077,7 +16472,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -16133,7 +16529,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16172,7 +16569,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -16223,7 +16621,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -16279,7 +16678,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T5). /// The table hints to be used (for T5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16318,7 +16718,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -16369,7 +16770,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -16437,7 +16839,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16483,7 +16886,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -16542,7 +16946,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -16606,7 +17011,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16652,7 +17058,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -16711,7 +17118,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -16775,7 +17183,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16821,7 +17230,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -16880,7 +17290,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -16944,7 +17355,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -16990,7 +17402,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -17049,7 +17462,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -17113,7 +17527,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T6). /// The table hints to be used (for T6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -17159,7 +17574,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -17218,7 +17634,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -17294,7 +17711,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -17347,7 +17765,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -17414,7 +17833,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -17486,7 +17906,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -17539,7 +17960,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -17606,7 +18028,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -17678,7 +18101,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -17731,7 +18155,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -17798,7 +18223,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -17870,7 +18296,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -17923,7 +18350,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -17990,7 +18418,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18062,7 +18491,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for T7). /// The table hints to be used (for T7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -18115,7 +18545,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where T1 : class where T2 : class @@ -18182,7 +18613,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18220,7 +18652,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18237,7 +18670,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18262,7 +18696,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18292,7 +18727,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18309,7 +18745,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18334,7 +18771,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18364,7 +18802,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18381,7 +18820,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18406,7 +18846,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18436,7 +18877,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 2). /// The table hints to be used (for dynamic type 2). /// The key to the cache item 2. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 2 enumerable target data entity types. public async Task, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18453,7 +18895,8 @@ public partial class DbRepository : IDisposable IEnumerable orderBy2 = null, string hints2 = null, string cacheKey2 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18478,7 +18921,8 @@ public partial class DbRepository : IDisposable cacheKey2: cacheKey2, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18519,7 +18963,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18543,7 +18988,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18575,7 +19021,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18612,7 +19059,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18636,7 +19084,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18668,7 +19117,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18705,7 +19155,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18729,7 +19180,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18761,7 +19213,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18798,7 +19251,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 3). /// The table hints to be used (for dynamic type 3). /// The key to the cache item 3. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 3 enumerable target data entity types. public async Task, IEnumerable, IEnumerable>> QueryMultipleAsync(string tableName1, @@ -18822,7 +19276,8 @@ public partial class DbRepository : IDisposable int? top3 = 0, string hints3 = null, string cacheKey3 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18854,7 +19309,8 @@ public partial class DbRepository : IDisposable cacheKey3: cacheKey3, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -18902,7 +19358,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -18934,7 +19391,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -18973,7 +19431,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19017,7 +19476,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -19049,7 +19509,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19088,7 +19549,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19132,7 +19594,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -19164,7 +19627,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19203,7 +19667,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19247,7 +19712,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 4). /// The table hints to be used (for dynamic type 4). /// The key to the cache item 4. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 4 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable>> @@ -19279,7 +19745,8 @@ public partial class DbRepository : IDisposable int? top4 = 0, string hints4 = null, string cacheKey4 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19318,7 +19785,8 @@ public partial class DbRepository : IDisposable cacheKey4: cacheKey4, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19373,7 +19841,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -19412,7 +19881,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19458,7 +19928,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19509,7 +19980,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -19548,7 +20020,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19594,7 +20067,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19645,7 +20119,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -19684,7 +20159,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19730,7 +20206,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19781,7 +20258,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 5). /// The table hints to be used (for dynamic type 5). /// The key to the cache item 5. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 5 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -19820,7 +20298,8 @@ public partial class DbRepository : IDisposable int? top5 = 0, string hints5 = null, string cacheKey5 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -19866,7 +20345,8 @@ public partial class DbRepository : IDisposable cacheKey5: cacheKey5, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -19928,7 +20408,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -19974,7 +20455,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -20027,7 +20509,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -20085,7 +20568,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -20131,7 +20615,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -20184,7 +20669,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -20242,7 +20728,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -20288,7 +20775,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -20341,7 +20829,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -20399,7 +20888,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 6). /// The table hints to be used (for dynamic type 6). /// The key to the cache item 6. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 6 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -20445,7 +20935,8 @@ public partial class DbRepository : IDisposable int? top6 = 0, string hints6 = null, string cacheKey6 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -20498,7 +20989,8 @@ public partial class DbRepository : IDisposable cacheKey6: cacheKey6, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -20567,7 +21059,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -20620,7 +21113,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -20680,7 +21174,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -20745,7 +21240,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -20798,7 +21294,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -20858,7 +21355,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -20923,7 +21421,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -20976,7 +21475,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -21036,7 +21536,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, @@ -21101,7 +21602,8 @@ public partial class DbRepository : IDisposable /// The number of rows to be returned (for dynamic type 7). /// The table hints to be used (for dynamic type 7). /// The key to the cache item 7. By setting this argument, it will return the item from the cache if present, otherwise it will query the database. This will only work if the 'cache' argument is set. - /// The transaction to be used. + /// The tracing key to be used. + /// The transaction to be used. /// The object to be used during the asynchronous operation. /// A tuple of 7 enumerable target data entity types. public async Task, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable>> @@ -21154,7 +21656,8 @@ public partial class DbRepository : IDisposable int? top7 = 0, string hints7 = null, string cacheKey7 = null, - IDbTransaction transaction = null, + string traceKey = null, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) { // Create a connection @@ -21214,7 +21717,8 @@ public partial class DbRepository : IDisposable cacheKey7: cacheKey7, cacheItemExpiration: CacheItemExpiration, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, cache: Cache, trace: Trace, statementBuilder: StatementBuilder, diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Sum.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Sum.cs index 05fbefaef..a4146b2bf 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Sum.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Sum.cs @@ -20,11 +20,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -38,7 +40,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -56,11 +59,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -74,7 +79,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -92,11 +98,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -110,7 +118,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -128,11 +137,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -146,7 +157,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -164,11 +176,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -182,7 +196,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -200,11 +215,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -218,7 +235,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -236,11 +254,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -254,7 +274,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -272,11 +293,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -290,7 +313,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -308,11 +332,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -326,7 +352,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -344,11 +371,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -362,7 +391,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -381,11 +411,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -399,7 +431,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -418,11 +451,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -455,11 +491,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -473,7 +511,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -492,11 +531,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -510,7 +551,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -529,11 +571,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -547,7 +591,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -566,11 +611,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -584,7 +631,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -603,11 +651,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -621,7 +671,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -640,11 +691,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -658,7 +711,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -677,11 +731,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -695,7 +751,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -714,11 +771,13 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) where TEntity : class { @@ -732,7 +791,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -754,12 +814,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -774,7 +836,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -793,12 +856,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -813,7 +878,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -832,12 +898,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -852,7 +920,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -871,12 +940,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -891,7 +962,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -910,12 +982,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -930,7 +1004,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -949,12 +1024,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -969,7 +1046,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -988,12 +1066,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1008,7 +1088,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1027,12 +1108,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1047,7 +1130,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1066,12 +1150,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1086,7 +1172,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1105,12 +1192,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1125,7 +1214,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1145,12 +1235,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1165,7 +1257,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1185,12 +1278,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1205,7 +1300,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1225,12 +1321,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1245,7 +1343,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1265,12 +1364,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1285,7 +1386,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1305,12 +1407,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1325,7 +1429,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1345,12 +1450,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1365,7 +1472,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1385,12 +1493,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, Expression> where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1405,7 +1515,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1425,12 +1536,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1445,7 +1558,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1465,12 +1579,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1485,7 +1601,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1505,12 +1622,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAsync(Expression> field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1525,7 +1644,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1548,12 +1668,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1567,7 +1689,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1585,12 +1708,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1604,7 +1729,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1622,12 +1748,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1641,7 +1769,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1659,12 +1788,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object Sum(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1678,7 +1809,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1697,12 +1829,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(string tableName, Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1716,7 +1850,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1735,12 +1870,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(string tableName, Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1754,7 +1891,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1773,12 +1911,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(string tableName, Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1792,7 +1932,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1811,12 +1952,14 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult Sum(string tableName, Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null) { // Create a connection @@ -1830,7 +1973,8 @@ public partial class DbRepository : IDisposable hints: hints, where: where, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1852,6 +1996,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -1859,6 +2004,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1873,7 +2019,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1892,6 +2039,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -1899,6 +2047,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1913,7 +2062,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1932,6 +2082,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -1939,6 +2090,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1953,7 +2105,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1972,6 +2125,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -1979,6 +2133,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1993,7 +2148,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2013,6 +2169,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The dynamic expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -2020,6 +2177,7 @@ public partial class DbRepository : IDisposable Field field, object where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2034,7 +2192,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2054,6 +2213,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -2061,6 +2221,7 @@ public partial class DbRepository : IDisposable Field field, QueryField where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2075,7 +2236,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2095,6 +2257,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -2102,6 +2265,7 @@ public partial class DbRepository : IDisposable Field field, IEnumerable where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2116,7 +2280,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -2136,6 +2301,7 @@ public partial class DbRepository : IDisposable /// The field to be summarized. /// The query expression to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. @@ -2143,6 +2309,7 @@ public partial class DbRepository : IDisposable Field field, QueryGroup where = null, string hints = null, + string traceKey = TraceKeys.Sum, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -2157,7 +2324,8 @@ public partial class DbRepository : IDisposable where: where, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/SumAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/SumAll.cs index 55945ae78..04833206e 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/SumAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/SumAll.cs @@ -18,10 +18,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object SumAll(Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null) where TEntity : class { @@ -34,7 +36,8 @@ public partial class DbRepository : IDisposable return connection.SumAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -51,10 +54,12 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object SumAll(Expression> field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null) where TEntity : class { @@ -67,7 +72,8 @@ public partial class DbRepository : IDisposable return connection.SumAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -85,10 +91,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult SumAll(Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null) where TEntity : class { @@ -101,7 +109,8 @@ public partial class DbRepository : IDisposable return connection.SumAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -119,10 +128,12 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult SumAll(Expression> field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null) where TEntity : class { @@ -135,7 +146,8 @@ public partial class DbRepository : IDisposable return connection.SumAll(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -156,11 +168,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -174,7 +188,8 @@ public partial class DbRepository : IDisposable return await connection.SumAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -192,11 +207,13 @@ public partial class DbRepository : IDisposable /// The type of the data entity. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -210,7 +227,8 @@ public partial class DbRepository : IDisposable return await connection.SumAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -229,11 +247,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAllAsync(Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -247,7 +267,8 @@ public partial class DbRepository : IDisposable return await connection.SumAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -266,11 +287,13 @@ public partial class DbRepository : IDisposable /// The type of the result. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAllAsync(Expression> field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -284,7 +307,8 @@ public partial class DbRepository : IDisposable return await connection.SumAllAsync(field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -306,11 +330,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public object SumAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null) { // Create a connection @@ -323,7 +349,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -341,11 +368,13 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The sum value of the target field. public TResult SumAll(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null) { // Create a connection @@ -358,7 +387,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -379,12 +409,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -398,7 +430,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -417,12 +450,14 @@ public partial class DbRepository : IDisposable /// The name of the target table. /// The field to be summarized. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The sum value of the target field. public async Task SumAllAsync(string tableName, Field field, string hints = null, + string traceKey = TraceKeys.SumAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -436,7 +471,8 @@ public partial class DbRepository : IDisposable field: field, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Truncate.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Truncate.cs index 9f774c1fa..02cfa5039 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Truncate.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Truncate.cs @@ -15,8 +15,9 @@ public partial class DbRepository : IDisposable /// Truncates a table from the database. /// /// The type of the data entity. + /// The tracing key to be used. /// The number of rows affected. - public int Truncate() + public int Truncate(string traceKey = TraceKeys.Truncate) where TEntity : class { // Create a connection @@ -27,6 +28,7 @@ public int Truncate() // Call the method return connection.Truncate( commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: null, trace: Trace, statementBuilder: StatementBuilder); @@ -42,9 +44,11 @@ public int Truncate() /// Truncates a table from the database. /// /// The type of the data entity. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows affected. - public int Truncate(IDbTransaction transaction = null) + public int Truncate(string traceKey = TraceKeys.Truncate, + IDbTransaction transaction = null) where TEntity : class { // Create a connection @@ -54,6 +58,7 @@ public int Truncate(IDbTransaction transaction = null) { // Call the method return connection.Truncate(commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -73,8 +78,9 @@ public int Truncate(IDbTransaction transaction = null) /// Truncates a table from the database in an asynchronous way. /// /// The type of the data entity. + /// The tracing key to be used. /// The number of rows affected. - public async Task TruncateAsync() + public async Task TruncateAsync(string traceKey = TraceKeys.Truncate) where TEntity : class { // Create a connection @@ -84,6 +90,7 @@ public async Task TruncateAsync() { // Call the method return await connection.TruncateAsync(commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: null, trace: Trace, statementBuilder: StatementBuilder, @@ -100,9 +107,11 @@ public async Task TruncateAsync() /// Truncates a table from the database in an asynchronous way. /// /// The type of the data entity. + /// The tracing key to be used. /// The object to be used during the asynchronous operation. /// The number of rows affected. - public async Task TruncateAsync(CancellationToken cancellationToken = default) + public async Task TruncateAsync(string traceKey = TraceKeys.Truncate, + CancellationToken cancellationToken = default) where TEntity : class { // Create a connection @@ -112,6 +121,7 @@ public async Task TruncateAsync(CancellationToken cancellationToke { // Call the method return await connection.TruncateAsync(commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: null, trace: Trace, statementBuilder: StatementBuilder, @@ -128,10 +138,12 @@ public async Task TruncateAsync(CancellationToken cancellationToke /// Truncates a table from the database in an asynchronous way. /// /// The type of the data entity. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows affected. - public async Task TruncateAsync(IDbTransaction transaction = null, + public async Task TruncateAsync(string traceKey = TraceKeys.Truncate, + IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class { @@ -142,6 +154,7 @@ public async Task TruncateAsync(CancellationToken cancellationToke { // Call the method return await connection.TruncateAsync(commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -162,8 +175,10 @@ public async Task TruncateAsync(CancellationToken cancellationToke /// Truncates a table from the database. /// /// The name of the target table. + /// The tracing key to be used. /// The number of rows affected. - public int Truncate(string tableName) + public int Truncate(string tableName, + string traceKey = TraceKeys.Truncate) { // Create a connection var connection = CreateConnection(); @@ -173,6 +188,7 @@ public int Truncate(string tableName) // Call the method return connection.Truncate(tableName: tableName, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: null, trace: Trace, statementBuilder: StatementBuilder); @@ -188,9 +204,11 @@ public int Truncate(string tableName) /// Truncates a table from the database. /// /// The name of the target table. + /// The tracing key to be used. /// The transaction to be used. /// The number of rows affected. public int Truncate(string tableName, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null) { // Create a connection @@ -201,6 +219,7 @@ public int Truncate(string tableName) // Call the method return connection.Truncate(tableName: tableName, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -220,8 +239,10 @@ public int Truncate(string tableName) /// Truncates a table from the database in an asynchronous way. /// /// The name of the target table. + /// The tracing key to be used. /// The number of rows affected. - public async Task TruncateAsync(string tableName) + public async Task TruncateAsync(string tableName, + string traceKey = TraceKeys.Truncate) { // Create a connection var connection = CreateConnection(); @@ -231,6 +252,7 @@ public async Task TruncateAsync(string tableName) // Call the method return await connection.TruncateAsync(tableName: tableName, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: null, trace: Trace, statementBuilder: StatementBuilder, @@ -247,9 +269,11 @@ public async Task TruncateAsync(string tableName) /// Truncates a table from the database in an asynchronous way. /// /// The name of the target table. + /// The tracing key to be used. /// The object to be used during the asynchronous operation. /// The number of rows affected. public async Task TruncateAsync(string tableName, + string traceKey = TraceKeys.Truncate, CancellationToken cancellationToken = default) { // Create a connection @@ -260,6 +284,7 @@ public async Task TruncateAsync(string tableName) // Call the method return await connection.TruncateAsync(tableName: tableName, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: null, trace: Trace, statementBuilder: StatementBuilder, @@ -276,10 +301,12 @@ public async Task TruncateAsync(string tableName) /// Truncates a table from the database in an asynchronous way. /// /// The name of the target table. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of rows affected. public async Task TruncateAsync(string tableName, + string traceKey = TraceKeys.Truncate, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -291,6 +318,7 @@ public async Task TruncateAsync(string tableName) // Call the method return await connection.TruncateAsync(tableName: tableName, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/Update.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/Update.cs index ba2a2a4eb..67bee0a6f 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/Update.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/Update.cs @@ -21,12 +21,14 @@ public partial class DbRepository : IDisposable /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -41,7 +43,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -62,6 +65,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -69,6 +73,7 @@ public partial class DbRepository : IDisposable TWhat what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -84,7 +89,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -104,6 +110,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -111,6 +118,7 @@ public partial class DbRepository : IDisposable object what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -126,7 +134,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -146,6 +155,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -153,6 +163,7 @@ public partial class DbRepository : IDisposable Expression> where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -168,7 +179,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -188,6 +200,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -195,6 +208,7 @@ public partial class DbRepository : IDisposable QueryField where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -210,7 +224,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -230,6 +245,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -237,6 +253,7 @@ public partial class DbRepository : IDisposable IEnumerable where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -252,7 +269,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -272,6 +290,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -279,6 +298,7 @@ public partial class DbRepository : IDisposable QueryGroup where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -294,7 +314,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -312,11 +333,13 @@ public partial class DbRepository : IDisposable /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -330,7 +353,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -350,12 +374,14 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, TWhat what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -370,7 +396,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -389,12 +416,14 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, object what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -409,7 +438,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -428,12 +458,14 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, Expression> where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -448,7 +480,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -467,12 +500,14 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, QueryField where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -487,7 +522,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -506,12 +542,14 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, IEnumerable where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -526,7 +564,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -545,12 +584,14 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(TEntity entity, QueryGroup where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) where TEntity : class { @@ -565,7 +606,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -588,6 +630,7 @@ public partial class DbRepository : IDisposable /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -595,6 +638,7 @@ public partial class DbRepository : IDisposable TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -610,7 +654,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -632,6 +677,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -640,6 +686,7 @@ public partial class DbRepository : IDisposable TWhat what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -656,7 +703,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -677,6 +725,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -685,6 +734,7 @@ public partial class DbRepository : IDisposable object what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -701,7 +751,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -722,6 +773,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -730,6 +782,7 @@ public partial class DbRepository : IDisposable Expression> where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -746,7 +799,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -767,6 +821,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -775,6 +830,7 @@ public partial class DbRepository : IDisposable QueryField where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -791,7 +847,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -812,6 +869,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -820,6 +878,7 @@ public partial class DbRepository : IDisposable IEnumerable where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -836,7 +895,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -857,6 +917,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -865,6 +926,7 @@ public partial class DbRepository : IDisposable QueryGroup where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -881,7 +943,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -900,12 +963,14 @@ public partial class DbRepository : IDisposable /// The data entity object to be updated. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. public async Task UpdateAsync(TEntity entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -920,7 +985,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -941,6 +1007,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -948,6 +1015,7 @@ public partial class DbRepository : IDisposable TWhat what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -963,7 +1031,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -983,6 +1052,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -990,6 +1060,7 @@ public partial class DbRepository : IDisposable object what, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1005,7 +1076,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1025,6 +1097,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1032,6 +1105,7 @@ public partial class DbRepository : IDisposable Expression> where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1047,7 +1121,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1067,6 +1142,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1074,6 +1150,7 @@ public partial class DbRepository : IDisposable QueryField where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1089,7 +1166,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1109,6 +1187,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1116,6 +1195,7 @@ public partial class DbRepository : IDisposable IEnumerable where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1131,7 +1211,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1151,6 +1232,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1158,6 +1240,7 @@ public partial class DbRepository : IDisposable QueryGroup where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -1173,7 +1256,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1196,12 +1280,14 @@ public partial class DbRepository : IDisposable /// The dynamic object to be used for update. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) { // Create a connection @@ -1215,7 +1301,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1234,6 +1321,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -1241,6 +1329,7 @@ public partial class DbRepository : IDisposable object where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) { // Create a connection @@ -1255,7 +1344,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1274,6 +1364,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -1281,6 +1372,7 @@ public partial class DbRepository : IDisposable QueryField where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) { // Create a connection @@ -1295,7 +1387,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1314,6 +1407,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -1321,6 +1415,7 @@ public partial class DbRepository : IDisposable IEnumerable where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) { // Create a connection @@ -1335,7 +1430,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1354,6 +1450,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int Update(string tableName, @@ -1361,6 +1458,7 @@ public partial class DbRepository : IDisposable QueryGroup where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null) { // Create a connection @@ -1375,7 +1473,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); } @@ -1397,6 +1496,7 @@ public partial class DbRepository : IDisposable /// The dynamic object to be used for update. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1404,6 +1504,7 @@ public partial class DbRepository : IDisposable object entity, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1418,7 +1519,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1438,6 +1540,7 @@ public partial class DbRepository : IDisposable /// The dynamic expression or the key value to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1446,6 +1549,7 @@ public partial class DbRepository : IDisposable object where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1461,7 +1565,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1481,6 +1586,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1489,6 +1595,7 @@ public partial class DbRepository : IDisposable QueryField where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1504,7 +1611,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1524,6 +1632,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1532,6 +1641,7 @@ public partial class DbRepository : IDisposable IEnumerable where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1547,7 +1657,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); @@ -1567,6 +1678,7 @@ public partial class DbRepository : IDisposable /// The query expression to be used. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -1575,6 +1687,7 @@ public partial class DbRepository : IDisposable QueryGroup where, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.Update, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -1590,7 +1703,8 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, - transaction: transaction, + traceKey: traceKey, + transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, cancellationToken: cancellationToken); diff --git a/RepoDb.Core/RepoDb/Operations/DbRepository/UpdateAll.cs b/RepoDb.Core/RepoDb/Operations/DbRepository/UpdateAll.cs index 08a61a003..4364c38e3 100644 --- a/RepoDb.Core/RepoDb/Operations/DbRepository/UpdateAll.cs +++ b/RepoDb.Core/RepoDb/Operations/DbRepository/UpdateAll.cs @@ -22,6 +22,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(string tableName, @@ -29,6 +30,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) where TEntity : class { @@ -44,6 +46,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -65,6 +68,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(string tableName, @@ -73,6 +77,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) where TEntity : class { @@ -89,6 +94,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -110,6 +116,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(string tableName, @@ -118,6 +125,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) where TEntity : class { @@ -134,6 +142,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -153,12 +162,14 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(IEnumerable entities, int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) where TEntity : class { @@ -173,6 +184,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -193,6 +205,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(IEnumerable entities, @@ -200,6 +213,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) where TEntity : class { @@ -215,6 +229,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -235,6 +250,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(IEnumerable entities, @@ -242,6 +258,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) where TEntity : class { @@ -257,6 +274,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -281,6 +299,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -289,6 +308,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -305,6 +325,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -327,6 +348,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -336,6 +358,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -353,6 +376,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -375,6 +399,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -384,6 +409,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -401,6 +427,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -421,6 +448,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -428,6 +456,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -443,6 +472,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -464,6 +494,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -472,6 +503,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -488,6 +520,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -509,6 +542,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -517,6 +551,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) where TEntity : class @@ -533,6 +568,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -557,6 +593,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(string tableName, @@ -564,6 +601,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) { // Create a connection @@ -578,6 +616,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -598,6 +637,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(string tableName, @@ -606,6 +646,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) { // Create a connection @@ -621,6 +662,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -641,6 +683,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The number of affected rows during the update process. public int UpdateAll(string tableName, @@ -649,6 +692,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null) { // Create a connection @@ -664,6 +708,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder); @@ -687,6 +732,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -695,6 +741,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -710,6 +757,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -731,6 +779,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -740,6 +789,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -756,6 +806,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, @@ -777,6 +828,7 @@ public partial class DbRepository : IDisposable /// The batch size of the update operation. /// The mapping list of objects to be used. /// The table hints to be used. + /// The tracing key to be used. /// The transaction to be used. /// The object to be used during the asynchronous operation. /// The number of affected rows during the update process. @@ -786,6 +838,7 @@ public partial class DbRepository : IDisposable int batchSize = Constant.DefaultBatchOperationSize, IEnumerable fields = null, string hints = null, + string traceKey = TraceKeys.UpdateAll, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { @@ -802,6 +855,7 @@ public partial class DbRepository : IDisposable fields: fields, hints: hints, commandTimeout: CommandTimeout, + traceKey: traceKey, transaction: transaction, trace: Trace, statementBuilder: StatementBuilder, diff --git a/RepoDb.Core/RepoDb/TraceKeys.cs b/RepoDb.Core/RepoDb/TraceKeys.cs index 528889546..d207a0d77 100644 --- a/RepoDb.Core/RepoDb/TraceKeys.cs +++ b/RepoDb.Core/RepoDb/TraceKeys.cs @@ -90,6 +90,16 @@ public static class TraceKeys /// public const string MaxAll = "MaxAll"; + /// + /// The trace key for the 'Merge' operation. + /// + public const string Merge = "Merge"; + + /// + /// The trace key for the 'MergeAll' operation. + /// + public const string MergeAll = "MergeAll"; + /// /// The trace key for the 'Min' operation. ///