Posts for October 2021

Published: October 26 2021

.NET 5.0 - Connect to MySQL Database with Entity Framework Core

In this post we'll go through the steps to connect a .NET API to MySQL using Entity Framework Core, and to create a MySQL database from code using EF Core migrations.
Published: October 21 2021

.NET 5.0 - Connect to SQL Server with Entity Framework Core

In this post we'll go through the steps to connect a .NET API to SQL Server using Entity Framework Core, and to create a SQL Server database from code using EF Core migrations.
Published: October 15 2021

Vanilla JS - 7 ways to convert a string to a number in JavaScript

Some quick examples of how to convert a string to a number in JavaScript
Published: October 12 2021

.NET - Return Enum as String from API

This is a quick post to show how to serialize enum values as strings so enum values are returned in API responses instead of the enum indexes.
Published: October 09 2021

Fetch - Error Handling for Failed HTTP Responses and Network Errors

A quick example of how to handle both network errors and HTTP errors (4xx or 5xx) for fetch requests in a single catch block
Published: October 07 2021

React - history listen and unlisten with React Router v5

How to register and unregister a location change listener in a React component with React Router v5.
Published: October 05 2021

React Hook Form 7 - Dynamic Form Example with useFieldArray

This is a quick example of how to build a dynamic form with validation in React with version 7 of the React Hook Form library.
Published: October 04 2021

Axios vs Fetch - HTTP GET Request Comparison by Example

Examples of HTTP GET requests sent with axios side by side with the same requests sent with fetch so you can compare the two and decide which you prefer.
Published: October 03 2021

Axios vs Fetch - HTTP POST Request Comparison by Example

Examples of HTTP POST requests sent with axios side by side with the same requests sent with fetch so you can compare the two and decide which you prefer.
Published: October 02 2021

Vanilla JS - Create an array with a range of numbers in a JavaScript

Some quick examples of how to generate a range of numbers in an array in JavaScript.
Published: October 01 2021

.NET - Startup Class in a Nutshell

The Startup class configures the services available to the .NET Dependency Injection (DI) container in the ConfigureServices() method, and configures the .NET request pipeline for the application in the Configure() method.
Supported by