Dapper
Dapper copied to clipboard
Dapper - a simple object mapper for .Net
Used for batch insert by one SQL statement. issue: [https://github.com/DapperLib/Dapper/issues/1817](https://github.com/DapperLib/Dapper/issues/1817) Myself Test Engineering:https://github.com/0611163/Dapper.LiteSql --> PostgreSQLTest --> public void Test2InsertList() --> conn.Execute(strSql.ToString(), ToDynamicParameters(parameters), _tran)
When there are too many parameters, parameterized insertion has performance problems. `bool add = !command.Parameters.Contains(name);` When the count of command.parameters is large, the performance is poor. Used for batch insert...
SqlMapper.SetTypeMap is thread safe. This is achievede by: lock (_typeMaps) { ... } But SqlMapper.AddTypeHandler is not thread safe. I think it would be valuable to make AddTypehandler thread safe...
Something broke since v2.0.90 when connecting dapper to snowflake. It now thinks all dates/ and datetimes are ascistrings and the snowflake connector is unable to parse the values. I am...
It appears that when executing a stored procedure and feeding parameters in through a DynamicParameters object, the command will fail if one of the parameters is set to a type...
Please delete this question. It works
https://www.nuget.org/packages/Dapper.EntityFramework/ https://github.com/DapperLib/Dapper/tree/main/Dapper.EntityFramework Can someone explaint what the heck is that? How to implement dapper with ef? How to use it? What it does exactly? Some documentation would be expected
If the value of a `DynamicParameters` is a `ICustomQueryParameter` that implementation's `AddParameter(IDbCommand, string)` implementation will be used. This means that `DynamicParameters` transparently wraps `DbString`; this works: ```csharp var id =...
in method , **SqlMapper.LookupDbType** , **typeHandlers.TryGetValue** should move upward than **typeMap.TryGetValue** ``` if (typeHandlers.TryGetValue(type, out handler)) { return DbType.Object; } ``` ``` if (typeMap.TryGetValue(type, out var dbType)) { return dbType;...
In order to avoid boilerplate code with dictionary to keep values etc i was thinking to create a more generic solution for one to many scenarios. I came up with...