.NET tutorials

Which date and time type to use in SQL Server 2019?

Which date and time type to use in SQL Server 2019?

Examining the precision, storage bytes and accuary of the different SQL Server 2019 Date and Time Types, including date, datetime datetime2 and datetimeoffset.
ASP.NET Core MVC API: How to perform a partial update using HTTP PATCH verb

ASP.NET Core MVC API: How to perform a partial update using HTTP PATCH verb

Using a ASP.NET Core API application to create a PATCH method within a controller. Test in Postman to partially update the record using the PATCH HTTP verb.
Create a small blog in Blazor - Part 4 - Build category and page Razor components

Create a small blog in Blazor - Part 4 - Build category and page Razor components

We build up our Blazor blog, building up our NavMenu, Category and Post Razor components, using @page and OnParametersSetAsync to do this.
Create a small blog in Blazor - Part 3 - Build Entity Framework queries

Create a small blog in Blazor - Part 3 - Build Entity Framework queries

We create services, with methods that contain Entity Framework queries for our blog before adding the services to Dependency Injection.
Create a small blog in Blazor - Part 2 - Entity Framework integration

Create a small blog in Blazor - Part 2 - Entity Framework integration

We set up our entities and DbContext to integrate Entity Framework into our Blazor Server app. We also create the SQL Server database required.
Create a small blog in Blazor - Part 1 - Create application in Visual Studio

Create a small blog in Blazor - Part 1 - Create application in Visual Studio

We get Visual Studio to create our Blazor Server App. Afterwards, we examine what files have been created and run through the demo Razor Components created.
Using Entity Framework in a Blazor Server application

Using Entity Framework in a Blazor Server application

Find out how to change Entity Framework's scope to Transient and how to create new service scopes to use Entity Framework in Blazor.
Using reflection to create a dynamic OnModelCreating in Entity Framework

Using reflection to create a dynamic OnModelCreating in Entity Framework

Using System.Reflection to invoke static OnModelCreating methods, allowing Entity Framework models to be invoked dynamically.
Getting started with CORS in ASP.NET Core

Getting started with CORS in ASP.NET Core

Discussing how to integrate Cross-Origin Resource Sharing and using it to restrict origin, verbs and headers from the referrer.
Binding, child components, parameters and event callbacks in Blazor

Binding, child components, parameters and event callbacks in Blazor

Use some of Blazor's tools to create a simple message application that allows you to create, read, update and delete messages.