1549 Commits

Author SHA1 Message Date
Marc Gravell b8d119fa63 NRT tweak on GetConstructorParameter 2.1.11 2023-10-13 07:06:15 +01:00
Marc Gravell 8d53acb401 the $ support added for DuckDB does not need to exacerbate the OLEDB problem (#1979) 2023-10-13 07:01:56 +01:00
Giorgi Dalakishvili 19193b52bb Add a setting to turn off Ole Db "smell check" (#1974)
* Add a setting to turn off Ole Db "smell check"

* Rename setting, fix logic

* Test for SupportLegacyParameterTokens

* Fix exception type

* Add release note
2023-10-11 13:10:00 +01:00
Giorgi Dalakishvili 2837480903 Add DuckDB tests (#1970)
* Add DuckDB tests

* Update DuckDB.NET.Data.Full version
2023-10-11 12:41:06 +01:00
Marc Gravell a37b151bb7 auto-detect stored procedures as anything without whitespace (#1975)
* 1. auto-detect stored procedures as anything without whitespace
2. we have public fields? (hangs head in shame)

* release notes

* no need to use regex
2023-10-10 15:06:21 +01:00
Marc Gravell 47ef1e7100 missed an object? type-handler 2023-09-14 06:25:35 +01:00
Marc Gravell 3c4ae7d74a release notes 2.1.4 2023-09-13 21:52:03 +01:00
Marc Gravell a4a55f5b79 assert that type handlers don't need object? (#1960)
* assert that type handlers don't need object? - include test to validate (plus: NRT check was happy)

fix #1959

* release notes
2.1.4
2023-09-13 21:43:13 +01:00
Marc Gravell 61ff85a2b8 add missing ReadUnbufferedAsync untyped API (#1958)
* - add missing ReadUnbufferedAsync untyped API
- remove an impossible branch

* release notes
2023-09-13 14:58:12 +01:00
Marc Gravell a2d539ccd5 release notes 2.1.1 2023-09-12 16:12:56 +01:00
Marc Gravell aecffecae1 attempt NRT makeover (#1928)
* attempt NRT makeover

- annotate NRTs on GridReader API
- add protected access to some of the GridReader internals
- switch GridReader callbacks to be more type-independent

docs

lib updates; deal with yellow warnings and test failures (SQL server certs and cancellation surfacing differently)

fix break

simplify proposed GridReader changes to protected OnBeforeGrid and OnAfterGrid[Async]

Builds: Bump library versions (#1935)

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

merge and lib updates

allow Identity to be constructed on-the-fly inside GridReader

fix build warnings

include readme

rev minor

- enable [SkipLocalsInit] everywhere
- use NET5_0_OR_GREATER
 for remoting check

# Conflicts:
#	Dapper/CommandDefinition.cs
#	Dapper/DefaultTypeMap.cs
#	Dapper/SqlMapper.Async.cs
#	Dapper/SqlMapper.IDataReader.cs
#	Dapper/SqlMapper.Link.cs
#	Dapper/SqlMapper.cs
#	Directory.Build.props

* shipped, not unshipped

* fixup SqlBuilder; use is null / is not null

* use central package management (#1949)

* Nullable test tweaks

* Nuget: let's just remove it!

* 2 test fixes from review

* fix FindExplicitConstructor

* add GetPropertySetterOrThrow

* fix NRT on FindConstructor

* DapperRow: value is object?

* use NotNullWhen

* make constructor problem more obvious

* test fixes

---------

Co-authored-by: Nick Craver <nrcraver@gmail.com>
2.1.1
2023-09-12 15:58:49 +01:00
Giorgi Dalakishvili 8a68070b8e Support $ as parameter prefix (#1952) 2023-09-03 14:48:12 +01:00
Lehonti Ramos ff913be391 Removed block nesting levels in a few tests by using block-scoped using statements (#1939)
Co-authored-by: John Doe <john@doe>
2023-08-24 13:12:33 +01:00
William Cole Boren 22adf2488a Missing curly brace from code example (#1830)
* Update Readme.md

* Added additional braces

* Update Readme.md
2023-08-24 12:56:23 +01:00
Marc Gravell ff98f8dbf1 answer #1950 using BDN (#1951) 2023-08-21 11:29:37 +01:00
Marc Gravell 67f7a1fe17 add Microsoft.CodeAnalysis.PublicApiAnalyzers on the main libs (#1948) 2023-08-18 11:47:37 +01:00
Marc Gravell 63fb7bae11 release notes 2.0.151 2023-08-18 10:47:57 +01:00
Marc Gravell 8c9b4bde3c Add FetchSize global setting (#1946)
* fix #1945

* PR number

* docs
2.0.151
2023-08-17 20:14:10 +01:00
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
Marc Gravell 19355d5c5c Update FUNDING.yml 2023-08-14 17:04:38 +01:00
Marc Gravell a7e708a618 Create FUNDING.yml 2023-08-14 17:03:01 +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
Nick Craver 33e0143002 Builds: Bump library versions (#1935) 2023-07-08 10:28:18 -04:00
Marc Gravell 02c92d99c4 tyop 2023-06-20 13:55:06 +01:00
Marc Gravell 1c628bfb74 release notes 2023-06-20 13:54:38 +01:00
Marc Gravell 20d81380ca mark all structs as readonly; fix some compiler noise (no functional change) (#1925) 2.0.143 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 a9ef55fae1 update release number in docs 2023-06-09 16:32:38 +01:00
Marc Gravell d56340b885 add missing QueryUnbufferedAsync<T> API (#1912)
* impl QueryUnbufferedAsync<T>
* implement GridReader.ReadUnbufferedAsync<T>
2.0.138
2023-06-09 16:22:25 +01:00
Nick Craver 194a0cea6a [Builds] AppVeyor: use Visual Studio 2022 image (#1911)
We want to use latest SDK and ability to run against net6.0 tests. It looks like the pool issue with VS 2022 has been resolved on the AppVeyor side so: yay! That solves everything cleanly with no installs.
2023-06-09 09:35:00 -04: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
Samir Dahal 4562cc2fce fix typos (#1800) 2022-08-21 13:27:30 -04:00
Olivier Spinelli 70be2bd5e2 Fixed case sensitivity issues. (#1801) 2022-08-21 13:27:09 -04:00
David Pine cb5a43bd7b Update index.md (#1806) 2022-08-21 13:26:05 -04:00
Alla Hoffman ca00feeb5f Adding notes on the sub-packages' purpose to the readme (#1718)
I just paraphrased the summaries from the sub-packages' Nuget Readmes and added them to the grid of packages in the Readme. Is that a good spot for them, and are those summaries sufficient? PR would close #1488
2022-03-02 20:04:43 -05:00
GitHubPang 62a526b411 Fix grammar and formatting in readme (#1696)
Co-authored-by: Nick Craver <nrcraver@gmail.com>
2022-01-04 09:24:35 -05:00
Raphael Schweizer 60fc296b73 Fix NETSDK1174 (#1699)
As per https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1174 `-p` is deprecated in favor of `--project`
This PR fixes the deprecation warning when running the benchmarks as currently described in the README.
2022-01-04 08:57:07 -05:00
Jon Roberts 17256754c3 Document usage of IDynamicParameters in more detail (#1707)
Considering all of the inquiries on StackOverflow about DynamicParameters, there should probably be a simple overview in the documentation.
Examples:

- https://stackoverflow.com/questions/12723922/dapper-adddynamicparams-for-in-statement-with-dynamic-parameter-name
- https://stackoverflow.com/questions/43412455/dapper-with-sql-query-dynamic-parameters
- https://stackoverflow.com/questions/38443739/passing-dynamically-created-sql-parameters-into-dapper-as-an-anonymous-type
- https://stackoverflow.com/questions/62448900/how-do-i-loop-through-dapper-dynamic-query-results-using-strings-as-parameters
- https://stackoverflow.com/questions/36735189/dapper-dynamicparameters-returning-error
2022-01-04 08:56:32 -05:00
Raphael Schweizer cb85070a39 EF Core benchmarks for connections w/ passwords (#1700) 2022-01-04 08:54:19 -05: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
mgravell 296092b73b release notes 2021-11-03 15:45:34 +00:00
Marc Gravell 2a837ad7d0 Support for snowflake (#1724)
* snowflake tests #1687

* actually add the tests!

* merge
2.0.123
2021-11-03 14:05:39 +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
Sergei Khlebnikov 80719d00f3 Added more use cases RepoDB benchmarks (#1710) 2021-10-10 09:29:55 -04:00
derickstinson a4b1c56a15 Update SqlMapper.cs (#1675)
Fix verbiage for return type documentation comments.
2021-07-27 09:13:00 +01:00
Pure Krome 1235a38e1b Another example: Execute a command Multiple Times (#1690)
Another example for "Execute a command Multiple Times" when we have an existing collection. The existing example (which still remains) I found to be a little bit confusing when I had an existing collection. So hopefully this 2nd example will help a tiny bit.
2021-07-27 09:11:38 +01:00