MCPcopy Create free account
hub / github.com/aptabase/aptabase / DbContext

Class DbContext

src/Data/DbContext.cs:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10public class DbContext : IDbContext
11{
12 private readonly DbDataSource _ds;
13
14 public DbContext(DbDataSource ds)
15 {
16 _ds = ds ?? throw new ArgumentNullException(nameof(ds));
17 }
18
19 public DbConnection Connection => _ds.CreateConnection();
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected