Skip to content

Commit

Permalink
fix CommandText missing issue (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinhuafei authored and HongGit committed Apr 16, 2018
1 parent e4a7ddb commit c4c6bbd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ private void UpdateEntry(string key, object entry, DateTime utcExpiry) {

private void CreateTableIfNotExists(string createTableSql) {
using (var cmd = new SqlCommand()) {
cmd.CommandText = createTableSql;
using (var connection = new SqlConnection(ConnectionString)) {
SqlExecuteNonQueryAsync(connection, cmd).GetAwaiter().GetResult();
}
Expand Down

0 comments on commit c4c6bbd

Please sign in to comment.