Commit Graph
1226 Commits
Author SHA1 Message Date
Nick Craver 910246bf24 Appveyor: use the VS 2017 preview image 2017-06-15 06:11:05 -04:00
Nick Craver ea6b193406 Benchmarks: performance and formatting 2017-05-12 21:14:02 -04:00
Nick Craver 7e5bd308f9 netstandard2.0 functionality (w/ runtime breaks)
This adds a netstandard2.0 build to Dapper (and StrongName until v2),
adds a netstandard2.0 test lineup, restores most functionality (except
UDTs for SQL, e.g. .UdtTypeName isn't in netstandard2), and also breaks
things not actually implemented or implemented correctly in
netstandard2.0. Pushing this up so we can work through these with the
.NET teams.

Several things are still broken here (and fail tests):
- Parameter decimal values (not filed yet)
- DataTables as parameters
(https://github.com/dotnet/corefx/issues/19708)
- .GetSchemaTable() (not yet filed, implementation is completely missing
from SqlDataReader in CoreFX)

While the compile is clean, the above are runtime issues.
`SqlParameter.UdtTypeName` is a separate issue, that one just wasn't in
`netstandard2.0` at all...so we can't support UDTs there until it is.
See https://github.com/dotnet/corefx/issues/17126 for details.
2017-05-12 10:03:00 -04:00
Nick Craver d72ae17a22 Dependency: Dapper doesn't need SqlClient, only Data.Common 2017-05-11 09:36:41 -04:00
Nick Craver 0a8fcd9806 Benchmarks v2: BenchmarkDotNet and friends
This is based on BenchmarkDotNet (while preserving the legacy format
with minor improvements as well - legacy runs much faster). See #666 for
details. Not an ominus number at all.

Note: this code will get a bit simpler with BenchmarkDotNet categories,
see https://github.com/dotnet/BenchmarkDotNet/issues/248 for details.
2017-05-11 09:05:25 -04:00
Nick Craver 4915071380 Documentation and formatting: SqlMapper 2017-05-08 14:54:48 -04:00
Nick Craver 6745addf4f Documentation and formatting: secondary types 2017-05-08 14:54:21 -04:00
Nick Craver 4d75b98206 Tests: make analyzers happy because why not 2017-05-08 14:47:36 -04:00
Nick Craver b5b65e6070 Documentation: Rainbow 2017-05-08 14:47:05 -04:00
Nick Craver 60e04930cb Documentation: EntityFramework 2017-05-08 14:46:47 -04:00
Nick Craver c3b2b34b54 Documentation: contrib 2017-05-08 14:46:34 -04:00
Nick Craver 9b98d3df14 Documentation: GridReader 2017-05-07 16:50:08 -04:00
Nick Craver d52067c896 C# 7 cleanup: pattern matching for TryStringSplit 2017-05-07 16:10:47 -04:00
Nick Craver f613234413 Lots of code cleanup, no functional changes 2017-05-07 15:49:01 -04:00
Nick Craver f26967c6c2 Appveyor: enable MyGet publishing 2017-05-07 07:57:30 -04:00
Nick Craver 812da93390 Add build badge to README 2017-05-07 07:56:40 -04:00
Nick Craver f8d7a7a320 Skip the MySQL FUBAR test
It's indeed broken on their end. We should consider switching providers,
e.g. https://github.com/mysql-net/MySqlConnector/
2017-05-06 20:18:15 -04:00
Nick Craver 60b7807260 Fix SQL spatial type loading 2017-05-06 19:34:28 -04:00
Nick Craver 15c9e35a17 Fix type loads for the builds without SQL in the GAC 2017-05-06 19:17:56 -04:00
Nick Craver a83e0a7777 Fix Microsoft.SqlServer.Types for new .csproj 2017-05-06 19:07:50 -04:00
Nick Craver 4be8df7988 Lots of documentation fixes/additions. 2017-05-06 18:57:10 -04:00
Nick Craver 7820ee2e41 Appveyor: Update Postgres path 2017-05-06 17:05:03 -04:00
Nick Craver dcfbffa93b Appveyor: Formatting & combine init 2017-05-06 17:02:57 -04:00
Nick Craver 481d9c5a71 Let's just keep adding YAML until this works. 2017-05-06 17:00:57 -04:00
Nick Craver 24d9915927 Appveyor: create databases 2017-05-06 16:56:11 -04:00
Nick Craver ab9807383a Appveyor: SQL 2016 2017-05-06 16:44:28 -04:00
Nick Craver 2cae0f7d3b More path changes 2017-05-06 16:39:06 -04:00
Nick Craver f269b1bc86 Again! 2017-05-06 16:33:34 -04:00
Nick Craver 78e9b489e8 Let's try this again 2017-05-06 16:31:04 -04:00
Nick Craver dce23a5359 Appveyor: update services 2017-05-06 16:26:56 -04:00
Nick Craver 4b8fffca41 Update appveyor.yml for 2017 build 2017-05-06 16:21:15 -04:00
Nick Craver 75d342fa64 VS 2017 Build - Making things work (#766)
* Progress on VS 2017 build tooling
* Finally, a working VS 2017 tooling build
2017-05-06 15:42:46 -04:00
Per Lundberg 67f37329d0 Readme.md: Fixed link to test suite (#764) 2017-05-04 15:59:42 -04:00
Marc Gravell 98c395f986 Merge branch 'master' of github.com:StackExchange/Dapper 2017-05-01 15:38:13 +01:00
newbyca 787f681b2f Fix Readme typos (#739) 2017-04-29 14:32:54 -04:00
Marc Gravell df4c301f3a Add tests for the too few/too many columns scenarios for value-tuples; happy to discuss alternative expectations 2017-04-07 14:43:40 +01:00
Marc Gravell d6f3025987 Better matching of value-tuple names when wrong number of columns - should return nulls for unmapped 2017-04-07 14:21:42 +01:00
Marc Gravell f5938d7b4a remove redundant test code (oops) 2017-04-07 13:41:44 +01:00
Marc Gravell 9cc975b381 Define expected behaviour for value-tuple parameters and returns, and implement 2017-04-07 13:38:41 +01:00
Kruithne d73ae3b3c7 Correct minor typographical error in Readme.md (#732)
Under the `List Support` section, the sentence opens with `Dapper allow you`, which should instead be `Dapper allows you`. This PR will correct this mistake, restoring balance to the universe.

After originally spotting this, the most minor of mistakes, I decided to leave it and move on with my life, since it likely effected nobody. Four hours passed and the thought that it existed unchecked had fully manifested itself within my subconscious and I was no longer able to continue with my existence knowing that I had seen this mistake and not exercised my power to correct it.

Thank you, and sorry.
2017-03-26 07:39:40 -04: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
Nick Craver cdab5f5bed Merge pull request #701 from vondruska/master
Update readme to remove notice about requiring open connections
2017-03-13 22:28:07 -04:00
Nick Craver 0fb3776c7a Merge pull request #707 from JocaPC/master
Added Belgrade SqlClient library in the performance benchmark
2017-03-13 22:27:08 -04:00
Nick Craver e7607c26f1 Security! 2017-03-01 16:15:20 -05:00
Nick Craver de755d1f12 Fix Dapper release notes link 2017-03-01 11:37:53 -05:00
Marc Gravell 0ae1062c79 Merge branch 'master' of github.com:StackExchange/dapper-dot-net 2017-03-01 11:34:52 +00:00
Marc Gravell 5bc87f06dc Add a full stop just so I can tell if the docs migration is working 2017-03-01 11:34:40 +00:00
Marc Gravell eaa3a1971b Set theme jekyll-theme-cayman 2017-03-01 11:32:34 +00:00
Marc Gravell f0cc51a288 migrate release notes to [master]/docs 2017-03-01 11:31:58 +00:00