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
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