So, I am trying to implement best practices during the design phase of a system. I am going to be using a DI container (ninject) with Entity Framework 4, ASP.NET MVC 3 C#, and the repository / unit of work pattern.
GenericRepository<TEntity> defined for use with entities that require only minimal access such as basic CRUD.Bind<ITRepository>().To<EFTRepository>() in the factory's AddBindings() method.Am I going about this right? I haven't used this set of patterns before and want to make sure I am going to be using them correctly. Criticisms welcome!
public class DatabaseTablesExampleContext : DbContext { DbSet<SingleTableExample> SingleTableExamples; DbSet<SecondTableExample> SecondTableExamples; }