Using pictures in ASP.NET MVC Core with Entity Framework Core

Using pictures in ASP.NET Core MVC is not always very straightforward. A lot of articles you find simply upload the pictures to a www-folder and use them from there. This may work if you host your own website. This approach will give problems when using a cloud service. A cloud service may terminate your deployed version and may spin up a new fresh version to replace the old one. All pictures uploaded to the www-folder will then be lost and your database will have references to resources on the file system that do not exist anymore. In this post, I will show you how to store the images in your database and use them from there. The code for this blog post can be found here . For this example, I create a simple application to upload a profile to a website. I deliberately don't pay attention to the layout of the site, because it will only distract you from the meaningful code.  I have created a regular ASP.NET Core MVC 6 application using the templates available in Visual Studio 2022.

Deploying multiple projects from one solution with Azure DevOps

If you are building a modern web application, you will often need a frontend and a web API. I always want to keep these projects apart to maintain separation of concerns but to enable easy code sharing and developer focus, I also like to keep the projects in one solution. I love to use Azure DevOps for my CI/CD work, so I want to deploy these artifacts with one pipeline. In this post, I will show you, how you can do this. I do expect some basic knowledge about setting up a build and release pipeline in Azure DevOps. Visual Studio Solution For this blog post, I created the following solution. The solution contains a web application and a WebAPI. Both projects share the Domain class library. Build pipeline The solution can be built with the classic workflow or using the new yaml templates. For this post, I use the classic editor with the template for ASP.NET Core. The default settings for the build can be used. By default, all projects will be built and all p

Blazor session at DOTNED SATURDAY

On January 26 2019 I will give a session about getting started with Blazor at DOTNED Saturday ( ). The session will be in Dutch.


The last few years I have been teaching children to program. Next week I will give a lecture at a school about Prezi. It is fun to have to opportunity to educate our children.

Programming with your kids

Today I had the opportunity to organise a programming with your kids event for Bergler. It was fun to see the chidren play with Scratch, and the Microbit.

.NET Saturday in The Netherlands

Today I submitted a few talks for .NET Saturday on January 27th 2018 in The Netherlands. You can already register to attend this day ( ). I hope I will be selected to give a talk.

Visual Studio 2017 RC

I just took some time during the holidays to install Visual Studio 2017 RC. The initial setup changed a lot. You can easily choose what kind of development you are planning to do. It definitely is an improvement to the previous versions.