Changeset 002cf5f for iknow-api/Program.cs
- Timestamp:
- 09/16/26 22:59:59 (7 days ago)
- Branches:
- master
- Children:
- 0496e6e
- Parents:
- 1b20b22
- File:
-
- 1 edited
-
iknow-api/Program.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Program.cs
r1b20b22 r002cf5f 66 66 // Postgres type by name; PgEnumLabels covers the members whose label is not 67 67 // simply the lowercased member name. 68 builder.Services.AddDbContext<AppDbContext>(options => 68 // AddDbContextPool reuses the DbContext instances themselves; the connections 69 // underneath them are pooled separately by Npgsql, sized in the connection 70 // string. Both matter here because every physical connection is one more 71 // channel through the SSH tunnel. 72 builder.Services.AddDbContextPool<AppDbContext>(options => 69 73 options.UseNpgsql( 70 74 builder.Configuration.GetConnectionString("DefaultConnection"),
Note:
See TracChangeset
for help on using the changeset viewer.
