Dapper
Dapper copied to clipboard
Dapper - a simple object mapper for .Net
I'm having trouble narrowing down what's causing this null ref to happen on dapper 2.0.4. The DB is mariadb 10.2 using MySqlConnector 2.1.8 ``` System.NullReferenceException: Object reference not set to...
Veracode static scan reports SQL injection on following methods, dapper.dll -> SqlMapper.cs -> ExecuteCommand dapper.dll -> SqlMapper.cs -> ExecuteReaderWithFlagsFallback Recommendations: Avoid dynamically constructing SQL queries. Instead, use parameterized prepared statements...
I am using .net core 3.1 with dapper 2.0.35 I am getting error "No columns were selected" when using QueryMultiple My code looks like following ```cs public static List GetEntityObjectFromClientId(string...
Add `StreamAsync` alternatives to `connecton.QueryAsync` and `gridReader.ReadAsync` to support `IAsyncEnumerable` in a non-breaking way. Unlike `QueryAsync`, stream will default to unbuffered.
Resolves #818. Adds the static `MatchConstructorParametersWithUnderscores` property for `DefaultTypeMap` which allows matching columns containing underscores to constructor parameters (eg. `user_id` matches `userId`). This commit also renames `MatchNamesWithUnderscores` to `MatchFieldsAndPropertiesWithUnderscores` for...
In https://sodocumentation.net/dapper/topic/13/handling-nulls it states that nulls are handled as follows: "values read that are null are presented as null, or (in the case of mapping to a known type) simply...
My sql ` where usercode in @usercodes",new {usercodes=new string[]{"1","2"}` failed in dapper with npgsql。 ``` List Support Dapper allows you to pass in IEnumerable and will automatically parameterize your query....
I want to add multiple records to a table and get back the IDs, something like this: ``` c# var addedIDs = await connection.QueryAsync(@" insert into myTable (PropA, ProbB) output...
Hi, We've had an issue with a parameterised query on SQL Server returning data for the wrong dates. I've found that this parameter: `new DateTime(2019, 11, 20, 23, 59, 59,...
Hi there, add a missing QueryAsync method overload in order to be able to pass a ComandDefinition on a multi-mapping query. The lack of a CommandDefinition parameter actually prevents the...