摘要:
In this post, i will show how to use generic repository and dependency injection using structuremap. I will be using LINQ to SQL.Generic RepositoryThe interface for the generic repository is like this:12345678910111213141516171819public interface IRepository where T : class{void Create(T entity);voi 阅读全文