摘要: 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 阅读全文
posted @ 2013-08-21 01:00 赤狐(zcm123) 阅读(322) 评论(0) 推荐(0) 编辑