code4it-dev / blog-comments

https://www.code4it.dev/
1 stars 0 forks source link

blog/postgres-crud-operations-npgsql #34

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

CRUD operations on PostgreSQL using C# and Npgsql - Code4IT

Once we have a Postgres instance running, we can perform operations on it. We will use Npgsql to query a Postgres instance with C#

https://www.code4it.dev/blog/postgres-crud-operations-npgsql

Tajmr commented 1 year ago

public async Task GetVersion() { var versionFromConnection = connection.PostgreSqlVersion;

return versionFromConnection;

}

Why async Task here? :)