dapper
How to map multiple records from a single SP with Dapper-dot-net
I\'d like to use Dapper in a situation where the execution of a single stored procedure will return 50 multiple separate selects, none of the individual result sets will be very wide, maybe 20 or 30 c[详细]
2023-03-21 23:27 分类:问答Dapper - like operator using DynamicParameters
This works: var list = conn.Query<int>( \"select Id from Person where Id in @ids\", new { ids = new int[] { 1, 2, 3 } }[详细]
2023-03-20 10:29 分类:问答Can the multimapping of Petapoco handle multiple JOINs?
I have a list objects I use to fill using Petapoco. The class properties and names are maching the database schema. The main class is Issue, and it is related to two other classes which names and pro[详细]
2023-03-19 11:17 分类:问答Dapper parameterised queries with LINQ autogenerated types
I\'m using a combination of LINQ and Dapper in my work.I\'m replacing my LINQ code with Dapper in places for performance reasons.I have a lot of LINQ data objects created by dragging and dropping into[详细]
2023-03-16 08:12 分类:问答Read/Write distribution over MySQL Master/Slaves using Dapper
Would dapper have any problems with using two IDbConnection objects for distribu开发者_如何学Cting Writes and Reads between MySQL Master/Slaves?No, not at all.[详细]
2023-03-14 21:41 分类:问答Can AnsiStrings be used by default with Dapper?
I\'m using Dapper against a database where strings are stored primarily in VarChar columns. By default Dapper uses NVarChar parameters when generating queries and while I can wrap each and every 开发者[详细]
2023-03-13 21:09 分类:问答Multi-Mapper to create object hierarchy
I\'ve been playing around with this for a bit, because it seems like it feels a lot like the documented posts/users example, but its slightly different and isn\'t working for me.[详细]
2023-03-13 18:42 分类:问答Dapper: can I use parameters for anything?
I am writing some code that will prepare my database for my application. In the code there are some repetitive SQL statements when I am creating a table, and I want to hide them in some methods (there[详细]
2023-03-11 12:54 分类:问答Does Dapper support SQL 2008 Table-Valued Parameters?
Does anyone know if is possible to pass table-valued parameter data to a stored procedure 开发者_开发百科with Dapper? There is now (n Dapper 1.26 and higher) direct support for table-valued parameters[详细]
2023-03-10 02:47 分类:问答Session-Per-Request with SqlConnection / System.Transactions
I\'ve just started using Dapper for a project, having mostly used ORMs like NHibernate and EF for the past few years.[详细]
2023-03-09 23:09 分类:问答