1292 Commits

Author SHA1 Message Date
Nick Craver 029ae842c8 1.50.5 Release 1.50.5 2018-05-16 14:32:42 -04:00
Brian Drupieski 39b1fd5a13 IEnumerable<T> check when updating and deleting 2018-05-14 06:44:11 -04:00
Ben McCallum f29981a77b Readme.md misc tidying 2018-04-10 13:17:25 -04:00
Charles-Isaac Côté bf8fdb9c9a Fixed dead link in Readme.md
Replaced a dead link in Readme.md by a link to the WaybackMachine
2018-04-09 16:37:31 -04:00
Nick Craver e199a8713c Better error messages for .*Async methods when not using DbConnection (#986)
* Better error messages for .*Async methods when not using  DbConnection

Perhaps in v2 we move these to DbConnection itself ratherr than IDbConnection for the extensions to eliminate the case, but that's breaking...for now we can at least throw a better error. See #757 for details.

* Tweak errors to allow open IDbConnections and those generating DbCommands

Same checks but a bit more lenient with more specific messaging.

* Tweaking error messages and supporting IDbConnection implementations … (#987)
2018-04-03 20:33:04 -04:00
Marc Gravell abd984d1a6 Merge pull request #993 from mikemccaughan/patch-1
Remove reference to Stack Overflow docs
2018-04-04 00:48:03 +01:00
Mike McCaughan c0ddd50470 Remove reference to Stack Overflow docs
Should resolve #992
2018-04-03 17:42:26 -04:00
Sergey fc38c4234f Removing unjustified use of AppendFormat in StringBuilder class (#989) 2018-03-30 17:32:28 -04:00
Brian Drupieski 6e9099d68e fix Insert<T> when T is declared as IEnumerable<T> (#948) 2018-03-29 21:12:46 -04:00
Jase 07fe543f15 Change to GetAll to allow the usage of a nullable type in T when T is an interface… #933 (#936)
* Change to GetAll to allow the usage of a nullable type in T when T is an interface.

* Change to GetAll to allow the usage of a nullable type in T when T is an interface: further change to check if val == null and if so then don't try to assign it as a property value.

* Change to Get to allow the usage of a nullable type in T when T is an interface. (effectively the same change as the previous change to GetAll.)

* Change to GetAsync and GetAllAsync to allow the usage of a nullable type in T when T is  an interface.

* Added in UserWithNullableDob and IUserWithNullableDob.

Added in tests for GetAndGetAllWithNullableValues and  GetAsyncAndGetAllAsyncWithNullableValues.

* Added in .ConfigureAwait(false) in the GetAsync Test.
Added comment to identify which issue the test relates to.

* Added NullableDates tables to the test databases.
Adjusted variable names in GetAndGetAllWithNullableValues and GetAsyncAndGetAllAsyncWithNullableValues.

* Changed IUserWithNullableDob to INullableDate.
2018-03-09 06:41:01 -08:00
Marcell Toth 671419c326 Make DapperRow implement IReadOnlyDictionary<string, object> (#913) 2018-03-06 23:17:46 -08:00
Alexey Zimarev bff5e75086 Code formatting fix (tabs to spaces) (#896) 2018-03-06 23:13:12 -08:00
Nick Craver dfbcaa1601 Test and fix for #591
This brings behavior QueryAsync behavior on par with Query (sync) and properly returns nothing when an empty result set is encountered.
2018-03-06 22:54:06 -08:00
Dominik Herold 80231b4d2b fix equal tests (#944)
* fix equal tests

* fix test
2018-02-13 21:22:50 -05:00
Andrey Dorokhov 17ffdc2437 Fix benchmark description typos (#932) 2018-02-01 18:33:25 -05:00
Nick Craver a213b2aeee Bump semver for next release to 1.50.5-alpha* 2017-11-25 21:22:53 -05:00
Nick Craver 710e86fe9f 1.50.4 release 2017-11-25 21:13:58 -05:00
Nick Craver 46dffa8469 Ignore .vscode/ 2017-11-25 21:10:10 -05:00
Nick Craver 4b746010ea bump semver for next release 1.50.4 2017-11-25 20:43:39 -05:00
Brian Drupieski d269a5a4b8 when inserting, check if type implements IEnumerable<T> to determine if it's a collection (#880)
* when inserting check if type implements IEnumerable<T> to determine if it's a collection
* when inserting, check if type is a collection by comparing its implemented interfaces to unbound generic type IEnumerable<> instead of the name "IEnumerable`1"
2017-11-25 20:37:19 -05:00
ydango dc374ad105 Shortened the changes
Combined 2 tests into one
2017-11-05 20:07:13 -05:00
ydango 5b52424ca9 Tests for DateTime2 compatibility
This shows the importance of using DbType.DateTime2 in Dynamic Parameters to avoid precision truncation
2017-11-05 20:07:13 -05:00
Marc Gravell 9c8e27779a words are hard 2017-11-01 09:22:36 +00:00
Marc Gravell dc725a3f33 Additional notes on literal replacements 2017-11-01 09:21:13 +00:00
Marc Gravell 853201c463 Merge pull request #873 from yvesmh/master
Add literal replacement example to readme
2017-11-01 09:12:39 +00:00
Yves Mancera b343f72451 Add literal replacement example to readme 2017-10-31 14:19:44 -07:00
Nick Craver 931c700dc2 MyGet feed!
Adding a dapper specific feed, for much easier pushing to NuGet. When
they implement Ctrl+Click in the UI this won't be necessary...or we
break down and automate it finally. Depends on signing plans later.
2017-09-14 13:58:42 -04:00
Nick Craver d45b79ff9d Fix build script
Removes NuGet workaround for pre-2.0 and lines up with other script
enhancements since.
2017-09-14 10:42:08 -04:00
Nick Craver e2ebdb08ac Dapper.Contrib: netstandard2.0 2017-09-14 10:37:18 -04:00
Nick Craver c747c63283 Lib updates and prep for netstandard2.0 alpha 2017-09-14 10:04:29 -04:00
Nick Craver 98c94c561c Misc build analyzer fixups 2017-09-14 10:02:00 -04:00
Nick Craver 071a3fd5a0 .editorconfig and formatting 2017-08-21 16:25:48 -04:00
Nick Craver 9e67f97f0c Merge branch 'master' of https://github.com/StackExchange/Dapper 2017-08-21 16:00:50 -04:00
Nick Craver 967a4a0a32 Merge pull request #827 from verysimplenick/master
Micro optimizations for CreateParamInfoGenerator
2017-08-21 16:00:46 -04:00
Nick Craver 7b34be3a25 net40 is dead - remove #if ASYNC bits 2017-08-21 15:25:57 -04:00
Nick Craver 702c918b33 Merge branch 'master' into master 2017-08-21 09:21:30 -04:00
Nick Craver 6ce36492ea Update README for new assertions 2017-08-21 08:29:53 -04:00
Nick Craver 4e99985dcc Fix unit tests 2017-08-21 08:25:02 -04:00
Nick Craver 8bc2f8c1c4 Merge pull request #782 from jiabiao/master
AddDynamicParameters repeated should work  while paramtype is DbString
2017-08-21 08:17:47 -04:00
Nick Craver 1f1e277db6 Merge pull request #837 from StackExchange/netstandard2-cleanup
Netstandard2.0 Followup Cleanup
2017-08-21 06:46:17 -04:00
Nick Craver 9076086b31 Merge pull request #836 from StackExchange/netstandard2
.NET Standard 2.0, for great justice.
2017-08-21 06:44:01 -04:00
Nick Craver ff2c70d0ec Cleanup 2017-08-20 23:00:16 -04:00
Nick Craver bdebedea41 Tests: xUnit cleanup
This change:
- Removes the Assert shim
- Uses recommended xUnit methods (improving fail errors)
- Cleans up exception tests
- General test formatting fixes
- Removes the netcoerapp1.0 only testing (oops commit)
2017-08-20 23:00:08 -04:00
Nick Craver e645420c7b Update README to remove advetisements 2017-08-20 17:57:33 -04:00
Nick Craver 71b179af9a Fix for #815
New overload so this isn't a breaking change. We can collapse down in v2.0 (including the Impl method).
2017-08-20 17:03:40 -04:00
Nick Craver 1bd1b4f8f5 Fix for #808
Add dynamic overloads for:
- QueryFirstAsync
- QueryFirstOrDefaultAsync
- QuerySingleAsync
- QuerySingleOrDefaultAsync

This may change a lot in 2.x, but many people asking for them now so here they are. Unit tests also fixed for QuerySingleOrDefaultAsync.

Note: this builds on the netstandard2 branch because of the xUnit changes to go with VS 2017 15.3.
2017-08-20 16:50:56 -04:00
Nick Craver 9d9afeaf29 Update semver, add to solution 2017-08-20 16:00:46 -04:00
Nick Craver 01c6a13967 Merge remote-tracking branch 'origin/master' into netstandard2 2017-08-20 15:46:39 -04:00
Nick Craver 6904fa4ed5 Appveypr: update to base 2017 image again
.NET Core 2 SDK is on the base Appveyor image now
2017-08-20 15:18:09 -04:00
Nick Craver 76c2e186e2 More test fixes 2017-08-20 15:17:33 -04:00