Skip to content

Commit 226ca4f

Browse files
authored
Merge branch 'DapperLib:main' into main
2 parents 330925f + a31dfd3 commit 226ca4f

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

Dapper/SqlMapper.Async.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static Task<dynamic> QuerySingleOrDefaultAsync(this IDbConnection cnn, Co
8181
/// <param name="commandTimeout">The command timeout (in seconds).</param>
8282
/// <param name="commandType">The type of command to execute.</param>
8383
/// <returns>
84-
/// A sequence of data of <typeparamref name="T"/>; if a basic type (int, string, etc) is queried then the data from the first column in assumed, otherwise an instance is
84+
/// A sequence of data of <typeparamref name="T"/>; if a basic type (int, string, etc) is queried then the data from the first column is assumed, otherwise an instance is
8585
/// created per row, and a direct column-name===member-name mapping is assumed (case insensitive).
8686
/// </returns>
8787
public static Task<IEnumerable<T>> QueryAsync<T>(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null) =>
@@ -276,7 +276,7 @@ public static Task<object> QuerySingleOrDefaultAsync(this IDbConnection cnn, Typ
276276
/// <param name="cnn">The connection to query on.</param>
277277
/// <param name="command">The command used to query on this connection.</param>
278278
/// <returns>
279-
/// A sequence of data of <typeparamref name="T"/>; if a basic type (int, string, etc) is queried then the data from the first column in assumed, otherwise an instance is
279+
/// A sequence of data of <typeparamref name="T"/>; if a basic type (int, string, etc) is queried then the data from the first column is assumed, otherwise an instance is
280280
/// created per row, and a direct column-name===member-name mapping is assumed (case insensitive).
281281
/// </returns>
282282
public static Task<IEnumerable<T>> QueryAsync<T>(this IDbConnection cnn, CommandDefinition command) =>

Readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ MyGet Pre-release feed: https://www.myget.org/gallery/dapper
2020
| [Dapper.SqlBuilder](https://www.nuget.org/packages/Dapper.SqlBuilder/) | [![Dapper.SqlBuilder](https://img.shields.io/nuget/v/Dapper.SqlBuilder.svg)](https://www.nuget.org/packages/Dapper.SqlBuilder/) | [![Dapper.SqlBuilder](https://img.shields.io/nuget/vpre/Dapper.SqlBuilder.svg)](https://www.nuget.org/packages/Dapper.SqlBuilder/) | [![Dapper.SqlBuilder](https://img.shields.io/nuget/dt/Dapper.SqlBuilder.svg)](https://www.nuget.org/packages/Dapper.SqlBuilder/) | [![Dapper.SqlBuilder MyGet](https://img.shields.io/myget/dapper/vpre/Dapper.SqlBuilder.svg)](https://www.myget.org/feed/dapper/package/nuget/Dapper.SqlBuilder) |
2121
| [Dapper.StrongName](https://www.nuget.org/packages/Dapper.StrongName/) | [![Dapper.StrongName](https://img.shields.io/nuget/v/Dapper.StrongName.svg)](https://www.nuget.org/packages/Dapper.StrongName/) | [![Dapper.StrongName](https://img.shields.io/nuget/vpre/Dapper.StrongName.svg)](https://www.nuget.org/packages/Dapper.StrongName/) | [![Dapper.StrongName](https://img.shields.io/nuget/dt/Dapper.StrongName.svg)](https://www.nuget.org/packages/Dapper.StrongName/) | [![Dapper.StrongName MyGet](https://img.shields.io/myget/dapper/vpre/Dapper.StrongName.svg)](https://www.myget.org/feed/dapper/package/nuget/Dapper.StrongName) |
2222

23+
Package Purposes:
24+
* Dapper.EntityFramework
25+
* Extension handlers for EntityFramework
26+
* Dapper.EntityFramework.StrongName
27+
* Extension handlers for EntityFramework
28+
* Dapper.Rainbow
29+
* Micro-ORM implemented on Dapper, provides CRUD helpers
30+
* Dapper.SqlBuilder
31+
* Component for building SQL queries dynamically and composably
32+
* Dapper.StrongName
33+
* High-performance micro-ORM supporting MySQL, Sqlite, SqlICE, and Firebird
34+
2335
Features
2436
--------
2537
Dapper is a [NuGet library](https://www.nuget.org/packages/Dapper) that you can add in to your project that will extend your `IDbConnection` interface.
@@ -113,7 +125,7 @@ var foos = new List<Foo>
113125
{
114126
{ new Foo { A = 1, B = 1 } }
115127
{ new Foo { A = 2, B = 2 } }
116-
{ new Foo { A = 3, B = 3 } }
128+
{ new Foo { A = 3, B = 3 } }
117129
};
118130

119131
var count = connection.Execute(@"insert MyTable(colA, colB) values (@a, @b)", foos);

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dapper - a simple object mapper for .Net
1+
# Dapper - a simple object mapper for .NET
22

33
## Overview
44

tests/Dapper.Tests/SqlBuilderTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public void TestSqlBuilderUpdateSet()
5252
var updatetime = DateTime.Parse("2020/01/01");
5353

5454
var sb = new SqlBuilder()
55-
.Set("vip = @vip", new { vip })
56-
.Set("updatetime = @updatetime", new { updatetime })
57-
.Where("id = @id", new { id })
55+
.Set("Vip = @vip", new { vip })
56+
.Set("Updatetime = @updatetime", new { updatetime })
57+
.Where("Id = @id", new { id })
5858
;
5959
var template = sb.AddTemplate("update #Users /**set**/ /**where**/");
6060

@@ -69,7 +69,7 @@ public void TestSqlBuilderUpdateSet()
6969

7070
var result = connection.QueryFirst("select * from #Users where Id = 1");
7171

72-
Assert.Equal("update #Users SET vip = @vip , updatetime = @updatetime\n WHERE id = @id\n", template.RawSql);
72+
Assert.Equal("update #Users SET Vip = @vip , Updatetime = @updatetime\n WHERE Id = @id\n", template.RawSql);
7373

7474

7575
Assert.True((bool)result.Vip);

tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<ProjectReference Include="../../Dapper/Dapper.csproj" />
17-
<PackageReference Include="GitHubActionsTestLogger" Version="1.1.2" />
17+
<PackageReference Include="GitHubActionsTestLogger" Version="2.0.0" PrivateAssets="all" />
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
1919
<PackageReference Include="xunit" Version="2.4.1" />
2020
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />

0 commit comments

Comments
 (0)