//JorgenHoc

All Articles

13 articles on .NET development and cloud hosting

EF Core

EF Core Raw SQL Queries — When and How to Use Them

Learn when raw SQL beats LINQ in EF Core, how to use FromSqlRaw, FromSqlInterpolated, and ExecuteSqlRaw safely, and how to prevent SQL injection with parameterization.

Feb 17, 20256 min read
.NET Hosting

AWS Elastic Beanstalk vs Azure App Service for .NET

Side-by-side comparison of AWS Elastic Beanstalk and Azure App Service for .NET workloads: setup, pricing, scaling, runtime support, CI/CD, monitoring, and a clear verdict.

Feb 14, 20257 min read
Async C#

ValueTask vs Task in C# — Performance Deep Dive

A thorough comparison of ValueTask and Task in C#: heap allocation differences, when ValueTask genuinely improves performance, benchmarks, and when to stick with Task.

Feb 12, 20257 min read
EF Core

EF Core Many-to-Many Relationships in .NET 8

Complete guide to EF Core many-to-many relationships: implicit junction tables, explicit join entities, querying through collections, and adding or removing items with EF Core 8.

Feb 10, 20257 min read
.NET Hosting

Deploy a .NET App to Railway in 10 Minutes

Step-by-step guide to deploying a .NET 8 app on Railway: Dockerfile setup, railway.json config, environment variables, custom domains, Railway CLI, pricing, and honest pros and cons.

Feb 7, 20257 min read
Async C#

How to Avoid Async Deadlocks in C#

Understand why async deadlocks happen in C# with .Result and .Wait(), how SynchronizationContext causes them, and the patterns that prevent them entirely.

Feb 5, 20257 min read
EF Core

EF Core One-to-Many Relationships — The Complete Explanation

Master EF Core one-to-many relationships: navigation properties, foreign keys, Fluent API configuration, eager/lazy/explicit loading, and cascade delete options.

Feb 3, 20258 min read
.NET Hosting

Azure App Service for .NET — Setup, Pricing & Configuration

Step-by-step guide to deploying .NET 8 apps on Azure App Service: CLI setup, pricing tiers, deployment slots, environment variables, scaling, and GitHub Actions CI/CD.

Jan 24, 20258 min read
Async C#

async/await vs Task.Run in C# — When to Use Which

Understand the critical difference between async/await for I/O-bound work and Task.Run for CPU-bound work in C#, with practical examples and common mistakes to avoid.

Jan 22, 20256 min read
EF Core

EF Core Migrations: The Definitive Walkthrough

A complete walkthrough of EF Core migrations: adding, understanding, applying, rolling back, squashing, and safely deploying migrations to production databases.

Jan 20, 20258 min read
Async C#Pillar Guide

C# async/await Complete Guide — Task, ValueTask, ConfigureAwait

Master C# async/await from first principles: Task, Task<T>, ValueTask, ConfigureAwait(false), common pitfalls, and error handling with practical runnable examples.

Jan 17, 202510 min read
EF CorePillar Guide

Entity Framework Core Complete Guide — Setup, Queries, Migrations

Everything you need to get started with Entity Framework Core 8: installation, DbContext, entities, migrations, CRUD, LINQ queries, and relationships with runnable code examples.

Jan 16, 20259 min read
.NET HostingPillar Guide

Best .NET Hosting in 2025 — Full Comparison (Azure, AWS, Railway, Fly.io)

A thorough comparison of the top .NET hosting platforms in 2025, including Azure, AWS, Railway, Fly.io, Render, and DigitalOcean — with pricing, DX, and a recommendation matrix.

Jan 15, 202510 min read