.NET: Fix NullReferenceException in EF cache module when stored proc is invoked
@@ -49,6 +49,10 @@ namespace Apache.Ignite.EntityFramework.Impl
/** <inheritDoc /> */
public void InvalidateCache(ICollection<EntitySetBase> entitySets, DbTransaction transaction)
{
+ // Stored procedure is used, nothing to invalidate.
+ if (entitySets == null)
+ return;
+
if (transaction == null)
{
// Invalidate immediately.
