Commit Graph

94 Commits

Author SHA1 Message Date
Marc Gravell 2df6d074e8 Experimental multi-map code for tuples (not optimized) 2017-04-21 14:45:21 +01:00
Marc Gravell 9f827eb39f Add tests for the too few/too many columns scenarios for value-tuples; happy to discuss alternative expectations 2017-04-21 13:20:18 +01:00
Marc Gravell 6a29c49398 remove redundant test code (oops) 2017-04-21 13:20:18 +01:00
Marc Gravell 7c1ad86e93 Define expected behaviour for value-tuple parameters and returns, and implement 2017-04-21 13:20:18 +01:00
Marc Gravell 637158f5ce Replace System.Data.SqlClient dependency with System.Data.Common in main lib 2017-04-21 13:04:46 +01:00
Samo Prelog e5cc3ccf86 workaround for https://github.com/NuGet/Home/issues/4853 2017-04-10 10:45:27 +02:00
Nick Craver ae7a29a9f1 VS 2017 .csproj Migration
Due to the way VS test works (by injecting an executable entry point), the performance tests needed to be factored out. I also organized all of our existing tests better along the way.
Actual code changes to Dapper itself are very minor, only formatting and documentation fixes (which we need many more of).

The build.ps1 script is upated to work, but note that <frameworkAssemblies> is not working in .nuspec inside the packages in the new .csproj system. I consider this to be a blocker. Issue is here: https://github.com/NuGet/Home/issues/4853
2017-03-25 19:34:10 -04:00
Jovan Popovic (MSFT) 71c16e6684 Fixed test issue in Simple.Data performance test (#723)
* Added fix for Simple.Data tast

Due to the missing .FirstOrDefault() in Simple.Data test, performance
numbers for Simple.Data were too high (better than hand coded data
reader). Added FirstOrDefault() to actually fetch the data.
2017-03-14 06:55:23 -04:00
Jovan Popovic 1369e5d0a7 Added Belgrade Sql Client
In the performance benchmark is added Belgrade Sql client data access
library (https://github.com/JocaPC/CLR-Belgrade-SqlClient). This is a
wrapper around ADO.NET classes that executes queries in async manner
using callbacks. "Belgrade.Sql.Client": "0.6.2" is aded in project.json
file, and new flag "BELGRADE" controls should the test be executed.
2017-02-22 14:20:55 +01:00
Nick Craver f0bbbab8e5 Rename package to "Dapper"
Related: #683
2017-02-08 21:27:14 -05:00
Nick Craver fe5c270ace Merge pull request #638 from hakon1912/master
Add SqlMapper.RemoveTypeMap() method
2017-01-26 19:18:01 -08:00
Marc Gravell 23e6b64c9f Revert "1.50.3-beta1: looks at #637 re Guid"
This reverts commit 91725fb309.
2017-01-06 13:53:50 +00:00
verysimplenick 6f4284ec2d Add test DiscriminatedUnionWithMultiMapping
DiscriminatedUnionWithMultiMapping - test for check correct MultiMapping (splitOn) functionality with discriminated row parser.
2016-11-28 12:06:55 +03:00
hwikene 8aa10a0237 Add SqlMapper.RemoveTypeMap() method 2016-11-05 14:01:33 -07:00
Marc Gravell 91725fb309 1.50.3-beta1: looks at #637 re Guid 2016-11-04 13:46:28 +00:00
Marc Gravell 61e965eed9 Merge pull request #602 from StackExchange/#563
Make CommandBehavior optimizations more configurable
2016-09-09 12:33:11 +01:00
Marc Gravell 6bca195237 support for international parameter names (regex categories); fix #601 2016-09-08 12:12:38 +01:00
Marc Gravell d03f826dbc fix broken test to actually include the error! 2016-09-08 11:08:12 +01:00
Marc Gravell d506c176b0 failing test for #563 2016-09-08 10:42:01 +01:00
Tornhoof 71899c0393 Improve tests 2016-09-07 15:22:10 +02:00
Tornhoof b489488525 Add CommannDefinition versions of Query(First,FirstOrDefault,Single,SingleOrDefault)Async and a few unit tests for them 2016-09-07 15:15:15 +02:00
Marc Gravell bffb0972a0 Merge branch 'master' of github.com:StackExchange/dapper-dot-net 2016-07-26 12:53:16 +01:00
Marc Gravell 603b212522 Added tests to complement documentation of pseudo-positional parameters 2016-07-26 12:52:38 +01:00
Marc Gravell 4d932b58d8 Repackage Dapper.EF to fix System.Runtime; deploy as .52; fix xunit refs; add test for #570 2016-07-24 11:12:01 +01:00
Marc Gravell 344de88979 Fix for #569 2016-07-22 14:44:52 +01:00
Marc Gravell ce4d015d6c (just to prove that #552 still happens even if the only values seen are 0 and 1) 2016-07-20 14:22:13 +01:00
Marc Gravell 2b9a3d489a Failing test for #552 2016-07-20 13:28:21 +01:00
Nick Craver be5f196546 .Net Core 1.0 RTM update 2016-06-28 17:48:50 -04:00
Marc Gravell 5f27a4bfc4 Add InListStringSplitCount; when set, causes in @foo parameters to be implemented using string_split 2016-06-07 22:17:25 +01:00
Marc Gravell c7ed6ec724 Fix #524 - GridReader should use the same conversion code as the regular reader 2016-05-27 11:41:51 +01:00
Marc Gravell c3beb60742 Test for #524 (believed to be a failing test; cannot validate or fix until I get the latest tooling installed) 2016-05-27 10:35:28 +01:00
Nick Craver 3d4d251a78 Switch version suffix to be a build parameter
Note: build.sh needs love from OS X/*nix later to match
2016-05-24 08:38:24 -04:00
Nick Craver 41f1fe3e3c .xproj: RC2 upgrade
This fixes null refs with the DNX MSBuild targets when building from
Visual Studio.
2016-05-24 07:29:18 -04:00
Nick Craver 806e343118 net451 test prep (not quite ready - SQL Geo and interop failing) 2016-05-23 21:53:31 -04:00
Nick Craver 8e070ddca5 Interfaces are back, simplifying code.
Related issue: #520
2016-05-23 20:43:30 -04:00
Nick Craver 96e07ced38 JSON RC2 fixes 2016-05-23 20:10:41 -04:00
Nick Craver 84a7d6464a RC2 master merge 2016-05-19 08:53:36 -04:00
Nick Craver ee615c0cc3 Upgrade project.json files to RC2 format.
Note: on a nuspec comparison, the following dependencies aren't there
anymore: Microsoft.CSharp, mscorlib, System, and System.Core aren't
explicitly specified in frameworkAssemblies anymore. The only one of
these I can imagine mattering is Microsoft.CSharp.
2016-05-17 09:48:01 -04:00
Nick Craver 57ec9255a5 RC2: Remove CoreFX #1612 blocker - fix is released, yay!
https://github.com/dotnet/corefx/issues/1612 is now closed, tests
working.
2016-05-16 20:57:26 -04:00
Nick Craver e6db26b8d3 Runtimes fix, per https://github.com/dotnet/cli/issues/2578 2016-04-18 20:36:55 -04:00
Nick Craver e894e7e24b Nuget.org feed only, skip the 2 Sqlite tests until RC2+ packages with the fix are out of pre-release. 2016-04-17 19:59:59 -04:00
Nick Craver 7edadbd4c9 .Net Core: remove floating versions (use stable ones on Nuget.org) and get this puppy back in action.
Also: it's 2016.
2016-04-17 16:42:13 -04:00
Nick Craver 6c78a5bb99 Bash build: fix test runner on OS X
Note: no tests pass because there’s no integrated security option (or
widely available SQL server) on OS X at the moment. But the build and
test runners are up and going.
2016-04-17 15:04:35 -04:00
Oren Novotny cf732e0d98 Get building 2016-04-16 21:57:07 -04:00
Oren Novotny dfff5f3724 fix outpt paths 2016-04-16 20:22:59 -04:00
Marc Gravell 92eca47299 Unify test credentials for MySQL; add passing test for SO36303462 2016-04-01 11:32:52 +01:00
Marc Gravell 4da982e2c7 Heh, AspNet and DNX (only) work in VS2015; DNX and DotNet (only) work in VS15; I guess we need to use DNX for now, then, as the only one that works in both. 2016-04-01 09:22:12 +01:00
Marc Gravell fc50aa7833 Recreate all the xproj to reflect the current tooling - old versions break VS15; enable XDocument etc in corefx (#if block was too large) 2016-04-01 09:00:33 +01:00
Marc Gravell 70884babdc When doing list expansions (6=>10 etc), use the last non-trivial value - do *NOT* use null, as it causes problems with "not in" clauses; add test for the same 2016-03-31 19:46:48 +01:00
Marc Gravell 66a49521aa Support xml types by default (XmlDocument, XDocument, XElement) - fix #427 2016-03-02 16:27:33 +00:00