添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account I want use Respawn Checkpoint.Reset with PostgreSQL and get this error System.ArgumentException : Keyword not supported: 'port'.
my connection string Server=127.0.0.1;Port=5432;Database=GrodmanTestDb;UserId=postgres

I have this Stack Trace:

DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
DbConnectionOptions.ctor(String connectionString, Dictionary`2 synonyms)
SqlConnectionString.ctor(String connectionString)
SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
SqlConnection.set_ConnectionString(String value)
SqlConnection.ctor(String connectionString)
Checkpoint.Reset(String nameOrConnectionString)
          

I found I forget use NpgsqlConnection like

using (var conn = new NpgsqlConnection("ConnectionString"))
    await conn.OpenAsync();
    await checkpoint.Reset(conn);