1- // Copyright (C) 2012-2020 Xtensive LLC.
1+ // Copyright (C) 2012-2020 Xtensive LLC.
22// This code is distributed under MIT license terms.
33// See the License.txt file in the project root for more information.
44// Created by: Denis Krjuchkov
@@ -28,6 +28,8 @@ public interface ISqlExecutor
2828 /// Asynchronously executes the specified query statement.
2929 /// This method is similar to <see cref="DbCommand.ExecuteReaderAsync()"/>.
3030 /// </summary>
31+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
32+ /// to ensure that all asynchronous operations have completed.</remarks>
3133 /// <param name="statement">The statement to execute.</param>
3234 /// <param name="token">The cancellation token to terminate execution if needed.</param>
3335 /// <returns>Result of execution.</returns>
@@ -60,6 +62,8 @@ public interface ISqlExecutor
6062 /// Asynchronously executes the specified scalar statement.
6163 /// This method is similar to <see cref="DbCommand.ExecuteScalarAsync()"/>.
6264 /// </summary>
65+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
66+ /// to ensure that all asynchronous operations have completed.</remarks>
6367 /// <param name="statement">The statement to execute.</param>
6468 /// <param name="token">The cancellation token to terminate execution if needed.</param>
6569 /// <returns>Result of execution.</returns>
@@ -76,6 +80,8 @@ public interface ISqlExecutor
7680 /// Asynchronously executes the specified scalar statement.
7781 /// This method is similar to <see cref="DbCommand.ExecuteScalarAsync()"/>.
7882 /// </summary>
83+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
84+ /// to ensure that all asynchronous operations have completed.</remarks>
7985 /// <param name="commandText">The statement to execute.</param>
8086 /// <param name="token">The cancellation token to terminate execution if needed.</param>
8187 /// <returns>Result of execution.</returns>
@@ -92,6 +98,8 @@ public interface ISqlExecutor
9298 /// Asynchronously executes the specified non query statement.
9399 /// This method is similar to <see cref="DbCommand.ExecuteNonQueryAsync()"/>.
94100 /// </summary>
101+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
102+ /// to ensure that all asynchronous operations have completed.</remarks>
95103 /// <param name="statement">The statement to execute.</param>
96104 /// <param name="token">The cancellation token to terminate execution if needed.</param>
97105 /// <returns>Result of execution.</returns>
@@ -108,6 +116,8 @@ public interface ISqlExecutor
108116 /// Asynchronously executes the specified non query statement.
109117 /// This method is similar to <see cref="DbCommand.ExecuteNonQueryAsync()"/>.
110118 /// </summary>
119+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
120+ /// to ensure that all asynchronous operations have completed.</remarks>
111121 /// <param name="commandText">The statement to execute.</param>
112122 /// <param name="token">The cancellation token to terminate execution if needed.</param>
113123 /// <returns>Result of execution.</returns>
@@ -123,6 +133,8 @@ public interface ISqlExecutor
123133 /// Asynchronously executes group of DDL statements
124134 /// via <see cref="ExecuteNonQueryAsync(System.String, System.Threading.CancellationToken)"/>.
125135 /// </summary>
136+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
137+ /// to ensure that all asynchronous operations have completed.</remarks>
126138 /// <param name="token">The cancellation token to terminate execution if needed.</param>
127139 /// <param name="statements">Statements to execute</param>
128140 Task ExecuteManyAsync ( IEnumerable < string > statements , CancellationToken token = default ) ;
@@ -137,6 +149,8 @@ public interface ISqlExecutor
137149 /// <summary>
138150 /// Asynchronously executes the specified extraction tasks.
139151 /// </summary>
152+ /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
153+ /// to ensure that all asynchronous operations have completed.</remarks>
140154 /// <param name="tasks">Tasks to execute.</param>
141155 /// <param name="token">The cancellation token to terminate execution if needed.</param>
142156 /// <returns>Extraction result.</returns>
0 commit comments