In the C# language, the enum type (aka enumeration) is a user-defined value type used to represent a list of named integer constants. Enums are really useful when you want to […]
NUnit Testing Framework Guide – That()
nUnit is an open-source unit testing framework for the .NET Framework and Mono. By using nUnit you can test your Services, but also your Controllers, Actions, etc. It was initially […]
Adding DbContext to .NET Core Web API
What is DBContext? DbContext or the Entity Framework Database Context file is the most important Entity Framework class because this class serves as the translator between the database tables and […]
ASP.NET Core 3.0 not showing on Visual Studio 2019
.NET Core 3.0 which is the latest .NET Core version is currently in Preview and can be used with Visual Studio 2019 which is also in Preview. So, after you […]
Error: The antiforgery token could not be decrypted
If you are deploying a .net core application to a hosting provider and you are getting this issue: System.InvalidOperationException: The antiforgery token could not be decrypted. —> System.Security.Cryptography.CryptographicException: The key […]