Skip to content

Instantly share code, notes, and snippets.

View frookypoon's full-sized avatar

Quinton Bernhardt frookypoon

  • Private
  • Johannesburg, South Africa
View GitHub Profile
@frookypoon
frookypoon / DomainAbstract.cs
Last active December 17, 2015 21:48
C# - EntityFramework - DbSet<T>.Find(...) and the inability to use it with Includes (Yes, some of us don't want to use lazy loading for fracksake). Here's one way to make it generic
/*
* Tested on EF 5
*/
using System;
using System.Collections.Generic;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Linq.Expressions;
using System.Text;