Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Bijali Npgsql SnippetsNew to Visual Studio Code? Get it now.
Bijali Npgsql Snippets

Bijali Npgsql Snippets

OpalSpace26

|
1 install
| (0) | Free
Snippet pack for Npgsql async C# patterns and reusable Razor templates.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bijali

Bijali is a snippet-only VS Code extension for .NET developers working with Npgsql and Razor views.

It currently includes:

  • 15 C# snippets for common Npgsql async and CRUD patterns
  • 14 Razor snippets for reusable page and dashboard templates

Included snippet groups

C#

Examples:

  • npq-execnonquery-async
  • npq-execscalar-async
  • npq-execreader-async
  • npq-crud-methods

These snippets help scaffold:

  • async NpgsqlCommand usage
  • ExecuteNonQueryAsync, ExecuteScalarAsync, and ExecuteReaderAsync
  • common CRUD method patterns

Razor

Examples:

  • npq-dashboard-grid
  • Razor page and dashboard scaffolds
  • reusable UI patterns for MVC/Razor workflows

Example

try
{
    await _conn.CloseAsync();
    await _conn.OpenAsync();

    var qry = @"UPDATE t_application SET c_reason = @reason WHERE c_id = @id";
    await using var cmd = new NpgsqlCommand(qry, _conn);
    var res = await cmd.ExecuteNonQueryAsync();
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}
finally
{
    await _conn.CloseAsync();
}

Notes

  • This extension contains snippets only. It does not run background code.
  • Review generated code before using it in production.
  • Source: https://github.com/pramukhprajapati17/Extension
  • Issue tracker: https://github.com/pramukhprajapati17/Extension/issues
  • Add an icon before publishing publicly for the best Marketplace presentation.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft