BlazorEngine.TestHelper
1.0.54
See the version list below for details.
dotnet add package BlazorEngine.TestHelper --version 1.0.54
NuGet\Install-Package BlazorEngine.TestHelper -Version 1.0.54
<PackageReference Include="BlazorEngine.TestHelper" Version="1.0.54" />
<PackageVersion Include="BlazorEngine.TestHelper" Version="1.0.54" />
<PackageReference Include="BlazorEngine.TestHelper" />
paket add BlazorEngine.TestHelper --version 1.0.54
#r "nuget: BlazorEngine.TestHelper, 1.0.54"
#:package BlazorEngine.TestHelper@1.0.54
#addin nuget:?package=BlazorEngine.TestHelper&version=1.0.54
#tool nuget:?package=BlazorEngine.TestHelper&version=1.0.54
BlazorEngine
BlazorEngine is a library that lets you generate full-featured Blazor UI pages from your C# models and attributes. It is designed for rapid development of CRUD-style apps, admin panels, and internal tools, with minimal boilerplate.
Features
- Automatic UI generation: List, Card, Worksheet, and Two-List (side-by-side) pages are generated from your models.
- Menu auto-discovery: Add a simple attribute to your model and it appears in the navigation menu—no manual menu editing required.
- Action buttons: Decorate methods with
[PageAction]or[GridAction]to expose them as buttons on pages or in data grids. - Attribute-driven customization: Control visibility, grouping, and more with attributes on your models and properties.
- No icons required: Menu entries are plain text by default for simplicity.
- Custom Razor pages: You can still write custom Razor components/pages as needed.
How to Use
- Reference BlazorEngine in your Blazor project (WebAssembly, Server, or MAUI Blazor).
- Add attributes to your models to control menu entries and actions. Example:
[AddToMenu(Title = "Products", Route = "/products")]
public class Product { /* ... */ }
[PageAction(Caption = "Refresh")]
public void Refresh() { /* ... */ }
Run your app. The UI and menu are generated automatically.
See the Demo: The
Demo/TestSharedproject contains sample models and demonstrates all features. Explore it for real-world usage.
Getting Started
- Clone this repository.
- Open the solution in Visual Studio.
- Set one of the demo projects (WebAssembly, Server, or MAUI) as the startup project.
- Run (F5) and explore the generated UI.
Special Note for .NET MAUI
Add this script to your index.html before the WebAssembly script:
<script app-name="MauiApp1"
src="./_content/Microsoft.FluentUI.AspNetCore.Components/js/initializersLoader.webview.js"></script>
In the <BlazorEngineApp> tag, add the parameter: BlazorEngineRenderMode="null"
Contributing
Contributions are welcome! Open issues or submit pull requests if you have ideas or improvements.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BlazorEngine (>= 1.0.54)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.