Commit Graph
532 Commits
Author SHA1 Message Date
Marc Gravell dc1d027059 Use a different constant for list parameters 2012-10-16 06:45:35 +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 24225931da Pull request 55 (thanks: haeal), with some tweaks; better handling of shutting down the data-reader on the happy path 2012-10-10 07:33:37 +01:00
Marc Gravell 6ae42c2922 Add: feature 106; dapper takes control of the connection if needeed 2012-10-09 08:49:05 +01:00
Marc Gravell 293a8edc1c Issue 106: wrap Cancel attempt in try/catch 2012-10-09 08:19:41 +01:00
Marc Gravell 4fb305b2f5 Merge pull request #54 from mrange/master
Applied partial to all Dapper classes and interfaces in order to improve extensibility
2012-10-08 00:12:50 -07:00
Sam 399db17e5a Merge pull request #53 from teamyudin/master
Multi-Mapping issue with SplitOn
2012-10-07 06:25:22 -07:00
mrange 8ec13e1ae3 Made Dapper classes partial in order to allow developers that reference
Dapper by source to extend the Dapper classes without making changes to
the Dapper source (for instance in order to expand DynamicParameter with
a method HasValue<T>(string name)). In addition to further help developers
that reference Dapper by source the public property of Dapper classes are
moved to separate partial classes. By default the previous behavior is kept
but when referencing by source you can now make the Dapper classes internal
by defining: DAPPER_MAKE_PRIVATE
2012-10-06 10:46:26 +02: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 2a94c2b2c8 FIX: Issue 106 - cancel commands when disposing readers 2012-09-21 06:54:02 +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
Marc Gravell d79d9c21b0 Avoid a ToLower() 2012-09-19 12:03:07 +01:00
Marc Gravell 7f04772231 1.12.1 deploy
Minor deploy glitch (should now include intellisense files!)
1.12.1
2012-09-19 07:45:23 +01:00
Marc Gravell d462d7d30b 1.12 deploy
Signed-off-by: Marc Gravell <marc.gravell@gmail.com>
1.12
2012-09-19 07:31:59 +01:00
Marc Gravell 658dedbc68 Merge pull request #51 from azhmur/master
Fixed issue with incorrect generated ParamReader when it has indexing properties declared.
2012-09-18 22:35:10 -07: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 427e801db4 Merge branch 'master' of https://code.google.com/p/dapper-dot-net/ 2012-09-13 14:15:44 +01: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
Sam 19faf7ccf5 Merge pull request #48 from romanych/master
Support of types for Id column in Dapper.Rainbow
2012-09-09 16:35:35 -07:00
Roman Gomolko d0423de69d Added support of different ID column types to Dapper.Rainbow
From time to time ID column has types different to int. With this change
you could specify column type if it is different to int. Example:
public Table<MyDb, Guid> Users { get; set; }
2012-09-07 11:17:00 +03:00
Marc Gravell c6735ebc55 Dapper 1.11 release 2012-09-04 09:08:51 +01:00
Marc Gravell dde50d193f Minor tweaks to custom type-map implementation; principally, lock-less reading and caching the default type-map 1.11 2012-09-04 08:56:35 +01:00
Marc Gravell 134d1a56b0 Merge branch 'HEAD' of git://github.com/azhmur/dapper-dot-net.git 2012-09-04 08:40:08 +01:00
Anatoly Zhmur 8621792eb6 Added support for custom property/field mapping in TypeDeserializer 2012-09-04 08:38:05 +01:00
Anatoly Zhmur 5b0517cadb Added support for custom property/field mapping in TypeDeserializer 2012-08-14 16:21:49 +04:00
Marc Gravell 4a7e7fb5da Merge branch 'master' of https://github.com/jedidja/dapper-dot-net into jedidja-master
Conflicts:
	Dapper.Rainbow/Database.cs
2012-08-07 12:13:20 +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 718aa367a9 Merge pull request #40 from kappy/CSharp30DynamicQuery
Added dynamic query like for CSharp30.
2012-08-07 03:28:43 -07:00
Marc Gravell 00a6e428dc Merge branch 'fsharp' of https://github.com/vosen/dapper-dot-net into vosen-fsharp
Also optimised ldloc/lodloca/stloc and fixed enum double-assignment

Signed-off-by: Marc Gravell <marc.gravell@gmail.com>
2012-08-07 11:25:54 +01: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 e39c437078 Merge branch 'master' of https://code.google.com/p/dapper-dot-net/ 2012-08-07 09:29:48 +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
Sam 3f5aa81e40 Merge pull request #42 from garjitech/master
Capitalize "id" to maintain consitency
2012-07-15 05:07:40 -07:00
Garrett Wolf 7a454ad48e Capitalized "id" to maintain consistency 2012-07-14 17:15:23 -07:00
Joao Silva 148f2f967e Added dynamic query like for CSharp30. The behavior is simulated with a Dictionary<string,object> 2012-07-12 20:18:24 +01:00
Sam 809594cf41 Merge pull request #39 from SwissCheeze/master
sql_variant support query parameters and SQL Server
2012-07-02 16:47:16 -07:00
SwissCheeze 374ac003c3 Formatting. 2012-07-02 15:23:21 -03:00
SwissCheeze 39927925c0 Updated to include support for sql_variant. 2012-07-02 15:22:43 -03:00
Marc Gravell 310dd846fa 1.10 release 1.10 2012-06-27 20:21:16 +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 f63cd8c0ac Issue 83: CLSCompliant 2012-06-25 16:49:24 +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
Sam c1155f911b Merge pull request #38 from RichCzyzewski/TVPWithOtherParams
Updated DynamicParameters to allow inheritance of the AddParameters
2012-06-21 16:02:30 -07: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