In EF Core, what is the difference between registering a transient
DbContext
DbContext
vs a
DbContextFactory
DbContextFactory
for DI?
In both cases the DbContext will be created on-demand and disposed when the operation is completed, right? Are there any clear indications on when to use which?