perf(adminui): pooled DbContext factory; role-grants reads per-call, not per-circuit
This commit is contained in:
@@ -139,7 +139,10 @@ internal static class UnsTreeTestDb
|
||||
|
||||
/// <summary>
|
||||
/// Minimal <see cref="IDbContextFactory{TContext}"/> that hands back contexts sharing a
|
||||
/// single InMemory database name — the test-side stand-in for the runtime pooled factory.
|
||||
/// single InMemory database name — the test-side stand-in for the runtime factory, which IS
|
||||
/// pooled (<c>AddPooledDbContextFactory</c> in <c>ServiceCollectionExtensions.AddOtOpcUaConfigDb</c>).
|
||||
/// This stand-in builds a fresh context per call rather than renting one: pooling is a
|
||||
/// construction-cost optimisation, and nothing under test can observe the difference.
|
||||
/// </summary>
|
||||
private sealed class NamedFactory(string name) : IDbContextFactory<OtOpcUaConfigDbContext>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user