'DbContextOptionsBuilder' does not contain a definition for UseNpgsql()
11:29 05 Mar 2018

I am facing an issue while giving the connectionstring to get it connect to PostgreSQL through the AddDbContext() method in ConfigureServices method of Startup.cs

I'm getting this error while calling the function options.UseNpgsql() (see the image below).

I have seen other questions regarding this but those are for usesqlserver() and also they did not solve my problem.

enter image description here

c# entity-framework asp.net-core-mvc asp.net-core-2.0