Dapper
Dapper copied to clipboard
Dapper - a simple object mapper for .Net
a moq of `ExecuteAsync` in my unit testing is throwing`InnerException = {"Async operations require use of a DbConnection or an IDbConnection where .CreateCommand() returns a DbCommand"}`. `Execute` seems to work...
We have a legacy db with very long Ids. Example: 301000000003 So the POCO looks like this: ```C# public class User { public long Id { get; set; } //...
I have an entity like this: ```csharp [Table("Entity", Schema = "dbo")] internal class Entity { [Key] public virtual int Id { get; set; } public virtual CustomType Filters { get;...
I'm in a position where I need to read a column from a SQL Server sproc result with a SQL data type of decimal(38,15). I can't change it in SQL...
I'm trying to retrieve SQL Geography using dapper through Stored procedure, but it's gives error: System.Data.DataException: 'Error parsing column 14 (GeoData=)' InvalidCastException: Unable to cast object of type 'Microsoft.SqlServer.Types.SqlGeography' to...
_Super_ minor documentation bug, but on https://www.learndapper.com/parameters it says > Or you can pass an anonymous type: > > var parameters = new DynamicParameters({ ProductId = 1 }); > var...
When the new `PersistEnumsByName` setting is true, an enum is persisted by its name (`Enum.ToString()`) instead of by its numeric value. This is sort of an alternative solution to issue...
hey I used dapper to work with oracle db with sp.. the problem that I saw working with OracleDataAdapter brings the data faster then dapper, I dont know why.. **here...
I'm using Dapper 2.0.90, and tried to update to 2.0.123, however the update caused my code to throw. I'm working with Snowflake DB using `Snowflake.Data.Client` v1.2.8, and it worked perfectly...
Sometimes the sql string is very simple, but wast time. For example: ``` public class Customer { public int Id { get; set; } public string FirstName { get; set;...