zzz projects Dapper Tutorial
Getting Started Documentation 3rd Party Libraries Knowledge Base Online Examples
  • Getting Started
  • Documentation
  • 3rd Party Libraries
  • Knowledge Base
  • Online Examples
  •   Download  

Dapper Tutorial - Knowledge Base (KB)

3 results for: in tag: using

Dapper/EF - why is there a performance increase when variable is outside of using

I ran both the below queries using the same params and stored proc. Example A takes over a minute, whereas example B takes under 20 seconds. If I call this same proc using EF, then I'm down to about 10 seconds (there is just over 50000 records returned). ...
c# dapper entity-framework scope using
asked by user3574076

Dapper source code - will this dispose of my connection properly?

Looking at the source code for Dappers QueryAsync method...SqlMapper.Async.cs... private static async Task<IEnumerable<T>> QueryAsync<T>(this IDbConnection cnn, Type effectiveType, CommandDefinition command) { using (var cmd = command.TrySetu...
dapper using
asked by James Hatton

Which is better to dispose the object?

In case of this method:...public void Delete(int id) { using (var connection = GetOpenConnection()) { connection.Execute($"DELETE FROM MyTable WHERE Id = {id}"); } } ...Or just:...GetOpenConnection().Execute($"DELETE FROM MyTable WHERE...
c# dapper garbage-collection using
asked by DanielV

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...