im getting this error

but I have no idea why its happening. It stops happening when I restart visual studio, but after a while, it happens again. Its weird, since it happens just right after logging in. It makes me think that I left a connection open or there is something else going on. You guys have any idea of what could it be?
Hard to tell without knowing your project. But it may have to do with executing code in a setter, which is generally seen as an anti-pattern. (As an aside: the reason for that is that a setter suggests that you only change that little piece of the object’s state, without side effects). An improvement would be to loop through
ProjectListnot sooner than when theProjectExtensionListis addressed.If setting the value for
ProjectListis part of the materialization of its containing object (DashboardModel) the loop may cause a database read that has to wait for a connection that is involved in reading values forDashboardModels. If you defer the looping until when it is really necessary, at that point in time theDashboardModelobject is in its final state and the connection should be available.