570 Commits

Author SHA1 Message Date
Marc Gravell bdf56330b7 Deploy 1.13
Signed-off-by: Marc Gravell <marc.gravell@gmail.com>
1.13
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 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
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 0a949f736c Merge branch 'master' of https://github.com/SamSaffron/dapper-dot-net.git 2013-05-23 14:57:07 +01:00
Marc Gravell 1ca9c1a06d Merge pull request #69 from KorsG/master
DapperRow dynamic invocation fails in Visual basic - fix
2013-05-23 06:55:35 -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
Morten Korsgaard 413a76cb3a When adding dynamic properties, fieldName dictionary name not set 2012-12-12 21:43:04 +01:00
Morten Korsgaard 9f2cbef792 DapperRow dynamic invocation incompatible with Visual basic fix 2012-12-09 23:04:23 +01:00
Sam 6950c694b3 Merge pull request #66 from rayjezek/master
Rainbow: Ignore Id property when calling Table.Insert
2012-12-05 17:06:16 -08:00
Sam b3dc7d180d Merge pull request #68 from tms/rainbow-extensibility
Updated Table methods to better support multi-DB
2012-12-05 17:05:17 -08:00
Ray Jezek 4fff0866c4 Removed Id parameter when calling Table.Insert
"Id" is being removed most places in Rainbow, but not on Table.Insert. I
changed this to make it consistent with SqlCompactTable.Insert and
Table.Update.
2012-12-04 15:08:11 -06:00
Sam fb04a9cb6b Merge pull request #61 from TheDavester/master
Fixed DapperTable issue
2012-11-27 13:12:43 -08:00
Sam 86d6454a2b Merge pull request #63 from seburgi/master
Added database schema support to Dapper.Rainbow
2012-11-27 13:11:54 -08:00
Sam a91bf72163 Merge pull request #62 from paaschpa/master
Bug fix for "Invalid attempt to call MetaData when reader is closed"
2012-11-27 13:10:24 -08:00
Sebastian Burgstaller 6ef748ab0d Added possibility to add custom type maps - enables serialization of enums to DbType.String instead of DbType.Int32 2012-11-23 13:34:23 +01:00
Sebastian Burgstaller 963b6e711c Added database schema support to Dapper.Rainbow 2012-11-23 12:09:04 +01:00
Pat Paasch 06aa5cfc56 fix parameter reference in anonymous function
Would occasionally generate exception "Invalid attempt to call MetaData when reader is closed"
2012-11-16 17:07:26 -06:00
Sam ae71b7be11 Merge pull request #60 from bundy845/master
Allows a class to have a reserved word as a column name.
2012-11-15 17:45:32 -08: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
Rick Bundren 7fd9b97355 Support for reserved words as columns
Insert failed when a word such as order was used as a column name.
Added [] around the column name.

Also modified the test for InsertGetUpdate().  The first Get is now a
User instead of IUser.  There is some bug where using the interface
twice first on a null result and then on the real result causes the
reader to not be open when trying to map the type.
2012-11-15 11:20:12 -05:00
tms 73d0ba34cf Updated Table methods to better support multi-DB
No sense in escaping TableName only for update, "from" isn't universally
optional for deletes, First() should be virtual to allow alternatives to
TOP 1
2012-11-11 15:59:43 -05:00
Marc Gravell 8b405c70e6 extra test for NET35 / multi 2012-10-26 08:37:13 +01: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 3bfebc2470 fixed silly null check and incorrect comment 2012-10-21 21:59:34 +01:00
Marc Gravell 51509960a1 Re-add DapperTable - slightly different approach 2012-10-21 21:55:19 +01:00
Marc Gravell 0444094f61 Manual rollback while I figure out some DapperTable questions 2012-10-21 20:45:28 +01:00
Marc Gravell 1e1c7157f6 Merge pull request #58 from mrange/DapperRow
Dapper row
2012-10-21 12:04:53 -07: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
mrange d7ba878d70 Replaced FastExpando with DapperRow/DapperTable. The primary motivation for this is increased performance when creating lot of rows. In addition DapperRow has a smaller memory footprint. 2012-10-21 20:35:21 +02:00
Marc Gravell f390f72e7f Implemented missing dictionary methods on FastExpando 2012-10-18 07:12:03 +01:00
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