Skip to content

Instantly share code, notes, and snippets.

View OculiViridi's full-sized avatar
🎯
Focusing

FB OculiViridi

🎯
Focusing
  • Italy
  • 00:06 (UTC +01:00)
View GitHub Profile
@ErikEJ
ErikEJ / IQueryableExtensions.cs
Last active December 8, 2025 20:34
Replacement for EF Core .Contains, that avoids SQL Server plan cache pollution
using System.Linq.Expressions;
namespace Microsoft.EntityFrameworkCore
{
public static class IQueryableExtensions
{
public static IQueryable<TQuery> In<TKey, TQuery>(
this IQueryable<TQuery> queryable,
IEnumerable<TKey> values,
Expression<Func<TQuery, TKey>> keySelector)
@davidfowl
davidfowl / dotnetlayout.md
Last active December 10, 2025 11:40
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/