Skip to content

Instantly share code, notes, and snippets.

@FraukeN
Last active December 24, 2015 10:46
public class LocationRepository
{
public IEnumerable<Location> Get()
{
IEnumerable<Location> result = null;
using (QuesterContext context = new QuesterContext())
{
result = from e in context.Locations
select e;
}
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment