Dapper
Dapper copied to clipboard
Dapper - a simple object mapper for .Net
Dapper's `SqlBuilder` leverages generic object lists for its templates' dynamic parameters; these parameters will be recognized and queried properly but will not appear in `ParameterNames` and will not be accessible...
This change fixes an issue where `QueryMultiple` and `QueryMultipleAsync` only invoked OnCompleted when parameters were of type DynamicParameters. If a caller provided a custom parameter type that implemented `IParameterCallbacks`, the...
We are currently refactoring a massive platform that we inherited from another company, and as part of that we are removing EF and updating it to use Dapper. Whilst doing...
I have a PostgreSQL table named `foo` with a `bar` column of type `text[]`. I try to execute the following code: ```csharp public class Foo { public List Bar {...
**Describe the bug** When using **Literal replacement** (`{=XXX}`) in a SQL query, Dapper AOT emits the following error: ``` Error DAP214 : Variable @XXX is not declared and no corresponding...
My project use: Dapper 1.50.2 Dapper.Contrib 2.0.0 DapperExtensions 1.6.3 and my code like this: ``` var sql = "insert into tb(name) select 'aaa' from dual where not exists(select 1 from...
I have a user defined table type in MS SQL Server 2012 and a equivalent class in C#. It seems as though even though the C# Data Table columns are...
C# guid[] in oracle caused System.ArgumentException:value does not fall within the expected range
when i use dapper with oracle database. and tranform **Guid[]** with **IN** operator code bellow ` var sqlBuilder = new StringBuilder() .Append(" SELECT w.\"CourseId\", c.\"Title\", c.\"CourseComment\", c.\"CategoryName\", (case c.\"Type\" WHEN...
In the `GridReader` constructor, the parameter type is `IParameterCallbacks? callbacks`. But when creating a `GridReader`, the code does: `command.Parameters as DynamicParameters` instead of: `command.Parameters as IParameterCallbacks` This makes custom implementations...
This adds 28 new async methods with optional CancellationToken parameters support. The methods without CancellationToken have been preserved in the `SqlMapper.Async.Legacy.cs` file for binary backward compatibility. The `this` modifier has...