Entity Framework 6 and Unit Of Work… Where, When? Is it like transactions in ado.net?
Creating a new MVC project and like the idea of repositories in the data layer, so i have implemented them. I have also created a Service layer to handle all business logic and validation, this layer in turn uses the appropriate repository. Something like this (I am using Simple Injector to inject) DAL LAYER public class MyRepository { private DbContext _context; public MyRepository(DbContext context) { _context = context; } public MyEntity Get(int id) { return _context.Set<MyEntity>().Find(id); } public TEntity Add(MyEntity t) { _context.Set<MyEntity>().Add(t); _context.SaveChanges(); return