Skip to content

Instantly share code, notes, and snippets.

@jppg
Last active October 24, 2019 18:08
Show Gist options
  • Save jppg/0a4ddddad0e758a5f626259d4405641c to your computer and use it in GitHub Desktop.
Save jppg/0a4ddddad0e758a5f626259d4405641c to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllersWithViews();
services.AddDbContext<MercuryContext>(options =>
options.UseNpgsql(Configuration.GetConnectionString("MercuryContext"))
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment