Commit Graph

1610 Commits

Author SHA1 Message Date
Marc Gravell 4fa9e8f6e0 is custom collector to avoid intermediate array allocations 2025-05-16 15:31:22 +01:00
kabaome 5c7143f2e3 CI: serialize DB-dependent tests (#2163)
* CI: serialize DB-dependent tests

* github workflows test
2025-04-30 20:31:40 +01:00
kabaome 5e6a6eb82f CI: use preinstalled sdk (#2160) 2025-04-27 19:34:35 +01:00
ri-rgb d994b6d932 OutputExpression wasn't working for methods that use QueryRowAsync (#2156)
Added command.OnCompleted() to QueryRowAsync

Co-authored-by: Rich <Rich@XPS-15>
2025-04-08 11:07:45 +01:00
Jesper Noordsij e97a919352 Fix and clarify OrWhere caveats in SqlBuilder docs (#2149)
* Fix and clarify OrWhere caveats in SqlBuilder docs

* Add example with OrWhere call first
2025-04-08 11:01:52 +01:00
Marc Gravell bd4f75b512 normalize async API surface over all TFMs (#2144)
* - normalize async API surface over all TFMs (fix #2143)
- target net8.0 instead of net5.0
- lib updates

* net9 SDK

* perf tests: clean up SqlClient warning

* CI fix: test concurrency

* rev snowflake
2.1.66
2025-02-06 12:11:30 +00:00
Marc Gravell 4e57602271 Update main.yml 2025-01-25 18:07:46 +00:00
Marc Gravell cfc2fdd4da install dotnet 2025-01-25 18:04:36 +00:00
Nick Craver 6434c694b2 Build: Update Postgres script (#2130) 2024-10-31 20:38:20 -04:00
Marc Gravell 9f4f783a41 Mark AddTypeHandlerImpl as obsolete and prevent lost updates via AddTypeHandler (#2129)
* - mark AddTypeHandlerImpl as obsolete
- syncronize type-handler mutates, to prevent lost writes

* CI: revert pgsql uddate

* suppress Impl's use of clone: false

* avoid additional local snapshot, now that we're synchronized

* explicitly request postgresql96

* more pgsql poking

* pg path fix
2024-10-31 07:23:21 +00:00
Marc Gravell 00a3808f7d Update issue templates 2024-10-17 13:27:42 +01:00
Andrea Latanza a3804ceb1d fix: properly handle value types when setting properties on dynamic objects returned by Dapper queries (#2122) 2024-10-13 09:31:25 +01:00
Marc Gravell b4f80b6b6b Improve performance of "queryunbuffered", and correctness of "first" APIs (#2121)
* see #2115

- correctness: do no use SingleRow by default; affects trailing errors
- performance: QueryUnbufferedAsync can mirror cmd?.Cancel() in finally (this is consistent with all other scenarios)

* remove settings tweak
2024-10-09 11:15:28 +01:00
Robert Silén e0479ba16d add mention of MariaDB to Readme.md (#2116) 2024-10-08 13:23:18 +01:00
Marc Gravell dddd102eef update package refs and fixup (#2120) 2024-10-08 13:23:00 +01:00
goerch 38df7bb89e Fix #2113 (#2118) 2024-10-07 13:00:15 +01:00
Marc Gravell 70e57f820d appveyor pgsql update (#2119) 2024-10-07 12:50:42 +01:00
Cédric Luthi 9ed3525598 Do not close the inner reader when disposing wrapped data readers (#2100)
When disposing wrapped readers, only call Dispose() on the inner reader and let it catch exceptions if appropriate.

Note: this actually happened with `Microsoft.Data.SqlClient`.

```
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
 ---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
   at void Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)
   at void Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, bool callerHasConnectionLock, bool asyncClose)
   at bool Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, out bool dataReady)
   at bool Microsoft.Data.SqlClient.SqlDataReader.TryCloseInternal(bool closeReader)
   at void Microsoft.Data.SqlClient.SqlDataReader.Close()
   at void Dapper.DbWrappedReader.Dispose(bool disposing) in /_/Dapper/WrappedReader.cs:line 149
   at ValueTask System.Data.Common.DbDataReader.DisposeAsync()
```
2024-07-03 13:32:18 +01:00
Marc Gravell 52160dc446 missed one 2024-04-30 20:28:19 +01:00
Marc Gravell bfa91d3e3c change dapper-plus citation (#2083) 2024-04-30 20:23:51 +01:00
Marc Gravell 13b2ef2cc2 Update NonCLA.md 2024-04-28 10:25:21 +01:00
Marc Gravell 8d7d262871 Update cla.yml 2024-04-28 10:07:12 +01:00
Marc Gravell 9212a8da6e Non-CLA 2024-04-28 10:04:28 +01:00
Marc Gravell d9fed73d00 Merge branch 'main' of https://github.com/DapperLib/Dapper 2024-04-26 09:03:21 +01:00
Marc Gravell 9fdb30a43e disable DateOnly / TimeOnly support - see #2071 / #2072 (#2080) 2024-04-26 09:02:37 +01:00
github-actions[bot] c5f1206933 Creating file for storing CLA Signatures 2024-04-26 07:50:49 +00:00
Marc Gravell 907a4d9b35 disable DateOnly / TimeOnly support - see #2071 / #2072 2024-04-26 08:49:47 +01:00
Marc Gravell 2fa046cd39 Create cla.yml 2024-04-13 09:07:53 +01:00
Marc Gravell b51cc77596 Update Readme.md
(actually just to bump build)
2.1.44
2024-04-12 12:12:02 +01:00
Marc Gravell 92c81bc2c2 fix image in readme 2024-04-12 11:57:42 +01:00
Marc Gravell fa9c96aec0 revert #2050 - see #2049 for more details (#2070)
* revert #2050 - see #2049 for more details
2.1.42
2024-04-12 11:13:05 +01:00
Marc Gravell ad16263ac4 tyop 2024-04-12 09:43:31 +01:00
Marc Gravell a11879c6dc more context 2024-04-12 09:41:32 +01:00
Marc Gravell d40f9f0ca9 image size 2024-04-12 09:17:59 +01:00
Marc Gravell 803e3510ea Dapper Plus (#2069)
add Dapper Plus as sponsor
2024-04-12 09:13:24 +01:00
Marc Gravell 402f20ce37 implement DateOnly/TimeOnly (#2051)
fix #1715
adds net6 TFM
2.1.37
2024-03-07 12:19:30 +00:00
Marc Gravell 87eb033118 string and byte[] : add UseGetFieldValue (#2050)
* string and byte[] : add UseGetFieldValue to prevent problems with npgsql using global deserializer
* switch to GetFieldValue<T> changes some messaging in invalid cast scenarios; if anything, new version is clearer, so: fine
* test fixes
2024-03-06 20:58:21 +00:00
Marc Gravell 360367ca54 add REVERT to CommandText checklist (#2048) 2.1.35 2024-03-06 14:59:19 +00:00
Ion Dormenco 8d2cb0cf35 Update Readme.md (#2047)
Fix path to Dapper.Rainbow readme
2024-02-18 15:14:08 +00:00
Daryl Johnston 108806565d Issue #2044 (#2045) 2024-02-17 08:03:01 +00:00
Kasper B. Graversen 7d811c4665 dapper.rainbow guide (#2043) 2024-02-17 00:16:42 +00:00
Kasper B. Graversen 4f8e92fba5 Exposing the transaction used in class Database. (#2038)
This enables to do queries not supported by rainbow within the same transaction

Closes #1944
2024-02-15 07:30:52 +00:00
Marc Gravell 3904675a78 CI: use preinstalled sdk (#2042)
* CI: use preinstalled sdk

* package updates, in particular SQL Server CVE (tests only)
2024-02-13 16:27:00 +00:00
Ohorodniichuk Dmytro 8f369914ac Issue #1164 (#1795)
Fix unsigned types mapping arithmetic overflow
Add tests to reproduce issue #1164

Co-authored-by: Dmytro Ohorodniichuk <dmytro.ohorodniichuk@neogames.com>
2024-01-07 21:42:09 +00:00
Marc Gravell d7c16035d2 fix codegen error in value-type multimap #2005 (#2022)
in horizontal multi-map, don't "returnValueLocal = null" for value-types (invalid IL)
fix #2005
2.1.28
2024-01-02 15:32:04 +00:00
Andrii Kurdiumov 4160c9f344 Update benchmarks with latest results. (#2016)
* Update benchmarks with latest results.

* Address PR feedback
2023-12-18 12:21:48 +00:00
Ron 3c3509f373 Update SqlMapper.cs (#2010)
Fixed typo in comments
2023-12-07 23:20:02 +00:00
0nly1ken0bi 0cd331b044 Fixed documentation to read better (#2008) 2023-12-03 09:40:54 +00:00
Marc Gravell c46c69a174 1. give clearer error messages when an ICustomQueryParameter is null (#2003)
2. provide a convenience .ctor on DbString
2.1.24
2023-11-23 08:58:18 +00:00
Bill Robertson 0272d82b7d chore: Update Readme.md (#2002)
Updates url to point to new release notes publication.  The .io one said it wasn't in use anymore and to use the github.com releases information.
2023-11-21 06:50:02 +00:00