29 Commits

Author SHA1 Message Date
Marc Gravell 6ab170c160 .Net 5 (#1572)
* initial net5.0 tweaks; also fix current IDE warnings

* lib updates and fixes

* more cleanup

* fix snafu

* skip locals init

* disable xunit shadow copy in tests

* test records

* explore scenario that currently works re #1571
2020-11-17 09:57:17 +00:00
Damir Ainullin 2bc267f529 Fixes of grammar typos (#1458)
Fixes of grammar typos
2020-05-09 16:00:24 -04:00
Damir Ainullin f4aec37711 Replace sync methods calls with async analogs (#1457)
Replace sync methods calls with async analogs
2020-05-08 18:01:02 -04:00
james-hester-ah 61707905f6 Fix issue #418 for DeleteAsync (#1309)
Fix issue #418 for DeleteAsync (with tests)
2019-09-21 09:16:34 -04:00
Marc Gravell 8152f2c718 WIP: Lib updates and prepare for Microsoft.Data.SqlClient (#1313)
v2 work; primarily prep for split SqlClient
2019-08-28 15:07:32 +01:00
Jonathan Channon a5256b7d94 Remove .NET 45 in XML docs (#1271) 2019-06-03 14:05:12 +01:00
Alex Wiese 1367853feb Update SqlMapperExtensions.Async.cs
Use adapter to format column name equals, bringing it in line with `Delete` behaviour.
2018-07-01 06:29:36 -04:00
Alex Wiese 271af11beb Update SqlMapperExtensions.Async.cs
Made the same fix to `InsertAsync`
2018-07-01 06:22:11 -04:00
Alex Wiese 307ab7eae8 Update SqlMapperExtensions.Async.cs
#418 - `Update` was fixed but `UpdateAsync` was not fixed.
2018-07-01 06:22:11 -04:00
Brian Drupieski 39b1fd5a13 IEnumerable<T> check when updating and deleting 2018-05-14 06:44:11 -04:00
Sergey fc38c4234f Removing unjustified use of AppendFormat in StringBuilder class (#989) 2018-03-30 17:32:28 -04:00
Brian Drupieski 6e9099d68e fix Insert<T> when T is declared as IEnumerable<T> (#948) 2018-03-29 21:12:46 -04:00
Jase 07fe543f15 Change to GetAll to allow the usage of a nullable type in T when T is an interface… #933 (#936)
* Change to GetAll to allow the usage of a nullable type in T when T is an interface.

* Change to GetAll to allow the usage of a nullable type in T when T is an interface: further change to check if val == null and if so then don't try to assign it as a property value.

* Change to Get to allow the usage of a nullable type in T when T is an interface. (effectively the same change as the previous change to GetAll.)

* Change to GetAsync and GetAllAsync to allow the usage of a nullable type in T when T is  an interface.

* Added in UserWithNullableDob and IUserWithNullableDob.

Added in tests for GetAndGetAllWithNullableValues and  GetAsyncAndGetAllAsyncWithNullableValues.

* Added in .ConfigureAwait(false) in the GetAsync Test.
Added comment to identify which issue the test relates to.

* Added NullableDates tables to the test databases.
Adjusted variable names in GetAndGetAllWithNullableValues and GetAsyncAndGetAllAsyncWithNullableValues.

* Changed IUserWithNullableDob to INullableDate.
2018-03-09 06:41:01 -08:00
Brian Drupieski d269a5a4b8 when inserting, check if type implements IEnumerable<T> to determine if it's a collection (#880)
* when inserting check if type implements IEnumerable<T> to determine if it's a collection
* when inserting, check if type is a collection by comparing its implemented interfaces to unbound generic type IEnumerable<> instead of the name "IEnumerable`1"
2017-11-25 20:37:19 -05:00
Nick Craver 071a3fd5a0 .editorconfig and formatting 2017-08-21 16:25:48 -04:00
Nick Craver 7b34be3a25 net40 is dead - remove #if ASYNC bits 2017-08-21 15:25:57 -04:00
GermanTikhonov23 f39cff338c Fix for InsertAsync in PostgresAdapter (#689)
* Fix for PostgresAdapter in SqlMapperExtensions.Async. Copied same line of code from SqlMapperExtensions to fix RuntimeBinderException on InsertAsync
* Cleanup
2017-05-13 23:17:10 -04:00
Nick Craver c3b2b34b54 Documentation: contrib 2017-05-08 14:46:34 -04:00
Nick Craver f613234413 Lots of code cleanup, no functional changes 2017-05-07 15:49:01 -04:00
Nick Craver 4be8df7988 Lots of documentation fixes/additions. 2017-05-06 18:57:10 -04:00
Nick Craver a7ff0b3d9f Fix missing Firebase Async, issue #695
TODO: All of these need race love in V2, complete re-vamp.
2017-02-08 21:22:50 -05:00
Nick Craver 8e070ddca5 Interfaces are back, simplifying code.
Related issue: #520
2016-05-23 20:43:30 -04:00
Shrayas d0505aaf97 Fix small typo in contrib
default was misspelt as defualt
2016-01-29 17:54:34 +05:30
joncloud a967b0c2fa Added checks to make sure that arrays get the appropriate type when delete/insert/update is called. 2015-12-25 10:49:45 -08:00
Marc Gravell 869020612a Add {Query|Read}FirstOrDefault methods with optimized paths; remove redundant return await constructs (prefer to return the existing Task) 2015-11-26 10:43:18 +00:00
Nick Craver 336cacbe05 Contrib: fix #404 changes and other issues in MySQL
This fixes some MySQL issues - test suite that confirms issues and fixes
is incoming. TODO shortly after: implement the Insert<T, TKey> style
methods. I just want to get tests running (and some added) first.
2015-11-25 06:04:07 -05:00
Nick Craver b9c5d5d8d5 Contrib: DRY code current keys implementation 2015-11-24 21:45:12 -05:00
Nick Craver ad0a262285 Contrib, Rainbow, EntityFramework & SqlBuilder: code cleanup 2015-11-24 20:20:52 -05:00
Nick Craver fd10fe7ccb A full CoreCLR/DNX friendly conversion
This eliminates the dual solutions and brings Contrib into the
project.json fold.
- Tests are ported to xUnit though SQLite is disabled on DNX due to
Issue #375 (Interop loads fail in the VS runner and  params are busted
regardless).
- Projects are consolidated down to what's currently possible with
project.json.
- Contrib moved to: Dapper.Contrib and Dapper.Tests.Contrib (so tests
appear at the end, no other reason vs. Dapper.Contrib.Tests)
- EF moved to: Dapper.EntityFramework(.StrongName)
- Rainbow moved to: Dapper.Rainbow
- SqlBuilder moved to: Dapper.SqlBuilder
- Packages are removed since it's not current-tooling friendly to keep
them (nor was it using them).
- xUnit implemented in Contrib via abstracts - this allow us to very
quickly add any database provider to the rig in a very concise way.
- Contrib unit tests fixed in various places - they were not
parallel-runner friendly
- Nuspecs removed, since they aren't used anymore (to eliminate
confusion)
- Removed speed tests for libraries that aren't on current versions of
.Net (what would we be comparing?)
- Perf tests moved to Dapper.Tests (consolidation from
Dapper.DNX.Tests), but aren't activated yet (no define)
2015-11-22 17:56:33 -05:00