Implementing a generic data access layer using Entity Framework
Originally posted on Magnus Montin:
This post is about how you can develop a generic data access layer (DAL) with full CRUD (Create, Read, Update and Delete) support using Entity Framework 5 with plain old CLR objects (POCOs) and short-lived contexts in a disconnected and stateless N-tier application. Entity Framework (EF) is Microsoft’s recommended data…