.NET code examples

Download a Blazor WebAssembly button onclick event example

Download a Blazor WebAssembly button onclick event example

Use a Blazor Wasm parameter to pass the onclick event to another Razor compoment and use it async. Download the code example.
Dynamic queries using LINQ expressions

Dynamic queries using LINQ expressions

Writing dynamic queries for Entity Framework. A sample .NET 5 MVC application, showing examples of LINQ expressions.
Read appsettings.json config in ASP.NET Core

Read appsettings.json config in ASP.NET Core

Download the source code and read the appsettings.json file in an ASP.NET Core MVC application. Bind using the options pattern.