Explicit Initialization rules are conflicting with Entity Framework
When trying to do code analysis on web services build using EF Core, I am constantly getting this violation
For this code:
This violation occurs because the DbSet object is build by the DBContext, which does not use explicit initialization
This error is occurring every time I'm accessing a database, which is leading to lots and lots of these violations.
I don’t think suppressing is my best bet, since the use of dbcontext is pretty integral to EF Core, though I'm not sure what a better solution would be
Any ideas on what to do with this?