Git Product home page Git Product logo

dotnetdataaccesstour's Introduction

Dot Net Data Access Tour

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

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

Running Seq in a local Docker instance

Run this command:

docker run --name seqlogger -d -p 5341:5341 -p 5342:80 -e ACCEPT_EULA=Y datalust/seq

Verify Seq is running: http://localhost:5342

Running k6 scripts

Install k6:

choco install k6

Run scripts from the k6 folder.

k6 run data-strategy-01.js

dotnetdataaccesstour's People

Contributors

ardalis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.