Blazor now supports rendering components dynamically by type. This is crucial for building CMS-like systems or dashboard widgets where the component to render depends on database configuration. Previously, this required complex Reflection or RenderTreeBuilder logic.
Read more โTag: .NET
Top 5 Features of Entity Framework Core 6
EF Core 6 launched with .NET 6. Here are my favorite parts: Temporal Tables: Native support for SQL Server temporal tables. Query data “AS OF” a specific time. Migration Bundles: Compile your migrations into a standalone executable. `ef bundle`. This makes DevOps pipeline deployment significantly safer (no SDK required on the deployment agent). Faster Query […]
Read more โC# 10: Validating Arguments with CallerArgumentExpression
Validating arguments just got cleaner. C# 10 introduces `[CallerArgumentExpression]`. This allows a method to capture the text of the expression passed to it. Microsoft used this to build the new `ArgumentNullException.ThrowIfNull(name)` helper in .NET 6.
Read more โC# 10: Constant Interpolated Strings
A small but welcome quality of life improvement in C# 10. You can finally use string interpolation for `const` strings, as long as the inputs are also strings. This is fantastic for attributing Controllers or defining consistent routing constants without resorting to `static readonly`.
Read more โTesting .NET 6 Applications: Integration Testing with WebApplicationFactory
Integration testing is the highest value testing you can do. In .NET 6, `WebApplicationFactory` makes it incredibly easy to spin up an in-memory version of your API for testing. Exposing the Program Class With Top-level statements, `Program` is internal. To test it, you need to expose it in `Program.cs`: The Test Setup
Read more โ.NET 6: Minimal APIs Explained
Minimal APIs are the biggest shift in ASP.NET Core since version 1.0. They remove the MVC ceremony (Controllers, Actions, Filters) in favor of a fluent lambda-based syntax. The Code Is it just for tiny apps? No. Performance is technically better than MVC (fewer allocations, no Filter Pipeline overhead). However, organization becomes the challenge. You don’t […]
Read more โ