I'm developing a application using EF Core. I want disable proxy creation, but when I try to use the command an error appears.
My Db Context class:
public class BMContext : DbContext
{
public BMContext()
{
this.Configuration.ProxyCreationEnabled = false;
}
}
And the error:
Severity Code Description Project File Line Suppression State Error CS1061 'BMContext' does not contain a definition for 'Configuration' and no accessible extension method 'Configuration' accepting a first argument of type 'BeerMakersContext' could be found (are you missing a using directive or an assembly reference?)
Thanks :)