VahidN / EFCoreSecondLevelCacheInterceptor

EF Core Second Level Cache Interceptor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MERGE statements aren't detected by IsCrudCommand

bzbetty opened this issue · comments

Summary of the issue

MERGE statements currently rely on the INSERT/UPDATE being on a newline which isn't always the case

https://github.com/borisdj/EFCore.BulkExtensions doesn't add newlines before it's INSERT/UPDATE statements in bulk actions meaning the two libraries don't play nicely. Currently manually clearing the cache when we use one of these commands.

i can't currently update to EF7 due to other dependencies, however the bulk update is quite a different beast from the bulk extensions library. BE can do a single command to create/update/delete using a merge statement which I'm pretty sure EF7 doesn't do.

Thanks!