REST API using C# .NET 7 with MySql

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • roundhouse

    RoundhousE is a Database Migration Utility for .NET using sql files and versioning based on source control

  • Before we can start using Postgres we need to create a table to store our data. I will be using excellent roundhouse database deployment system to execute database migrations.

  • dotnet-script

    Run C# scripts from the .NET CLI.

  • I usually create a container that has all database migrations and tool to execute those migrations. I name migrations as [yyyyMMdd-HHmm-migration-name.sql] but please feel free to use any naming scheme, keep in mind how the tool would order multiple files to run those migrations. I have also added a wait-for-db.csx file that I would use as the entry point for database migrations container. This is a dotnet-script file and would be run using dotnet-script. I have pinned the versions that are compatible with .net sdk 3.1 as this the version roundhouse is build against at the time of writing.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • MySQL

    MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

  • This is a continuation of an earlier post REST API using C# .NET 7 with InMemory Store. In this tutorial I will extend the service to store data in a MySQL Database. I will use Docker to run MySQL and use the same to run database migrations.

  • Dapper

    Dapper - a simple object mapper for .Net

  • I will be using Dapper - a simple object mapper for .Net along with MySqlConnector.

  • docker

    Docker - the open-source application container engine (by microsoft)

  • This is a continuation of an earlier post REST API using C# .NET 7 with InMemory Store. In this tutorial I will extend the service to store data in a MySQL Database. I will use Docker to run MySQL and use the same to run database migrations.

  • movies-api-cs

    Discontinued Movies REST API

  • Source code for the demo application is hosted on GitHub in movies-api-cs repository.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts