Learn Dapper: https://www.learndapper.com/
Dapper Tutorial: https://dappertutorial.net/
Info
Version: | 1.4.0.1 |
Author(s): | RobinYang |
Last Update: | Tuesday, March 23, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://blog.csdn.net/robin7603/article/details/101035267 |
NuGet Url: | https://www.nuget.org/packages/Yang.Query.Dapper2MsSql |
Install
Install-Package Yang.Query.Dapper2MsSql
dotnet add package Yang.Query.Dapper2MsSql
paket add Yang.Query.Dapper2MsSql
Yang.Query.Dapper2MsSql Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
- Dapper(>= 1.50.1)
- System.ComponentModel.Annotations(>= 4.5.0)
- Yang.Query(>= 1.2.2)
- Dapper(>= 1.50.1)
- System.ComponentModel.Annotations(>= 4.5.0)
- Yang.Query(>= 1.2.2)
- Dapper(>= 1.50.1)
- System.ComponentModel.Annotations(>= 4.5.0)
- Yang.Query(>= 1.2.2)
Tags
var res0 = cnn.Find<GoodsInfo>().Take1().Ex();
var res5 = cnn.Find<GoodsInfo>().Take(100).Ex();
var res4 = cnn.Find<GoodsInfo>(o => o.GoodsId == 1).Ex();
var res3 = cnn.Find<GoodsInfo>().Sort(o => o.UpdateTime).Take1().Ex();
var res2 = cnn.Find<GoodsInfo>().Sort(o => o.UpdateTime).Take(10).Skip(10).Ex();
var res1 = cnn.Find<GoodsInfo>(o => o.GoodsId == 1).Sort(o => o.UpdateTime).Take(10).Skip(10).Ex();
var res6 = cnn.Find<GoodsInfo>(o => o.GoodsId == 1).Sort(o => o.UpdateTime, EOrderBy.Asc).Take(10).Skip(10).Ex();.