Browse Source

fix bug of connection driver.

master
Savorboard 7 years ago
parent
commit
778c3529b3
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs

+ 1
- 2
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs View File

@@ -1,6 +1,5 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using Dapper;
@@ -62,7 +61,7 @@ namespace DotNetCore.CAP.PostgreSql

internal IDbConnection CreateAndOpenConnection()
{
var connection = _existingConnection ?? new SqlConnection(_options.ConnectionString);
var connection = _existingConnection ?? new NpgsqlConnection(_options.ConnectionString);

if (connection.State == ConnectionState.Closed)
{


Loading…
Cancel
Save