Posts tagged ".NET"

Published:

.NET 7.0 + Postgres CRUD API with Angular Front End App

How to build a full stack CRUD app with a .NET 7.0 API, PostgreSQL database and Angular front end.
Published:

.NET 7.0 + MySQL - Connect to MySQL Database with Dapper in C# and ASP.NET Core

How to connect to a MySQL database with C# in ASP.NET Core using Dapper and ADO.NET
Published:

MySQL + Dapper - Create database if it doesn't exist on startup with C# and ASP.NET Core

How to auto create a database and tables in MySQL with C#, ASP.NET Core and the Dapper ORM
Published:

.NET 7.0 + Dapper + MySQL - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a MySQL database.
Published:

Postgres CRUD Operations in C# with Dapper Repository

How to perform CRUD operations on a PostgreSQL database in C# with a Dapper Repository
Published:

.NET 7.0 + C# - JWT Authentication Tutorial without ASP.NET Core Identity

Custom JWT authentication without Identity in ASP.NET Core and C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published:

.NET 7.0 + Postgres - Connect to PostgreSQL Database with Dapper in C# and ASP.NET Core

How to connect to a PostgreSQL database with C# in ASP.NET Core using Dapper and ADO.NET
Published:

Postgres + Dapper - Create database if it doesn't exist on startup with C# and ASP.NET Core

How to auto create a database and tables in PostgreSQL with C#, ASP.NET Core and the Dapper ORM
Published:
Last updated:

.NET 7.0 + Dapper + PostgreSQL - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a PostgreSQL database.
Published:

.NET + VS Code + XUnit - Setup Unit Testing & Code Coverage in ASP.NET Core

Steps to configure automatic unit testing and code coverage report generation in ASP.NET Core with VS Code and XUnit
Published:

SqlClient.SqlException - The certificate chain was issued by an authority that is not trusted

How to fix this SSL connection error when connecting to SQL Server from ASP.NET Core
Published:

.NET 7.0 + Dapper - Connect to MS SQL Server Database in ASP.NET Core

How to connect to a SQL Server database in ASP.NET Core with Dapper and ADO.NET
Published:
Last updated:

.NET 7.0 + Dapper + MS SQL Server - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a SQL Server database.
Published:

Dapper + SQL Server - Create database if it doesn't exist on startup in ASP.NET Core

How to auto create a database and tables in SQL Server with ASP.NET Core and Dapper
Published:

.NET 7.0 + Dapper - Connect to SQLite Database in ASP.NET Core

How to connect to a SQLite database in ASP.NET Core with Dapper and ADO.NET
Published:
Last updated:

.NET 7.0 + Dapper + SQLite - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a SQLite database.
Published:

C# + .NET 7.0 - Serialize (Convert) Enum to String in API Response

How to convert enum properties to strings in ASP.NET Core API responses.
Published:

.NET 7.0 + Dapper - Create Database Tables on Startup in ASP.NET Core

How to auto create database tables on startup in ASP.NET Core with Dapper
Published:

React 18 Authentication with .NET 6.0 (ASP.NET Core) JWT API

How to implement authentication with a React 18 front-end app and .NET 6.0 (ASP.NET Core) back-end API
Published:

Angular 14 Authentication with .NET 6.0 (ASP.NET Core) JWT API

How to implement authentication with an Angular front-end app and .NET 6.0 (ASP.NET Core) back-end API
Published:

Vue 3 Authentication with .NET 6.0 (ASP.NET Core) JWT API

How to implement authentication with a Vue 3 front-end app and .NET 6.0 (ASP.NET Core) back-end API
Published:

C# + RestSharp - Add Bearer Token Authorization Header to HTTP Request in .NET

A quick example of how to add a Bearer Token Authorization Header to an HTTP request in .NET using RestSharp
Published:

C# + RestSharp - HTTP PUT Request Examples in .NET

A quick set of examples to show how to send HTTP PUT requests from .NET to an API using RestSharp
Published:

C# + RestSharp - HTTP DELETE Request Examples in .NET

A quick set of examples to show how to send HTTP DELETE requests from .NET to an API using RestSharp
Published:

C# + RestSharp - HTTP GET Request Examples in .NET

A quick set of examples to show how to send HTTP GET requests from .NET to an API using RestSharp
Published:

C# + RestSharp - POST a JSON Object to an API in .NET

A quick example of how to POST a JSON object in an HTTP request to an API using RestSharp
Published:

C# + RestSharp - HTTP POST Request Examples in .NET

A quick set of examples to show how to send HTTP POST requests from .NET to an API using RestSharp
Published:

.NET 7.0 + RestSharp - Deserialize Dynamic JSON Response from HTTP Request

How to deserialize JSON data from an HTTP request dynamically without a custom class for the response.
Published:

.NET 7.0 - Create a Base Controller in .NET

This is a super quick post on how to create base controller in .NET
Published:

.NET 7.0 Auth - Sign & Validate JWT Without Core Identity

This is a quick post to show how easy it is to sign and validate JWT auth tokens in .NET 7.0 without using the built-in Core Identity membership system.
Published:

.NET 7.0 - Create Custom AuthorizeAttribute and AllowAnonymous Attribute

This is a super quick post on how to create custom [Authorize] and [AllowAnonymous] attributes in .NET 7.0.
Published:

.NET + Entity Framework - Fix for Non-nullable property '...' must contain a non-null value in EF DbContext

How to fix the nullable reference warning in Entity Framework DbContext and DbSet: Non-nullable property '...' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Published:

.NET 7.0 - Facebook Authentication API Tutorial with Example

Tutorial on how to build a .NET 7.0 API that supports Facebook Authentication.
Published:
Last updated:

.NET 6.0 - Apply Authorize Attribute to All Controllers

How to quickly apply the Authorize Attribute to all controllers by default in .NET 6.0
Published:

.NET 6.0 - Connect to InMemory Database with Entity Framework Core

This post shows how to connect a .NET 6 API to an InMemory database for testing with Entity Framework Core.
Published:

Angular + .NET - Connect an Angular App to a .NET API

This is a quick post to show how to connect an Angular front-end app to a .NET back-end API.
Published:

.NET 6.0 - Connect to SQLite Database with Entity Framework Core

This post shows goes through the steps to connect a .NET 6 API to SQLite using Entity Framework Core, and automatically create/update the SQLite database from code using EF Core migrations.
Published:

.NET 6.0 - Connect to PostgreSQL Database with Entity Framework Core

This post shows goes through the steps to connect a .NET 6 API to PostgreSQL using Entity Framework Core, and automatically create/update the PostgreSQL database from code using EF Core migrations.
Published:

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

This post shows goes through the steps to connect a .NET 6 API to MySQL using Entity Framework Core, and automatically create/update the MySQL database from code using EF Core migrations.
Published:

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

This post shows goes through the steps to connect a .NET 6 API to SQL Server using Entity Framework Core, and automatically create/update the SQL Server database from code using EF Core migrations.
Published:

.NET 6.0 - CRUD API Example and Tutorial

Tutorial on how to build a .NET 6.0 API that supports CRUD operations.
Published:

.NET 6.0 - Send an Email via SMTP with MailKit

This is a quick example of how to send an email in .NET 6.0 using the MailKit email client library.
Published:

.NET 6.0 - Boilerplate API Tutorial with Email Sign Up, Verification, Authentication & Forgot Password

How to build a boilerplate .NET 6.0 API that supports email sign up, verification, authentication, role based access control, forgot password, reset password and account management (CRUD) functionality.
Published:

.NET 6.0 - Role Based Authorization Tutorial with Example API

How to build an API with role based authorization / access control in .NET 6.0 & C#. Includes example client apps built with Angular, React and Vue.
Published:

.NET 6.0 - Minimal API Tutorial and Example

A step by step tutorial on how to build a minimal .NET 6.0 API from scratch with a couple of example endpoints/routes, with details on every line of code and configuration to show how it all fits together.
Published:

.NET 6.0 - Execute EF Database Migrations from Code on Startup

This is a super quick example of how to automatically migrate database changes on startup from code in .NET 6.0 using Entity Framework in the Program.cs file.
Published:

.NET 6.0 - Database Migrations to Different DB Per Environment (SQLite in Dev, SQL Server in Prod)

An example of how to setup a .NET 6.0 project with Entity Framework Migrations that supports multiple different database providers.
Published:
Last updated:

.NET 6.0 - JWT Authentication with Refresh Tokens Tutorial with Example API

How to implement JWT authentication with Refresh Tokens in a .NET 6.0 API. Includes example client app built with Angular.
Published:

.NET 6.0 - Create and Validate JWT Tokens + Use Custom JWT Middleware

This is a quick example of how to create and validate JWT tokens in .NET 6.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
Published:

.NET 6.0 - Global Error Handler Tutorial with Example

This is a quick post to show how to implement a global exception handler in .NET 6.0
Published:

.NET 6.0 - Hash and Verify Passwords with BCrypt

This is a quick example of how to hash and verify passwords in .NET 6.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
Published:

.NET 6.0 - User Registration and Login Tutorial with Example API

How to build a .NET 6.0 API that supports user registration, login with JWT authentication and CRUD operations. Includes example client apps built with Angular, Blazor, React & Vue.
Published:

.NET 6.0 - Basic Authentication Tutorial with Example API

How to implement Basic HTTP Authentication in .NET 6.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published:

.NET 6.0 - JWT Authentication Tutorial with Example API

How to implement custom JWT authentication in .NET 6.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published:

.NET - Create and Run a Simple 'Hello World' Web App

With the .NET CLI you can create a new project with the dotnet new <TEMPLATE> command, where the TEMPLATE is the type of application you want to create.
Published:

.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:

.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:

.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:

.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.
Published:

.NET - Program Class and Main Method in a Nutshell

The Main method is the entry point for a .NET application, when an app is started it searches for the Main method to begin execution. The method can be located anywhere in a project but is typically placed in the Program class.
Published:

.NET + MSBuild - C# Project File (.csproj) in a Nutshell

A .NET project file is an XML document containing MSBuild code that executes when you run the dotnet build command
Published:

.NET 5.0 - CRUD API Example and Tutorial

Tutorial on how to build a .NET 5.0 API that supports CRUD operations.
Published:

.NET 5.0 - Send an Email via SMTP with MailKit

This is a quick example of how to send an email in .NET 5.0 using the MailKit email client library.
Published:

.NET 5.0 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password

How to build a boilerplate .NET 5.0 API that supports email sign up, verification, authentication, role based access control, forgot password, reset password and account management (CRUD) functionality.
Published:

.NET 5.0 - Role Based Authorization Tutorial with Example API

How to build an API with role based authorization / access control in .NET 5.0 & C#. Includes example client apps built with Angular, React and Vue.
Published:

.NET 5.0 - Bare Bones API Tutorial

A step by step tutorial on how to build a simple bare bones .NET 5.0 API from scratch with a couple of example endpoints/routes, with details on every line of code and configuration to show how it all fits together.
Published:

VS Code + .NET - Debug a .NET Web App in Visual Studio Code

How to create and debug a simple .NET web application in Visual Studio Code.
Published:

.NET 5.0 API - JWT Authentication with Refresh Tokens

How to implement JWT authentication with Refresh Tokens in a .NET 5.0 API. Includes example client app built with Angular.
Published:

.NET 5.0 - Automatic Entity Framework Migrations to SQL Database on Startup

A super quick example of how to automatically migrate database changes from code in .NET 5.0 using Entity Framework in the Startup.cs file.
Published:

.NET 5.0 - Entity Framework Migrations for Multiple Databases (SQLite and SQL Server)

An example of how to setup a .NET 5.0 project with Entity Framework Migrations that supports multiple different database providers.
Published:

.NET 5.0 - Create and Validate JWT Tokens + Use Custom JWT Middleware

This is a quick example of how to create and validate JWT tokens in .NET 5.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
Published:

.NET 5.0 - Global Error Handler Tutorial

This is a quick post to show how to implement a global exception handler in .NET 5.0.
Published:

.NET 5.0 - Hash and Verify Passwords with BCrypt

This is a quick example of how to hash and verify passwords in .NET 5.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
Published:

.NET 5.0 API - Allow CORS requests from any origin and with credentials

This is a quick post to show how to configure a .NET 5.0 API to allow CORS requests from any origin as well as with credentials.
Published:
Last updated:

.NET 5.0 - Simple API for Authentication, Registration and User Management

This tutorial shows how to build a .NET 5.0 API that supports user registration, login with JWT authentication and user CRUD operations. Includes example client apps built with Angular, Blazor, React & Vue.
Published:

.NET 5.0 - Basic Authentication Tutorial with Example API

How to implement Basic HTTP Authentication in .NET 5.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published:

.NET 5.0 - JWT Authentication Tutorial with Example API

How to implement custom JWT authentication in .NET 5.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Supported by