diff --git a/src/FluentCommand.SqlServer/Merge/DataMerge.cs b/src/FluentCommand.SqlServer/Merge/DataMerge.cs
index 1c4ae51e..254b3ece 100644
--- a/src/FluentCommand.SqlServer/Merge/DataMerge.cs
+++ b/src/FluentCommand.SqlServer/Merge/DataMerge.cs
@@ -140,9 +140,9 @@ public IDataMerge Mode(DataMergeMode mergeMode)
}
///
- /// Sets the wait time before terminating the attempt to execute a command and generating an error.
+ /// Sets the wait time (in seconds) before terminating the attempt to execute the command and generating an error.
///
- /// TThe time in seconds to wait for the command to execute.
+ /// The time in seconds to wait for the command to execute.
/// A fluent to a operation.
public IDataMerge CommandTimeout(int timeout)
{
diff --git a/src/FluentCommand.SqlServer/Merge/DataMergeExtensions.cs b/src/FluentCommand.SqlServer/Merge/DataMergeExtensions.cs
index 79d140eb..da04054e 100644
--- a/src/FluentCommand.SqlServer/Merge/DataMergeExtensions.cs
+++ b/src/FluentCommand.SqlServer/Merge/DataMergeExtensions.cs
@@ -46,4 +46,23 @@ public static IDataMerge MergeData(this IDataSession session, DataMergeDefinitio
{
return new DataMerge(session, mergeDefinition);
}
+
+
+ ///
+ /// Sets the wait time before terminating the attempt to execute a command and generating an error.
+ ///
+ /// The for this extension method.
+ /// The to wait for the command to execute.
+ ///
+ /// A fluent to the data command.
+ ///
+ public static IDataMerge CommandTimeout(
+ this IDataMerge dataMerge,
+ TimeSpan timeSpan)
+ {
+ var timeout = Convert.ToInt32(timeSpan.TotalSeconds);
+ dataMerge.CommandTimeout(timeout);
+ return dataMerge;
+ }
+
}
diff --git a/src/FluentCommand.SqlServer/Merge/IDataMerge.cs b/src/FluentCommand.SqlServer/Merge/IDataMerge.cs
index b3f85867..a0caddfd 100644
--- a/src/FluentCommand.SqlServer/Merge/IDataMerge.cs
+++ b/src/FluentCommand.SqlServer/Merge/IDataMerge.cs
@@ -81,9 +81,9 @@ public interface IDataMerge
IDataMerge Mode(DataMergeMode mergeMode);
///
- /// Sets the wait time before terminating the attempt to execute a command and generating an error.
+ /// Sets the wait time (in seconds) before terminating the attempt to execute the command and generating an error.
///
- /// TThe time in seconds to wait for the command to execute.
+ /// The time in seconds to wait for the command to execute.
/// A fluent to a operation.
IDataMerge CommandTimeout(int timeout);
diff --git a/src/FluentCommand/DataCommand.cs b/src/FluentCommand/DataCommand.cs
index 1284a7cf..af147e15 100644
--- a/src/FluentCommand/DataCommand.cs
+++ b/src/FluentCommand/DataCommand.cs
@@ -70,7 +70,7 @@ public IDataCommand StoredProcedure(string storedProcedure)
///
- /// Sets the wait time before terminating the attempt to execute a command and generating an error.
+ /// Sets the wait time (in seconds) before terminating the attempt to execute the command and generating an error.
///
/// The time, in seconds, to wait for the command to execute.
///
diff --git a/src/FluentCommand/IDataCommand.cs b/src/FluentCommand/IDataCommand.cs
index 68f77e61..d70fae47 100644
--- a/src/FluentCommand/IDataCommand.cs
+++ b/src/FluentCommand/IDataCommand.cs
@@ -34,9 +34,9 @@ public interface IDataCommand : IDataQuery, IDataQueryAsync
///
- /// Sets the wait time before terminating the attempt to execute a command and generating an error.
+ /// Sets the wait time (in seconds) before terminating the attempt to execute the command and generating an error.
///
- /// TThe time in seconds to wait for the command to execute.
+ /// The time in seconds to wait for the command to execute.
/// A fluent to the data command.
IDataCommand CommandTimeout(int timeout);