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)

4 results in tag: asp.net-core

in .NET Core and Dapper, can you specify a lifetime/scope to a SqlConnection?

I'm using .NET Core Dependency Injection to instantiate a ...SqlConnection... object during the application startup, which I'm then planning to inject in my repository. This ...SqlConnection... will be used by Dapper to read/write data from the database w...
asp.net-core c# dapper dependency-injection
asked by Phil P.

How to use Generic Repository Pattern with Dapper?

I followed a tutorial on Generic Repository Pattern with ASP.NET core with EF CORE, ...here... for example ... public class Repository<T> : IRepository<T> where T : class { protected readonly DbContext _dbContext; protected readonly DbSet<T...
asp.net-core c# dapper generic-programming repository-pattern
asked by Lakshan

When inserting, updating, or deleting a record, how to get the ID with Dapper?

When I insert or update or delete an entity with Dapper, I need to return the ...id... of entity. ...I am using this code : ...var role = await roleConnection.ExecuteAsync("UPDATE Role SET IsDelete = @isDelete, RoleName = @roleName, SecurityStamp = @secur...
asp.net asp.net-core c# dapper
asked by mr-dortaj

How Dapper handle PostgreSQL connection using dependency injection?

I am using Dapper ORM for database operations in my asp.net core web API project. Right now I am opening the new database connection every time and using it inside ...using... block so they will get disposed when scope ends. But I was looking to handle al...
asp.net-core asp.net-core-3.0 dapper npgsql
asked by Sunny12

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...
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!