LINQ Finally Made Sense to Me When I Stopped Treating It Like Weird C# Syntax

LINQ is one of those C# features that can look strange when you first see it. Something like this: var transactions = await _context.Transactions .Where(t => t.Amount > 100) .OrderByDescending(t…

Continue ReadingLINQ Finally Made Sense to Me When I Stopped Treating It Like Weird C# Syntax

ASP.NET Core Model Validation Finally Made Sense to Me: Data Annotations and ModelState

When I first started working with forms in ASP.NET Core MVC, validation looked simple. You add [Required] to a property, ASP.NET somehow knows the field is required, and an error…

Continue ReadingASP.NET Core Model Validation Finally Made Sense to Me: Data Annotations and ModelState

Understanding Dependency Injection in ASP.NET Core Without the Jargon

Dependency Injection was one of those programming terms that sounded much more intimidating than the idea actually was. The name doesn't help. Dependency. Injection. It sounds like either an advanced…

Continue ReadingUnderstanding Dependency Injection in ASP.NET Core Without the Jargon