{"id":18292661,"url":"https://github.com/ardalis/dotnetdataaccesstour","last_synced_at":"2025-06-19T09:35:06.616Z","repository":{"id":47435506,"uuid":"348403668","full_name":"ardalis/DotNetDataAccessTour","owner":"ardalis","description":"A tour of different data access approaches in .NET 8+.","archived":false,"fork":false,"pushed_at":"2024-12-08T16:13:33.000Z","size":806,"stargazers_count":111,"open_issues_count":5,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-25T11:06:59.409Z","etag":null,"topics":["dapper","data","design-patterns","dotnet","dotnet-core","entity-framework-core","repository","repository-pattern","specification","sql-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ardalis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-16T15:44:06.000Z","updated_at":"2025-05-02T20:05:23.000Z","dependencies_parsed_at":"2024-12-23T21:10:39.052Z","dependency_job_id":"bbcf3a07-6759-40ad-a4b3-e4de55c9c83e","html_url":"https://github.com/ardalis/DotNetDataAccessTour","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":0.1707317073170732,"last_synced_commit":"ab9cfe0ad3a54c9475be6ce92a98e32e25010c6d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ardalis/DotNetDataAccessTour","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardalis%2FDotNetDataAccessTour","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardalis%2FDotNetDataAccessTour/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardalis%2FDotNetDataAccessTour/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardalis%2FDotNetDataAccessTour/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardalis","download_url":"https://codeload.github.com/ardalis/DotNetDataAccessTour/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardalis%2FDotNetDataAccessTour/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260724964,"owners_count":23052847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapper","data","design-patterns","dotnet","dotnet-core","entity-framework-core","repository","repository-pattern","specification","sql-server"],"created_at":"2024-11-05T14:18:51.923Z","updated_at":"2025-06-19T09:35:01.593Z","avatar_url":"https://github.com/ardalis.png","language":"C#","readme":"# Dot Net Data Access Tour\n\nA tour of different data access approaches in .NET 9+.\n\n**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.\n\n## Related Videos\n\n- [Custom Specifications with EF Core](https://www.youtube.com/watch?v=i5FvDLsSrn0) @ardalis, 2024\n- [Improving Data Access with Abstractions](https://www.youtube.com/watch?v=g6cjCbxq54Y) Stir Trek, 2023\n\n## Data Access Options (CRUD + Queries)\n\n- ADO.NET Custom SQL\n- ADO.NET Stored Procs\n- Dapper Custom SQL\n- Dapper Stored Procs\n- EF Core + Custom Queries\n\n## Additional Options\n\n- Repository layer\n- Application layer\n\n## Running the App - Create the Database\n\nEF 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:\n\nRun this command to get ef core tools:\n\n```powershell\ndotnet tool install --global dotnet-ef\n```\n\n```powershell\ndotnet ef database update\n```\n\n## Running Seq in a local Docker instance\n\nRun this command:\n\n```powershell\ndocker run --name seqlogger -d -p 5341:5341 -p 5342:80 -e ACCEPT_EULA=Y datalust/seq\n```\n\nVerify Seq is running: http://localhost:5342\n\n## Running k6 scripts\n\nInstall k6:\n\n```powershell\nchoco install k6\n```\n\nRun scripts from the k6 folder.\n\n```powershell\nk6 run data-strategy-01.js\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardalis%2Fdotnetdataaccesstour","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardalis%2Fdotnetdataaccesstour","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardalis%2Fdotnetdataaccesstour/lists"}