Skip to content

Instantly share code, notes, and snippets.

@ssvaidya
Created July 28, 2016 18:27
string connectionString = ConfigurationManager.ConnectionStrings["SchoolContext"].ConnectionString;
kernel.Bind<DbContext>()
.To<SchoolContext>()
.InRequestScope()
.WithConstructorArgument("connectionString", connectionString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment