InfernoRed Blog

Stored Procedures in ASP.Net Boilerplate

Posted by Lee Richardson on Dec 3, 2019 1:16:19 PM

Using stored procedures in ASP.Net Boilerplate is a little trickier than you might imagine.  There's the problem of getting them into the database with EF Code-First migrations.  Then there's the issue of how to call them through the repository pattern while keeping things unit testable.

And did you know there are three different way to call stored procedures?  Which you use depends on on whether they return an existing entity, return nothing, or return something else entirely.  That last option is the trickiest.

Read More

Topics: ASPNetCore, Angular

3 Ways to Refactor EF Linq Queries w/O Killing PERF

Posted by Lee Richardson on Sep 6, 2019 10:14:54 AM

Extracting a method from an Entity Framework LINQ query can quietly kill performance.  Here are three easy solutions including: Expressions, Extension Methods, and LinqKit.

Read More

Topics: ASPNetCore

Fighting File Downloads and Dinosaurs with NSwag

Posted by Lee Richardson on Aug 7, 2019 10:30:28 AM

Technically it was the dinosaurs, approximately 240 million years ago, that first solved downloading files from web servers.  So doing it with a modern tech stack with an auto-generated client-side proxy should be easy, right?

Read More

Topics: ASPNetCore

Be a Hero on Day 1 with ASP.Net Boilerplate

Posted by Lee Richardson on Jun 3, 2019 9:09:00 AM

ASP.Net Boilerplate is a web framework you've likely never heard of, but probably should have. Fortunately, I just published a new episode of Code Hour where I give an overview of it.

Read More

Topics: ASPNetCore

Code Coverage is Finally Easy in .Net Core

Posted by Lee Richardson on Dec 4, 2018 9:11:13 AM

A couple of months ago calculating code coverage on the command line was quite challenging in ASP.Net Core.  Fortunately, as of last month and Visual Studio 15.8, generating the metric is easy.

Read More

Topics: CI, DevOps, ASPNetCore