摘要: 这篇文章主要讲 Dapper Plus,它使用用来操作大数量的一些操作的。比如插入1000条,或者10000条的数据时,再使用Dapper的Execute方法,就会比较慢了。这时候,可以使用Dapper Plus中的方法进行操作,提高速度。 主要包括下面: Bulk Insert Bulk Upda 阅读全文
posted @ 2019-09-15 10:36 Vincent-yuan 阅读(3572) 评论(1) 推荐(0) 编辑
摘要: 有两个表名:source 表和 target 表,并且要根据 source 表中匹配的值更新 target 表。 有三种情况: source 表有一些 target 表不存在的行。在这种情况下,需要将 source 表中的行插入到 target 中。 target 表有一些 source表不存在的行 阅读全文
posted @ 2019-09-15 09:50 Vincent-yuan 阅读(4049) 评论(0) 推荐(3) 编辑
摘要: 这里说的其他用法,是指 Async,Buffered,Transaction,Stored Procedure。 1. 首先 dapper支持异步 ExecuteAsync, QueryAsync, QueryFirstAsync, QueryFirstOrDefaultAsync, QuerySi 阅读全文
posted @ 2019-09-15 09:15 Vincent-yuan 阅读(1388) 评论(0) 推荐(0) 编辑