I want to do something like this Autofac
line below with DryIoC
builder.RegisterType<TenantDBContext>
().InstancePerLifetimeScope().WithParameter(new
NamedParameter("connectionString", ""));
I have a CoreDBContext
that has the connection string of TenantDBContext
. Is it valid to pass the connection string at the point of registering my context in DryIoc
?