160 Commits

Author SHA1 Message Date
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 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 bd33588ddb Update EF test to EF6 code-first (removed edmx) 2014-05-07 13:22:00 +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
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 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 4e187f013a Added example/test for http://stackoverflow.com/q/16796519/23354 2013-05-28 19:38:58 +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
Marc Gravell 9177586e1d Merge pull request #81 from fbdegroot/master
Added support for TVP in anonymous objects
2013-05-23 07:08:47 -07:00
Marc Gravell e414149faf Implement connection-string equivalence (similar to https://github.com/SamSaffron/dapper-dot-net/pull/80)
Fix Issue131
2013-05-23 14:52:11 +01:00
Marc Gravell 9ac9c4011b Nulls in dynamic 2013-05-23 14:13:44 +01:00
Fabian de Groot 6815c6f0cf Added support for TVP in anonymous objects 2013-05-02 14:57:55 +02:00
Marc Gravell 36f51540ce http://code.google.com/p/dapper-dot-net/issues/detail?id=132 - EF change patches
@david.obando
2013-02-27 21:36:48 +00:00
Dave Peters b82c275077 Fixed issue DapperTable
This fixes a bug found in CS 51509960 where the following sequence would
result in an InvalidOperationException being thrown due to an attempt to
access a disposed of DataReader:

- Perform a dynamic query that yields no results
- Add data to the source of that query
- Perform a the same query again
2012-11-15 12:37:25 -05:00
Marc Gravell e8ead8d82e FIX: Issue 120; buffered/non-buffered handling from GridReader 2012-10-26 08:11:19 +01:00
Marc Gravell d9fedd9b24 Fix behavior when removing values/keys from DapperRow 2012-10-26 07:41:44 +01:00
Marc Gravell 51509960a1 Re-add DapperTable - slightly different approach 2012-10-21 21:55:19 +01:00
mrange e14839f7ad Updated IsEqualTo and IsSequenceEqualTo so that they don't throw if first parameter is null. 2012-10-21 20:37:12 +02:00
Marc Gravell f390f72e7f Implemented missing dictionary methods on FastExpando 2012-10-18 07:12:03 +01:00
Marc Gravell f22447dfe8 Give more context when the GridReader is disposed; see http://stackoverflow.com/questions/12809907/ 2012-10-10 12:17:47 +01:00
Marc Gravell 6ae42c2922 Add: feature 106; dapper takes control of the connection if needeed 2012-10-09 08:49:05 +01:00
Dmitriy Yudin bce5e13748 Multi-Mapping SplitOn spaces between commass
There was a small issue when SplinOn spaces between commas, for example:
splitOn: "AddressId, Id".
For more info see:
http://stackoverflow.com/questions/11042618/dapper-multi-mapping-issue

I have modified below line of code:
From: var currentSplit = splits[splitIndex];
To: var currentSplit = splits[splitIndex].Trim();

Also added a test called:
TestMultiMappingWithSplitOnSpaceBetweenCommas()
2012-10-05 13:37:16 -07:00
Marc Gravell 92d1fbe57e Fix list handling when using dynamic parameters; see http://stackoverflow.com/q/12723922/23354 2012-10-04 10:32:40 +01:00
Marc Gravell 7910f25bd5 When using AddDynamicParameters, watch out for duplicate parameters coming from templates 2012-10-03 12:06:05 +01:00
Marc Gravell 6bda9725ce Ensure that when processing bools we do a "!=0" test; we don't just want to store 7 as a bool - that causes problems sometimes. 2012-09-19 14:39:14 +01:00
Anatoly Zhmur 2d01bfe730 Fixed issue with incorrect generated ParamReader then it has indexing properties declared. 2012-09-18 15:52:35 +04:00
Marc Gravell da2334ac81 IL level type-remapping, so i8 / i4 are interchangeable, etc. This avoids issues on databases that return 1 as bigint by default, etc 2012-09-13 14:10:42 +01:00
Anatoly Zhmur 8621792eb6 Added support for custom property/field mapping in TypeDeserializer 2012-09-04 08:38:05 +01:00
Marc Gravell 4a9f05009c The "first column as null gives null object" is by-design;
tweak tests to represent this (and workaround)

Added [ActiveTest] to allow trivial debugging individual tests
2012-08-07 12:03:24 +01:00
Marc Gravell d0331a0300 Merge pull request #36 from jkonecki/2b04c22
Replicated a bug 'Dapper MultiMap doesn't work with splitOn with NULL value'
2012-08-07 03:36:00 -07:00
Marc Gravell e79dcff3a4 Merge pull request #45 from jkonecki/6dfdbf9306759118e3d0e086e85df9f90d736624
Fix for issue #70 (support for TimeSpan)
2012-08-07 03:33:21 -07:00
Marc Gravell 63d37477b5 Merge branch 'fsharp' of https://github.com/vosen/dapper-dot-net into vosen-fsharp
Conflicts:
	Dapper/SqlMapper.cs
2012-08-07 11:19:02 +01:00
Marc Gravell 840a766d41 VS2012 sln; avoid a few build warnings 2012-08-07 09:28:41 +01:00
Jakub Konecki 6dfdbf9306 Added support for TimeSpan
Fix for issue #70
(http://code.google.com/p/dapper-dot-net/issues/detail?id=70) and also
related MS bug with DbType.Time
(https://connect.microsoft.com/VisualStudio/feedback/details/381934/sqlparameter-dbtype-dbtype-time-sets-the-parameter-to-sqldbtype-datetime-instead-of-sqldbtype-time).
2012-08-06 18:36:47 +01:00
Marc Gravell cc293ed985 ThrowDataException could go screwy if the reader was closed; compensate 2012-06-27 19:51:51 +01:00
Marc Gravell c7bb642466 Merge branch 'master' of https://code.google.com/p/dapper-dot-net/ 2012-06-25 19:14:25 +01:00
Marc Gravell 116ea975b0 Support for ExpandoObject (or at least, "dynamic" and dictionary-like) to be treated directly as a parameter 2012-06-25 16:45:22 +01:00
Rich Czyzewski 282d29183d Updated DynamicParameters to allow inheritance of the AddParameters method when subclassing for TVPs 2012-06-21 11:04:33 -04:00
unknown 7053c56fe0 Rewrite of the schema-change handling; the "see if it errors, then recalc" is, it turns out, stupid. 2012-06-11 12:49:30 +01:00
Jakub Konecki 2b04c22f08 MultiMap doesn't work with NULL values
Replicated a bug 'Dapper MultiMap doesn't work with splitOn with NULL
value' reported on SO http://stackoverflow.com/q/10744728/449906.
Dapper doesn't create an instance of the class if the first property
after split is mapped to a column with NULL value.
2012-05-28 23:37:19 +01:00