1330 Commits

Author SHA1 Message Date
Marc Gravell bed688bbe8 version for public drop 1.50.7 2019-02-11 08:44:46 +00:00
Marc Gravell 68eea4ff26 fix #1190 2019-02-09 12:22:11 +00:00
Wixely b961089eff Improve Exception message (#1154)
In cases where the object has a property named ID, the property will automatically be assigned as [Key], even if [Computed] is added manually in an attempt to override it. This can cause confusion, this exception will be thrown despite the code looking fine and there only being one [ExplicitKey] defined. I've added this extra line of information to help diagnosis.
2019-02-09 07:19:33 -05:00
Yves Mancera 5927c66776 Mention how to use user defined variables (#1149)
Fixes #620

Added a section to indicate Dapper works well with User Defined Variables.
2019-01-27 08:50:08 -05:00
James Kitamirike b4c6d5eff4 Fix typo (#1155) 2019-01-27 08:45:27 -05:00
Maksim Karpenko 82a0059535 Add the eXpress Persistent Objects (XPO) benchmark (#1131) 2018-11-01 20:58:49 -04:00
Andrew Sumido ec194429cd Corrected class name from PostcresqlTests to PostgresqlTests (#1144) 2018-11-01 20:56:06 -04:00
Nick Craver 48f6754ad6 Updte literal example to be a bit better 2018-09-11 22:28:11 -04:00
Nick Craver d702fb82eb Update benchmarks to latest run 2018-09-11 21:54:40 -04:00
Nick Craver c5f884de9b Fix benchmark stability
Lots of runs is good, but changed behavior and greatly affects stability (due to GC).
2018-09-11 21:49:42 -04:00
Nick Craver 2a2ff86561 Fix Dapper.Contrib to prefer its attribute but still fall back to others 2018-09-11 20:59:15 -04:00
Nick Craver 0ec089b7d2 Benchmarks: normalize names and give ORMs better names via [Description] 2018-09-11 18:04:35 -04:00
markjerz b262cb33dd Added Dashing Benchmarks (#1126)
Adds Dashing benchmarks to Dapper.Tests.Performance
2018-09-11 17:44:34 -04:00
Nick Craver 5256f2ea0b Benchmarks: Linq2DB tidy 2018-09-11 17:41:58 -04:00
ifle 9313e9f1f8 Added Linq2DB benchmarks (#1125)
Added Linq2DB benchmarks
2018-09-11 17:39:12 -04:00
Nick Craver 0b867bbfa2 Add EF compiled query to benchmarks 2018-09-10 20:37:19 -04:00
Nick Craver 0b168789fd Benchmarks: updating libs and overall runner (#1123)
This is prepping a run we can drop into the README easily. And more info on allocations and such along with it. It's finishing off the benchmark port getting it into a good output state (something we can copy/paste). It removes Simple.Data because the package was debug and causes a lot of issues.

This doesn't output 100% like we want yet (fastest to slowest). BenchmarkDotNet joins summary results after ordering...we need to post-order that. I'm asking the maintainers how to do so.

Also note Belgrade was not parameterizing before, giving it a huge unfair advantage. This has been fixed to be apples:apples.
2018-09-10 20:22:10 -04:00
David Glassborow 6e2774064d Make SqlMapper.Parse consistent with QueryImpl, closes #1111 2018-09-06 20:33:27 -04:00
David Glassborow 5189fcd43a Tests for #1111 - Inconsistent deserialisation between normal Query<T> and SqlMapper.Parse<T> 2018-09-06 20:33:27 -04:00
Nick Craver 522d150e25 Faster builds + use MySqlConnector
MySql.Data is a travesty at this point - moving to something more stable. Really we weren't testing Dapper with previous test failures, we were testing what mood MySql.Data and NuGet extraction are in and which phase of the moon is about.

Also speeds up the builds with 1 restore and 1 build. We can simplify here because everything is relevant (no wasted builds).
2018-09-03 21:38:27 -04:00
Nick Craver ba16b54b4f Woops, fix appveyor config for new build.ps1 2018-09-03 20:36:51 -04:00
Nick Craver e16c69950c Dapper build fixes, versioning, and SQL CE drop
- Moves to NerdBank git-based versioning
- Cleans up build.ps1 to current (will tweak for older moves later)
- Updates xUnit to latest
- Moves to dotnet test, since they killed dotnet xunit
- Testing SQL Server CE has become unreasonable. It's gone (minimal cleanup in this commit disabling it).
2018-09-03 20:35:06 -04:00
John M. Wright 1cd3efd894 More detailed error message on unsupported literal type (#1100)
instead of exception message of `DateTime`, you'll get `The type 'DateTime' is not supported for SQL literals.`, which is much more helpful when trying to figure out what went wrong
2018-08-22 09:00:02 -04:00
Tom Pažourek 10bfd02f15 Typo in readme (#1067) 2018-08-14 06:48:24 -04:00
pug-pelle-p 45460f3e5d Fixed indentation in Readme.md (#1098)
Fixed incorrect indentation in Readme.md
2018-08-14 06:47:16 -04:00
Jovan Popovic e7ba3054c8 Configured Belgrade Sql client to return data (#1066) 2018-07-19 20:30:23 +01:00
Hristo Stefanov cd751c21f6 Fixed issue with empty sqldatarecord list as a table valued parameter. (#900)
System.ArgumentException is thrown when passing empty SqlDataRecord list as an anonymous object or as table-valued parameter to Dapper. Added two unit tests.
2018-07-01 16:08:54 -04:00
Fabien Barbier 88348bd242 Fallback to Enumerable.Any() for detecting empty table-valued parameters. 2018-07-01 06:38:08 -04:00
Fabien Barbier 5bf9488c71 Fix handling of empty table-valued parameters. 2018-07-01 06:38:08 -04:00
Alex Wiese 1367853feb Update SqlMapperExtensions.Async.cs
Use adapter to format column name equals, bringing it in line with `Delete` behaviour.
2018-07-01 06:29:36 -04:00
Alex Wiese 271af11beb Update SqlMapperExtensions.Async.cs
Made the same fix to `InsertAsync`
2018-07-01 06:22:11 -04:00
Alex Wiese 307ab7eae8 Update SqlMapperExtensions.Async.cs
#418 - `Update` was fixed but `UpdateAsync` was not fixed.
2018-07-01 06:22:11 -04:00
nikita maletin 8916ccfd35 upd comment for query t7 method - need more, use query with Type[] params 2018-07-01 06:21:14 -04:00
Alex Wiese 4e62055c57 Update build.ps1
The -Contains operator doesn't do substring comparisons.

> -Contains
>Description: Containment operator. Tells whether a collection of reference values includes a single test value.

Should be using -Match operator instead.
2018-06-18 14:20:20 -04:00
Nick Craver 3c7cde28b5 Fix #451 2018-05-20 08:07:59 -04:00
Nick Craver d3873cdffa Fix #397 2018-05-20 08:02:31 -04:00
Nick Craver 8f13e220f2 Add packages to README 2018-05-20 07:30:09 -04:00
Nick Craver e8bd27d8a9 Add release notes for 1.50.5, bump to 1.50.6-alpha for builds
TODO: NerdBank versioning cutover
2018-05-20 07:29:51 -04:00
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