All Projects → ardalis → DotNetDataAccessTour

ardalis / DotNetDataAccessTour

Licence: MIT license
A tour of different data access approaches in .NET 5+.

Programming Languages

C#
18002 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Dot Net Data Access Tour

A tour of different data access approaches in .NET 5+.

Note: This is meant to demonstrate different ways to make data access calls, not best practices (or even reasonably good practices) for building ASP.NET Core Web APIs.

Data Access Options (CRUD + Queries)

  • ADO.NET Custom SQL
  • ADO.NET Stored Procs
  • Dapper Custom SQL
  • Dapper Stored Procs
  • EF Core + Custom Queries

Additional Options

  • Repository layer
  • Application layer

Running the App - Create the Database

EF and its Migrations are not required for all of these variants, but it does provide a quick and easy way to get your data in place if you want to run these samples. Just run this command from the WebDataDemo folder:

Run this command to get ef core tools

dotnet tool install --global dotnet-ef
dotnet ef database update
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].