Commit Graph

41 Commits

Author SHA1 Message Date
Marc Gravell 0475827c71 Normalize locations for DNX; just about everything moves and/or renames 2015-11-03 08:46:24 -08:00
Marc Gravell 5576a3ed04 The "SqlMapper.cs is too damned big" file split; also removes C#3 support and .NET 3.5 support (sorry, but legacy by too many years) 2015-11-01 11:49:57 +00:00
Marc Gravell 6fdba5f2ab Merge pull request #349 from Nigrimmist/SmallFixesBranch
- code improvements
2015-10-12 00:57:16 +01:00
Nigrimmist 7e8eab6a5d - code improvements 2015-10-02 01:39:13 +03:00
Sergey Kuznetsov 2ead242828 fix Cast at QueryAsync<T> 2015-09-11 01:59:06 +03:00
Marc Gravell 4603c26c42 Merge async+sync tests for DNX; allow async for CoreCLR; 1.41-beta4 2015-05-05 14:09:00 +01:00
Marc Gravell 5fd788db35 DNX build (experimental) 2015-04-10 11:31:39 +01:00
Marc Gravell f93b5ffbe9 Merge pull request #235 from mburbea/patch-1
QueryAsync<Dynamic> should return an IEnumerable<DapperRow>
2015-03-18 13:22:30 +00:00
Marc Gravell 4997b17650 GridReader should respect no-cache flags 2015-03-16 08:29:55 +00:00
Michael Burbea 5b1ed92b7b QueryAsync<Dynamic> should return an IEnumerable<DapperRow>
In `QueryAsync<Dynamic>` you will get back an `IEnumerable<object>` requiring you to use `.Cast<IDictionary<String,Object>>()` to get the desired behavior.
However, `Query` returns an `IEnumerable<DapperRow>` so you can use a simple cast or as to  `IEnumerable<IDictionary<string,object>>`

I propose this change to allow this code to just work::
```csharp
var rows = await QueryAsync(cnn, sql) as IEnumerable<IDictionary<string,object>>;
```
2015-01-14 10:29:14 -05:00
Marc Gravell c8aa54b2be Fix issue 178: ExecuteReader now returns a wrapper around the command/reader pair, so that the lifetime of the command is extended
Also improve documentation around use of "dynamic" in Query()
2014-10-14 15:44:25 +01:00
Marc Gravell 7336bfb58d fix Issue151: ExpandoObject should work with Execute 2014-09-29 08:10:33 +01:00
Marc Gravell 79e1e3abc9 move the parameter callbacks onto a method that custom implementations can also use 2014-09-15 19:31:27 +01:00
Marc Gravell 3cd31e42b0 Merge branch 'arbitrary-multi-maps' of https://github.com/Polylytics/dapper-dot-net into Polylytics-arbitrary-multi-maps
Apply recent changes (output callbacks)

Conflicts:
	Dapper NET45/SqlMapperAsync.cs
2014-09-15 14:04:31 +01:00
Marc Gravell b15d24b372 Investigate issue 157 (unable to reproduce) - but also found and fixed issue with subsequent query if reader not fully closed down 2014-09-15 13:43:27 +01:00
Marc Gravell b87d958314 Rationalize FireOutputCallbacks, and apply to remaining methods 2014-09-15 11:48:14 +01:00
James Holwell ccc189c27a Merge remote-tracking branch 'upstream/master' into arbitrary-multi-maps
Conflicts:
	Dapper NET45/SqlMapperAsync.cs
2014-09-02 17:13:09 +01:00
Marc Gravell bff05e72ac avoid finally/await pre C# 6 2014-08-20 10:16:36 +01:00
Marc Gravell d0f880d196 1.30: better async cancellation 2014-08-14 10:44:18 +01:00
James Holwell 3b0fd2d07b fix up the arbitrary length multi map methods with new command.AddToCache parameter 2014-08-06 19:42:45 +01:00
James Holwell 3d39a115ad Merge remote-tracking branch 'upstream/master' into arbitrary-multi-maps
Conflicts:
	Dapper NET45/SqlMapperAsync.cs
2014-08-06 19:39:56 +01:00
Marc Gravell f12f30d840 Merge pull request #141 from mkonstan/master
It does not look like we need above if since we are typecasting value to...
2014-08-05 17:13:20 +01:00
Marc Gravell 8f31bdc291 Added ExecuteScalar (issue 22), and optional plan caching 2014-08-05 16:09:14 +01:00
Marc Gravell d3260f4443 Add cache bypass option (Issue #66) 2014-08-05 15:20:39 +01:00
maxim f6e29fecd5 It does not look like we need above if since we are typecasting value to T at the end. 2014-08-05 08:48:09 -04:00
James Holwell ae30d96bdb added support for arbitrarily many types in multi mapping 2014-07-28 18:27:41 +01:00
James Holwell c92d1d044c Add reference to System.XML 2014-07-28 14:14:27 +01:00
Marc Gravell 1a41f12cdb Add Type-based API rather than just <T> 2014-07-07 09:39:02 +01:00
Marc Gravell 9e5d28e42a Command recycling and disposing during pipelined async multi-exec; enable pipeline (via sync-over-async) for sync API 2014-05-14 17:29:40 +01:00
Marc Gravell 10c51f427f async multiplexed / pipeline implemented 1.24 2014-05-14 15:36:03 +01:00
Marc Gravell 9071f65206 Missed some ConfigureAwait 2014-05-09 09:59:31 +01:00
Marc Gravell 87f71d3dfa 1.22: support literal replacement on enumerable values for "in" etc 2014-05-08 15:39:03 +01:00
Marc Gravell a55d2b907d Merge pull request #121 from phillip-haydon/RemovingClass1
Removing random Class1
2014-05-08 12:24:09 +01:00
Marc Gravell 7cdecbc7c9 async literal replacement and multi-exec tests 2014-05-08 11:57:26 +01:00
Marc Gravell 9afb2fca1d Introducing: literal value replacements, i.e. where row.Id={=id} - use rarely, but to avoid query-plan poisoning 2014-05-08 10:06:10 +01:00
Phillip Haydon 1467dfc1c4 removing random Class1 2014-05-07 23:16:41 +08:00
Marc Gravell 046dbcf4ac Fixes to ExecuteReader for new API; also adds ExecuteReaderAsync; also fix null parameters which broke in an unrelated pull request 2014-05-07 14:33:36 +01:00
Marc Gravell ae0b3962ca ConfigureAwait 2014-05-07 13:37:55 +01:00
Marc Gravell dbd5455f1a Async cleanup; implement missing async methods based on multiple pull requests, but introducing CommandDefinition to preserve binary compatibility while allowing new options 2014-05-07 12:41:59 +01:00
Marc Gravell eba9780e6a Removed unnecessary async/await in a few places 2013-05-23 16:06:56 +01:00
Marc Gravell 37329c8dd6 Async; manual merge of https://github.com/SamSaffron/dapper-dot-net/pull/49
- huge thanks to bkaid
2013-05-23 16:02:58 +01:00