Skip to content

Commit c4c6bbd

Browse files
JinhuafeiHongGit
authored andcommitted
fix CommandText missing issue (#4)
1 parent e4a7ddb commit c4c6bbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SQLAsyncOutputCacheProvider/SqlOutputCacheRepository.cs

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ private void UpdateEntry(string key, object entry, DateTime utcExpiry) {
312312

313313
private void CreateTableIfNotExists(string createTableSql) {
314314
using (var cmd = new SqlCommand()) {
315+
cmd.CommandText = createTableSql;
315316
using (var connection = new SqlConnection(ConnectionString)) {
316317
SqlExecuteNonQueryAsync(connection, cmd).GetAwaiter().GetResult();
317318
}

0 commit comments

Comments
 (0)