IMooDbContextFactory Reference
Role#
IMooDbContextFactory creates MooDbContext instances for caller-supplied targets.
Methods#
MooDbContext Create(string connectionString)
MooDbContext Create(SqlConnection connection)
Key points#
- use this for runtime database selection
- the application still decides which connection string or connection to use
- the factory only creates the
MooDbContextinstance from that chosen target