Skip to content

Instantly share code, notes, and snippets.


Erik Ejlskov Jensen ErikEJ

View GitHub Profile
ErikEJ / IQueryableExtensions.cs
Last active Jun 8, 2021
Replacement for EF Core .Contains, that avoids SQL Server plan cache pollution
View IQueryableExtensions.cs
public static class IQueryableExtensions
public static IQueryable<TQuery> In<TKey, TQuery>(
this IQueryable<TQuery> queryable,
IEnumerable<TKey> values,
Expression<Func<TQuery, TKey>> keySelector)
if (values == null)
ErikEJ / App.config
Created Jan 27, 2019
SQL Server Compact private deployment
View App.config
<gcServer enabled="true" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="" newVersion="" />