Marc Gravell
33090c0218
Underscore handling ( #1947 )
...
* Adds MatchConstructorParametersWithUnderscores option
* generalize to single MatchNamesWithUnderscores (pre-existing)
* cite 2nd PR
---------
Co-authored-by: Jonas Goronczy <goronczy.jonas@gmail.com >
2023-08-17 17:30:34 +01:00
Nick Craver
136dc11f0c
Tests: Upgrade dependencies for Dependabot ( #1936 )
...
I'll do a pass at all of these later, but getting CVE versions out of the pipe.
Resolving 4 alerts here: https://github.com/DapperLib/Dapper/security/dependabot
2023-07-08 11:43:58 -04:00
Marc Gravell
20d81380ca
mark all structs as readonly; fix some compiler noise (no functional change) ( #1925 )
2023-06-20 13:33:43 +01:00
Marc Gravell
d91d90465d
reinstate support for IDataReader ( #1913 )
...
* if we stop supporting DbDataReader, someone is going to complain; I'd
rather wrap it for now (to make the lib work), and add an analyzer
in AOT that shouts at them for using IDbConnection
also: compiler nits
* release notes
2023-06-20 13:31:55 +01:00
Cédric Luthi
677fee27c6
Enable the Issue552_SignedUnsignedBooleans test ( #1919 )
...
It works fine with MySqlConnector 1.1.0
2023-06-13 17:11:13 +01:00
Cédric Luthi
da6509a224
Document how to run docker for db tests (Firebird + MySQL + PostgreSQL) ( #1918 )
2023-06-13 17:06:30 +01:00
Marc Gravell
d56340b885
add missing QueryUnbufferedAsync<T> API ( #1912 )
...
* impl QueryUnbufferedAsync<T>
* implement GridReader.ReadUnbufferedAsync<T>
2023-06-09 16:22:25 +01:00
Marc Gravell
01f03ef3e8
add support for fetching values via GetFieldValue<T> ( #1910 )
...
add support for fetching values via GetFieldValue<T>; this requires
DbDataReader, but in reality the reader is *always* DbDataReader;
acknowledge this, and stop pretending to use IDataReader internally
(no breaks to public API)
2023-06-09 14:02:06 +01:00
Oleksii Holub
a31dfd3dd4
Update GitHubActionsTestLogger ( #1781 )
2022-08-21 13:28:02 -04:00
Olivier Spinelli
70be2bd5e2
Fixed case sensitivity issues. ( #1801 )
2022-08-21 13:27:09 -04:00
mgravell
3d405fea35
add type hint
2021-11-11 14:14:25 +00:00
mgravell
21ce60b523
move tests to npgsql 6 (GA); better datetime coverage
2021-11-11 14:05:48 +00:00
Marc Gravell
b272cc664d
Don't specify dbtype for DateTime et al; fixed npgsql 6 issue ( #1723 )
...
* context: #1716 https://github.com/DapperLib/Dapper/issues/1716
- change type-map to allow nullable
- change DateTime/TimeSpan to null
- do not specify DbType for null
- semi-breaking change: swap GetDbType to SetDbType, noting that it is marked [Obsolete] and internal-use-only
- semi-breaking change: make LookupDbType return nullable (same internal-use/[Obsolete])
* add test for Npgsql 6.0.0-rc.1
* try list parameters (like arrays)
* never assign -1 (sentinel) as the .DbType
* postgres tests
2021-11-03 14:01:15 +00:00
Marc Gravell
4aac41a2bc
Enables "snowflake" connection ( #1689 )
...
* snowflake tests #1687
* actually add the tests!
2021-07-27 09:11:16 +01:00
Nick Craver
29f3befae2
Merge pull request #1662 from DapperLib/craver/split-dapper.contrib
2021-05-10 08:58:59 -04:00
Nick Craver
2b7b3fe4a9
Merge pull request #1575 from zqlovejyc/main
2021-05-10 08:58:31 -04:00
Nick Craver
600c1aca45
Add test cases and cleanup last call site.
...
This merges in the work in #1663 and cleans up the convert a bit further.
2021-05-09 23:10:31 -04:00
Nick Craver
566d169a26
Add DbString.ToString() overload
...
Fixes #1538 and #1545 by making DbString.ToString() much more descriptive.
2021-05-09 22:36:23 -04:00
Nick Craver
fca49ebcce
SplitOn: improve error message
...
Fixes #866 . This provides a more informative error, saying _which_ splitOn column couldn't be found in the result set.
2021-05-09 21:51:20 -04:00
Nick Craver
a12c37adcd
Merge pull request #1598 from DarkWanderer/feature/support-returning-arrays
2021-05-09 08:08:41 -05:00
Nick Craver
3387019402
Merge remote-tracking branch 'origin/main' into pr/952
2021-05-09 08:41:35 -04:00
Nick Craver
11931f9e6c
Dapper.Contrib: removal (repo split)
...
Dapper.Contrib is now located at https://github.com/DapperLib/Dapper.Contrib
2021-05-08 20:36:15 -04:00
mgravell
e26aa7b2d6
fix #1656 (git reorg)
2021-04-29 11:04:12 +01:00
DarkWanderer
55b10233f1
Removed accidental namespace addition, made test name clearer
2020-12-20 11:13:12 +03:00
DarkWanderer
f724638c20
Add PostgreSQL test for array
2020-12-20 11:13:12 +03:00
Marc Gravell
6ab170c160
.Net 5 ( #1572 )
...
* initial net5.0 tweaks; also fix current IDE warnings
* lib updates and fixes
* more cleanup
* fix snafu
* skip locals init
* disable xunit shadow copy in tests
* test records
* explore scenario that currently works re #1571
2020-11-17 09:57:17 +00:00
Alexey Golub
7778f18f9f
Update GitHubActionsTestLogger
...
Bumped GitHubActionsTestLogger to v1.1.2 as it fixes a few issues related to reporting in async tests.
https://github.com/Tyrrrz/GitHubActionsTestLogger/blob/master/Changelog.md#v112-26-oct-2020
2020-10-29 02:21:05 +02:00
Nick Craver
1c4f33d665
Fix TestMultiSelectWithSomeEmptyGrids on *nix
2020-10-22 20:59:16 -04:00
Nick Craver
c52bd401f0
Take 32
2020-10-22 20:38:41 -04:00
Nick Craver
8d26e67c01
Tweaks!
2020-10-17 09:07:48 -04:00
Nick Craver
3707223a1a
Tweak docker bits
...
To test locally:
```
$env:SqlServerConnectionString = "Server=.;Database=tempdb;User Id=sa;Password=saAccountI#v3rySecure;"
$env:OLEDBConnectionString = "Provider=SQLOLEDB;Server=.;Database=tempdb;User Id=sa;Password=saAccountI#v3rySecure;"
$env:MySQLConnectionString = "server=localhost;Port=3306;Uid=root;Pwd=root;Database=test;Allow User Variables=true"
$env:PostgreSqlConnectionString = "Server=localhost;Port=5432;Database=test;User Id=postgres;Password=postgres;"
```
2020-10-17 08:53:44 -04:00
Nick Craver
deadc1e3bb
Start of Docker bits
2020-10-15 20:33:15 -04:00
Nick Craver
78ed4b2077
Tests: move into folders
...
One of several moves to make this something we can dev on all platforms and build on Actions for v3 onwards.
2020-10-11 14:56:35 -04:00