GitHub - lenardchristopher/ASP.NET-Core-with-Dapper: Exploratory ASP.NET Core Web API using Dapper as an ORM | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

lenardchristopher/ASP.NET-Core-with-Dapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core with Dapper

Why

The majority of Microsoft documentation pushes Entity Framework (EF) as an ORM, which provides a code first approach to development. Unfortunately, EF has a lot of overhead as an ORM, whereas Dapper is twice as fast. I created this project to explore what implementing a Dapper Data Access Layer would look like.

Overview

The goal of my architecture was to encapsulate any data access specific logic in the Repository layer of the app. I used the Employee object as an example. EmployeeRepository implements an abstract class which will dictate which data source it will use. In this case, it is using SQL (SqlRepository), but I also stubbed out Document and XML repositories.

SqlRepository (and all other abstract repositories) implements IGenericRepository, which is the minimum required contract for accessing the data source. The abstract repos implement the logic necessary to open a connection with the data sources, which they can easily get from the DbConnectionFactory. Finally, any extension methods that are unique to a model's repository can be implemented in an additional interface - which I demonstrate with IEmployeeRepository.

About

Exploratory ASP.NET Core Web API using Dapper as an ORM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.