You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UninitializedDbSetDiagnosticSuppressor doesn't work when a constructor is present #26879
#21608 introduced a DiagnosticsSuppressor to suppress CS8618 (non-nullable property is uninitialized) for DbSet properties on DbContexts. This currently works fine as long as there is no constructor on the DbContext, but fails if a constructor is defined, since the diagnostic is reported on the constructor declaration, and not on the property.
Activity
roji commentedon Jan 29, 2022
Roslyn-side issue has been fixed - this should be unblocked in preview3.
Suppress uninitialized DbSet warnings when a ctor is present
Suppress uninitialized DbSet warnings when a ctor is present
Suppress uninitialized DbSet warnings when a ctor is present (#27869)