I use the repository pattern for pretty much all of my projects. I have a .edmx/.dbml file that has my database tables referenced, and then for each table I create a ‘Tablename’Repository.cs
Each of these classes have the same methods with only the type of table being called being changed.
public IQueryable<Area> FindAll()
public IQueryable<Department> FindAll()
public IQueryable<Boss> FindAll()
Any suggestions? This would really cut my cruft development time and I think people would enjoy using it.
Thanks!
you be needing t4 templates then …
http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx
Read Scotts as the start – he handly reference other resources to get you started and reference things for the Entity Framework/Linq2SQL
MSDN StartPage for t4