Dapper SqlMapperExtensions / Dapper.Contrib? [英] Dapper SqlMapperExtensions / Dapper.Contrib?

查看:140
本文介绍了Dapper SqlMapperExtensions / Dapper.Contrib?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎有一个DapperExtensions项目,但在Dapper项目中也有一个SqlMapperExtensions类。有重叠吗?一个比另一个更好吗?我在Dapper.Contrib上找不到任何文档。

There seems to be a DapperExtensions project, but there is also a SqlMapperExtensions class in the Dapper project. Is there overlap? Is one preferred over the other? I can't find any documentation on Dapper.Contrib.

推荐答案

Dapper.Contrib 是程序集名称: https://github.com/StackExchange/ Dapper / tree / master / Dapper.Contrib

SqlMapperExtensions 是包含contrib方法的静态类在 Dapper.Contrib 中: https://github.com/StackExchange/Dapper/blob/master/Dapper.Contrib/SqlMapperExtensions.cs

SqlMapperExtensions is the static class containing the contrib methods within Dapper.Contrib: https://github.com/StackExchange/Dapper/blob/master/Dapper.Contrib/SqlMapperExtensions.cs

最好的文档是测试用例类: https://github.com /StackExchange/Dapper/blob/master/Dapper.Tests.Contrib/TestSuite.cs

The best documentation is the test case class: https://github.com/StackExchange/Dapper/blob/master/Dapper.Tests.Contrib/TestSuite.cs

这篇关于Dapper SqlMapperExtensions / Dapper.Contrib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆