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
| |