Ver código fonte

fix bug of connection driver.

master
Savorboard 7 anos atrás
pai
commit
778c3529b3
1 arquivos alterados com 1 adições e 2 exclusões
  1. +1
    -2
      src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs

+ 1
- 2
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs Ver arquivo

@@ -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)
{


Carregando…
Cancelar
Salvar