Aug 03, 2018 · Dapper is nothing but a set of extension methods for IDbConnection. This is what makes it so powerful in terms of performance but leaves the scope for defining queries to the user much like vanilla ADO.NET. All these extension methods reside in " Dapper " namespace and to use dapper methods, we need to include this namespace in our code.
I using dapper in my ASP.NET WebForms solution. All my classes which handles data retrieves an open connection from this base class. public abstract class SalesDb : IDisposable { protected static IDbConnection OpenConnection() { IDbConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["SalesDb"].ConnectionString); connection.Open(); return connection; } public void ...
Mar 02, 2015 · Dapper.NET Guide – Delete Record Posted by Senthil Kumar B March 2, 2015 CSharp 4 Min Read This tutorial will demonstrate on how to delete a record using Dapper in .NET.
Apr 14, 2011 · Dapper.Net adds two mapping functions via extension methods to the IDbConnection interface, both named ExecuteMapperQuery. The first maps results into a strongly typed list while the second maps ...