Download an ASP.NET Core code example that generates a HTML string using Razor Views that can used for an email template.
Download this Minimal API authentication example where API key security has been added through an authentication handler, and has been integrated with Swagger.
Download the code example to validate .NET configuration on startup using data annotations or FluentValidation, so your app fails fast and never ships with broken config.
See a code example of how transactions are used in Entity Framework Core and how they can be committed and rolled back
Download a .NET 10 sample project demonstrating Global Query Filters in Entity Framework Core, including soft delete and multitenancy, and run it in Visual Studio to see how they work in practice.
Download the code example to add Basic Authentication to an ASP.NET Core Web API with Minimal API and controllers examples.
Download the code example and see what's new in C# 14. From extension members to simple lambdas, learn how these features make your code cleaner and smarter.
Download a code example to read from and write to a CSV file using a list in ASP.NET Core with examples on how to handle headers and different header titles.
Download a request logging in ASP.NET Core example that uses middleware to save logs to the database with Entity Framework Core and SQL Server.
Download a code example from xUnit v3 that includes features such as Assert.Skip, Assert.SkipWhen, Assert.SkipUnless, TestContext and TheoryDataRow.