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
Global Query Filters throw a null reference exception when attempting to add in .NET 6 -- this is due to an internal change on ConditionalWeakTable -- it no longer has a Values property and instead implements IEnumerable<KeyValuePair<TKey, TValue>>
2. Exception
Null Reference Exception when adding a global query filter in .NET 6
1. Description
Global Query Filters throw a null reference exception when attempting to add in .NET 6 -- this is due to an internal change on ConditionalWeakTable -- it no longer has a Values property and instead implements IEnumerable<KeyValuePair<TKey, TValue>>
2. Exception
Null Reference Exception when adding a global query filter in .NET 6
https://github.com/zzzprojects/EntityFramework-Plus/blob/32f83427c723ba75cf615cc708df21bcab5802d5/src/shared/Z.EF.Plus.QueryFilterInterceptor.Shared/QueryFilterInterceptorManager.cs
The ClearAllCache method needs to detect if the CacheWeakFilterContext is an IEnumerable before trying to dynamically access the property.
The text was updated successfully, but these errors were encountered: