Skip to content

Instantly share code, notes, and snippets.

View OculiViridi's full-sized avatar
🎯
Focusing

FB OculiViridi

🎯
Focusing
  • Italy
  • 15:43 (UTC +02:00)
View GitHub Profile
@ErikEJ
ErikEJ / IQueryableExtensions.cs
Last active March 30, 2025 14:29
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 May 6, 2025 09:59
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/