A detailed look at EF Core’s JSON Columns feature
Some developers used EF Core JSON Columns in their DbContext when using my EfCore.SchemaCompare library, then they had a problem. That’s because I hadn’t added support for JSON Columns to my...
View ArticleHow to update a NuGet library once the author isn’t available
I’m writing this article because I have an illness called dementia, which over time degrades a person’s ability to remember, think, and make decisions. This means at some point I won’t be able to...
View ArticleThe (long) journey to a better sharding multi-tenant application
This article focuses on the sharding approach of building a .NET multi-tenant application using the AuthPermissions.AspNetCore library (shortened to AuthP). After working exclusively on a...
View ArticleUsing custom databases with the AuthP library – Part1: normal apps
The AuthPermissions.AspNetCore library, referred to as AuthP library, provides enhanced Roles authentication and multi-tenant services to an .NET application. The AuthP library needs to store...
View ArticleA pattern / library for methods that return a status, including localization
This article is about a pattern / library that allows you to create methods that can return a status, that is a success / fail value, plus the error messages – I call this “returning a status”. It...
View ArticleApplying an improved multiple languages library to .NET applications
The last article covered why I added extra features to the .NET support of multiple languages (known as localization in .NET) and via the Net.LocalizeMessagesAndErrors library (shortened to...
View ArticleImproving the support of multiple languages in .NET applications
One of users of my AuthPermissions.AspNetCore library (shortened to AuthP in this article) asked for support for multiple languages – known in .NET as Localization. I looked at the .NET localization...
View ArticleASP.NET Core: Three ways to refresh the claims of a logged-in user
An ASP.NET Core application uses claims to hold the logged-in user’s authentication and authorization data. These claims are created on login and stored in a cookie or a JWT Token for quick access....
View ArticleHow to take an ASP.NET Core web site “Down for maintenance”
If you have an e-commerce or business web app used by lots of users, then you really don’t want that app to be “down” (e.g. “site offline” or “site not found”) because it’s bad for business. But at...
View ArticleHow to turn an ASP.NET Core appsettings.json file into a fast-read database
This article describes a way to create a database using ASP.NET Core appsettings.json configuration feature. The big benefit of this approach is the read is blistering fast, something like 1,000 times...
View ArticleA .NET distributed cache with a ~25 nanosecond read time!
This article described a .NET distributed cache library called Net.DistributedFileStoreCache (referred to as FileStore cache in this article). The FileStore distributed cache library is very quick to...
View ArticleThree ways to securely add new users to an application using the AuthP library
The AuthPermissions.AspNetCore library (shortened to AuthP in this article) provides various features that can help you building certain ASP.NET Core applications. The main features are better Roles...
View ArticlePart6: Using sharding to build multi-tenant apps using ASP.NET Core and EF Core
This article describes how to use EF Core and ASP.NET Core to create a multi-tenant application where each different groups (known as tenants) has its own database – this is known as sharding. A...
View ArticleAdvanced techniques around ASP.NET Core Users and their claims
This article describes some advanced techniques around adding or updating claims of users when building ASP.NET Core applications. These advanced techniques are listed below with examples taken from...
View ArticleBuilding ASP.NET Core and EF Core hierarchical multi-tenant apps
This article looks at a specific type of multi-tenant where a tenant can have a sub-tenant. For instance, a large company called XYZ with different businesses could have a top-level tenant called XYZ,...
View ArticleMulti-tenant apps with different versions can increase your profits
This article explores ways you can make each tenant in your multi-tenant applications have different features – for instance, Visual Studio has three versions: Community, Pro, and Enterprise. This is...
View ArticleBuilding ASP.NET Core and EF Core multi-tenant apps – Part2: Administration
In Part 1 of this series, you learnt how to set up the multi-tenant application database so that each tenant had its own set of data, which is private to them. This article explores the administration...
View ArticleBuilding ASP.NET Core and EF Core multi-tenant apps – Part1: the database
Multi-tenant applications are everywhere – your online banking is one example and GitHub is another. They consist of one set of code that is used by every user, but each user’s data is private to that...
View ArticleHow to safely apply an EF Core migrate on ASP.NET Core startup
There are many ways to migrate a database using EF Core, and one of the most automatic approaches is to call EF Core’s MigrateAsync method on startup of your ASP.NET Core application – that way you...
View ArticleUpdating your ASP.NET Core / EF Core application to NET 6
With the release of NET 6 I wanted to update the code in the repo called EfCoreinAction-SecondEdition which contains the code that goes with my book “Entity Framework Core in Action 2nd edition”. This...
View Article