瀏覽代碼

fix bug of connection driver.

master
Savorboard 7 年之前
父節點
當前提交
778c3529b3
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs

+ 1
- 2
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs 查看文件

@@ -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…
取消
儲存