1559 Commits

Author SHA1 Message Date
Marc Gravell 947b582c79 fix #1993 - when matching properties, prefer non-normalized property name (#1997) 2.1.21 2023-11-11 08:51:05 +00:00
Marc Gravell 5bb98eb52a mysql on CI has gone rogue; disable? (#1996) 2023-11-11 07:57:56 +00:00
Marc Gravell 6fdafc32e2 add commmit and rollback to "text" exclusion list (#1995) 2023-11-10 19:17:10 +00:00
Thomas Ingham bd649f0e58 Update Readme.md (#1994)
Ironic change of opportunity.
2023-11-09 14:16:55 +00:00
Korolev Dmitry f0e61a740b include ExplicitConstructorAttribute's targets to constructor&method (#1982)
* add method target for explicitconstructor

* add a noting comment (usage is limited with Dapper.AOT)
2023-10-22 08:54:13 +01:00
Marc Gravell 2f56056a89 - expand auto-sproc detection to handle more scenarios and explicit exclusions (#1989)
- add net7 target
- use regex generator when available (net7+)
- fix #1984
2023-10-20 09:24:01 +01:00
Marc Gravell cdadfa6db6 whitespace for auto-SP detection: use unicode spec via regex (#1987)
* add fix and test for #1975

* wrong ticket number; is #1986
2.1.15
2023-10-19 12:25:11 +01:00
Marc Gravell b446241da3 cite AWS 2023-10-18 20:38:33 +01:00
Marc Gravell a93678e485 move release notes to GitHub 2023-10-13 07:33:27 +01:00
Marc Gravell d91f993dc6 change NRT for ITypeMap.GetConstructorParameter (#1980)
* release notes for NRT tweak

* PR number
2023-10-13 07:11:10 +01:00
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