Marc Gravell
fcabf6dbf9
Example for SO35554284
2016-02-22 15:54:38 +00:00
Marc Gravell
595ef1377d
fix #465
2016-02-22 00:13:33 +00:00
Marc Gravell
b7a7856e56
Test for SO35470588
2016-02-18 10:02:56 +00:00
Marc Gravell
2a2c086009
1.50-beta8 deploy
2016-02-17 10:34:29 +00:00
Marc Gravell
9806401f9b
New feature: PadListExpansions - reduces query plan saturation by padding "in" lists and populating with nulls; opt-in (see remarks on setting)
2016-02-17 10:24:54 +00:00
Marc Gravell
49e797a406
Fix #461 - change FindConstructor to allow parameters that have a type-handler defined
2016-02-17 08:44:16 +00:00
Marc Gravell
1797a3c0d9
Initial test setup for #461 ; note that this does not repro, due to running on SQL-Server - needs to be changed to SQLite to repro
2016-02-15 17:10:24 +00:00
Chris Chilvers
9cec884689
actual/expected in asserts are the wrong way round
...
All the tests are wrote in the form actual.IsEqualTo(expected). This
made for some odd error messages when a test failed.
2016-02-12 22:51:46 +00:00
Marc Gravell
f0273d64f3
Standardize on test db for appveyor
2016-02-11 13:46:13 +00:00
Marc Gravell
4d7a0139ab
Detect app-veyor for MySql/Postgresql
2016-02-11 13:10:34 +00:00
Marc Gravell
fd050a5908
Don't attempt to load native assemblies on DNX
2016-02-11 11:44:52 +00:00
Marc Gravell
9a422f1615
Fix *all* the CE references
2016-02-11 11:35:01 +00:00
Marc Gravell
df0df12ee4
Change CE package to one that might work
2016-02-11 11:30:25 +00:00
Marc Gravell
0319b51e56
Tests: add 4 attempts to repro #457
2016-02-11 11:20:26 +00:00
Marc Gravell
b466cd6a0d
Make Postgresql tests skip cleanly rather than error if no server
2016-02-11 10:55:46 +00:00
Marc Gravell
a4bb66de59
Test cleanup; enable lots more tests hidden previously as EXTERNALS
2016-02-11 10:47:12 +00:00
Marc Gravell
d7c92e21d9
additional tooling tweaks to make it work with current dotnet build
2016-02-10 10:35:04 +00:00
Marc Gravell
a46d339550
Add ApplyNullValues setting / implementation - makes it assign (rather than ignore) null values when possible; also nameof *all the things*; well... most of them
2016-02-05 16:37:28 +00:00
Marc Gravell
a890c30ed0
Make use of delegate variance, so the actual delegate stored is a Func<IDataReader, YourType>; this makes it possible to efficiently expose GetRowParser<T> without any extra allocations
2016-01-14 10:23:19 +00:00
Marc Gravell
7df23a7428
Add discriminated union (manual, not integrated) example
2016-01-05 16:07:46 +00:00
Marc Gravell
874731600e
New IDataReader APIs: GetRowParser, Parse; add cache around GetTypeDeserializer that is unrelated to the query itself (just dependent on the shape of the results)
2016-01-02 11:32:51 +00:00
Marc Gravell
c80e9d1748
remove the lie that "binding code is only interested in names - not types"; it might have been true once, but not for a long time
2016-01-02 10:09:21 +00:00
Marc Gravell
fa03d54b29
Attempt (unsuccessful) to repro #426
2015-12-24 11:41:07 +00:00
Marc Gravell
80d33f06ad
Try to repro #272 (doesn't fail on Win/.NET or Win/CoreCLR)
2015-12-20 21:51:48 +00:00
Marc Gravell
2b659bc76b
Fix test of error messages from First/Single/etc
2015-12-08 14:17:18 +00:00
Marc Gravell
23e6653f84
Add all the missing First/Single/SingleOrDefault methods to match the FirstOrDefault added previously
2015-12-08 13:50:36 +00:00
Nick Craver
69b6388452
Test for Issue #327
2015-11-29 08:37:53 -05:00
Marc Gravell
e918254ea7
Test rig for Issue #295
2015-11-29 12:26:56 +00:00
Nick Craver
6b848faa49
Change CommandBehavior on ExecuteReaderAsync to match sync version
2015-11-28 09:00:54 -05:00
Marc Gravell
ec3a1953a4
Use single-row/single-result hint when possible
2015-11-26 16:35:04 +00:00
Marc Gravell
65b26d6efa
Merge pull request #413 from StackExchange/tests/mysql
...
MySQL Test Suite for Contrib
2015-11-26 15:01:40 +00:00
Nick Craver
e57980348a
Fix OLEDB tests on Appveyor
2015-11-26 07:57:45 -05:00
Nick Craver
d2a798fd8e
Cleanup: use Test.DB.* file pattern (which is .gitignored)
2015-11-26 07:37:51 -05:00
Nick Craver
d28f2cf4bf
Skip MySQL tests if the server isn't running.
...
This is the "approved" xUnit pattern, via:
https://github.com/xunit/samples.xunit/tree/master/DynamicSkipExample
It's also the only way I can make the damn skipping work...but at least
it's it's one-time code to make any server set relatively easily
skippable.
2015-11-26 07:36:28 -05:00
Marc Gravell
3684dc4dcf
Extra tests for FirstOrDefault code
2015-11-26 11:01:19 +00:00
Marc Gravell
869020612a
Add {Query|Read}FirstOrDefault methods with optimized paths; remove redundant return await constructs (prefer to return the existing Task)
2015-11-26 10:43:18 +00:00
Marc Gravell
37a49b4bb3
Added "dnx perf" support in tests json; gave up on getting SUBSONIC
, NHIBERNATE and SIMPLEDATA
to work, but would love someone to take a look at them
2015-11-25 11:00:28 +00:00
Nick Craver
e40c788269
nits
2015-11-24 21:44:38 -05:00
Nick Craver
de060821ce
Use Appveyor's SQL when running there, on Contrib as well.
2015-11-22 18:03:02 -05:00
Nick Craver
7915f58f26
Move to Microsoft.SqlServer.Compact for Contrib tests
2015-11-22 18:03:01 -05:00
Nick Craver
fd10fe7ccb
A full CoreCLR/DNX friendly conversion
...
This eliminates the dual solutions and brings Contrib into the
project.json fold.
- Tests are ported to xUnit though SQLite is disabled on DNX due to
Issue #375 (Interop loads fail in the VS runner and params are busted
regardless).
- Projects are consolidated down to what's currently possible with
project.json.
- Contrib moved to: Dapper.Contrib and Dapper.Tests.Contrib (so tests
appear at the end, no other reason vs. Dapper.Contrib.Tests)
- EF moved to: Dapper.EntityFramework(.StrongName)
- Rainbow moved to: Dapper.Rainbow
- SqlBuilder moved to: Dapper.SqlBuilder
- Packages are removed since it's not current-tooling friendly to keep
them (nor was it using them).
- xUnit implemented in Contrib via abstracts - this allow us to very
quickly add any database provider to the rig in a very concise way.
- Contrib unit tests fixed in various places - they were not
parallel-runner friendly
- Nuspecs removed, since they aren't used anymore (to eliminate
confusion)
- Removed speed tests for libraries that aren't on current versions of
.Net (what would we be comparing?)
- Perf tests moved to Dapper.Tests (consolidation from
Dapper.DNX.Tests), but aren't activated yet (no define)
2015-11-22 17:56:33 -05:00