44 Commits

Author SHA1 Message Date
Marc Gravell 1aacfc8831 New nuget project for handling DbGeography and other EF types 2014-07-03 17:07:50 +01:00
Marc Gravell 8c9bb52630 Add DataTable support as a custom handler, with extended-property detection for TypeName 2014-07-03 16:06:54 +01:00
Marc Gravell 58fb9c5cb8 Merge branch 'master' of git@github.com:StackExchange/dapper-dot-net.git 2014-07-03 12:55:13 +01:00
Marc Gravell 66c8b3f1b7 Mono lacks SqlParameter.TypeName; apply that more flexibly 2014-07-03 12:55:00 +01:00
Marc Gravell 36fdd579fa Merge pull request #126 from davidomeara/master
AmbiguousMatchException with multiple indexers
2014-07-01 11:18:51 +01:00
Marc Gravell e26ee0abe5 Exploration into better support for custom type handlers 2014-06-25 13:18:57 +01:00
David O'Meara 53a3878790 An AmbiguousMatchException is encountered when the Type.GetProperty(String, BindingFlags) method is used and there are multiple indexers on the type, so it was replaced with a call to Type.
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]).
2014-06-23 13:01:35 -05:00
Marc Gravell 88766056c8 ISupportInitialize support 2014-06-10 14:42:17 +01:00
Marc Gravell f5ae8e6728 Merge pull request #123 from Polylytics/multimapfix
Re-worked GenerateDeserializers to support new test
2014-06-02 14:41:00 +01:00
Marc Gravell 9a068e79b3 Actually, it can work for sprocs without needing SqlClient, as the "structured" bit is inferred and no type-name is required 2014-06-02 14:17:57 +01:00
Marc Gravell c9569d3e24 Proposal for TVP support; one concern is that it won't play nicely with things like mini-profiler 2014-06-02 14:06:53 +01:00
Mark Jerzykowski 5afba486fc Re-worked GenerateDeserializers to support new test
"TestMultiMappingWithNonReturnedProperty"
Fixed TestSplitWithMissingMembers as a side-effect
2014-06-02 13:36:54 +01:00
Marc Gravell 12d7617fc1 Fix and tests for http://stackoverflow.com/q/23696254/23354 2014-05-16 15:36:43 +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 1393169c8b regex tweak 2014-05-12 15:01:50 +01:00
Marc Gravell 977bbb0a79 "@foo unknown" detection and handling (query optimizer hints) 2014-05-12 14:59:05 +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 8a875b8743 1.21 metadata 2014-05-08 14:34:58 +01:00
Marc Gravell 6d1cc13cfd Limit literals to numeric types; for enums, use the value, not the name 2014-05-08 14:33:29 +01:00
Marc Gravell 6d589f05f7 Metadata for 1.20 release 2014-05-08 12:36:37 +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
Marc Gravell 056b22a55b Manually apply pull request #96 via olegKoshmeliuk 2014-05-07 14:56:00 +01:00
Marc Gravell 2a3bf22f98 Merge pull request #99 from tms/cultural-paramter-filtering
Make parameter filtering truly culture-insensitive
2014-05-07 14:43:24 +01:00
Marc Gravell f0dac59e64 Merge pull request #102 from youngpay/master
ThrowDataException is not Complete
2014-05-07 14:36:24 +01: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 c76483ccac Merge pull request #103 from JJoe2/master
Added ExecuteReader method

Note: This has a few kinks (I think it closes overly aggressively, and there's too many overloads for comfort), but I'll merge it and edit those immediately afterwards
2014-05-07 14:08:06 +01:00
Marc Gravell 2bde9ac715 Merge pull request #111 from ssboisen/ssb/cleanup
Cleaned up some nesting
2014-05-07 14:00:29 +01:00
Marc Gravell 0375e7c5b9 Merge pull request #100 from BlackjacketMack/master
Added support for ICustomQueryParameters to be members of a dictionary t...
2014-05-07 13:43:44 +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
Simon Skov Boisen 65235cbb06 Remove unnecessary check for whether the type being deserialized is a ValueType 2014-01-16 15:39:29 +01:00
JJoe2 e53d85a0e2 Added ExecuteReader method
ExecuteReader returns an IDataReader that can be used to process the
results without Dapper's mapping - for example, to fill a DataTable or
DataSet
2013-11-07 17:52:40 +01:00
Young Pay 356c86219e ThrowDataException is not Complete 2013-11-05 18:15:48 +08:00
BlackjacketMack 611dfed0b0 Added support for ICustomQueryParameters to be members of a dictionary that can then be passed into a new DynamicParameters object.
Generally, working with an IDictionary<string,object> and DynamicParameters has worked well.  However, when one of the entries in the dictionary is an ICustomQueryParameter, it would blow up in the SqlMapper.LookupDbType method.  This allows parameters that are part of a dictionary to simply call 'AddParameter' passing in the command and name.
2013-10-27 18:17:58 -04:00
tms 4f1e5f9139 Make parameter filtering truly culture-insensitive 2013-10-24 13:10:14 -04:00
Marc Gravell 885a8d46cb Provide support for OleDB / anonymous sql parameters 2013-09-18 10:38:19 +01:00
Marc Gravell bc39863ee9 Support operator-based conversions 2013-08-14 11:59:48 +01:00
Marc Gravell 6802611b94 Fix double?/decimal? conversions (with test); added (currently failing; acknowledges current state) test re missing members 2013-08-14 11:22:55 +01:00
Marc Gravell bdf56330b7 Deploy 1.13
Signed-off-by: Marc Gravell <marc.gravell@gmail.com>
2013-05-24 13:08:08 +01:00
Marc Gravell 7a5f419cb8 Fix: multimap shouldn't assume it owns the connection 2013-05-24 12:59:18 +01:00
Marc Gravell 61af54a5d0 (via lgsky) - multimap should auto-open/close as necessary 2013-05-24 12:10:55 +01:00
Marc Gravell 86476bc2a6 (courtesy @mrange) fix dictionary semantics of DapperRow 2013-05-24 11:52:22 +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