简介 Dapper是介于Entity framework与ADO的折中选择.既满足手写查询的高性能需求,又简化了数据库对象映射为内存对象的繁杂工作.Dapper.Contrib是对Dapper的进一步封装,使对象的基本增删改查等操作进一步简化. 为什么使用Dapper.Contrib 如果仅仅使用Dapper,要对一个对象进行insert操作需要如下操作 using (var connection = new SqlConnection("链接字符串")) { var users =
原文地址:http://www.cnblogs.com/luomingui/p/3362813.html EF 5.0 帮助类 加入命名空间: using System; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; 接口: public interface IEFRepository<TEntity> where TEntity