Formaze.Blazor.MudBlazor.EFCore
1.3.3
See the version list below for details.
dotnet add package Formaze.Blazor.MudBlazor.EFCore --version 1.3.3
NuGet\Install-Package Formaze.Blazor.MudBlazor.EFCore -Version 1.3.3
<PackageReference Include="Formaze.Blazor.MudBlazor.EFCore" Version="1.3.3" />
<PackageVersion Include="Formaze.Blazor.MudBlazor.EFCore" Version="1.3.3" />
<PackageReference Include="Formaze.Blazor.MudBlazor.EFCore" />
paket add Formaze.Blazor.MudBlazor.EFCore --version 1.3.3
#r "nuget: Formaze.Blazor.MudBlazor.EFCore, 1.3.3"
#:package Formaze.Blazor.MudBlazor.EFCore@1.3.3
#addin nuget:?package=Formaze.Blazor.MudBlazor.EFCore&version=1.3.3
#tool nuget:?package=Formaze.Blazor.MudBlazor.EFCore&version=1.3.3
Formaze.Blazor.MudBlazor.EFCore
Entity Framework Core store for Formaze.
Persists your Formaze form configurations in any EF Core-compatible database — SQL Server, PostgreSQL, SQLite, and more.
This is a companion package for Formaze.Blazor.MudBlazor — install that first.
Installation
dotnet add package Formaze.Blazor.MudBlazor.EFCore
Targets .NET 8, 9, and 10.
Quick start
1. Register the Formaze table in your DbContext:
using Formaze.Blazor.Mudblazor.EFCore;
public class AppDbContext : DbContext
{
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.UseFormaze();
}
}
2. Add a migration and apply it:
dotnet ef migrations add AddFormaze
dotnet ef database update
3. Register Formaze with the EF Core store in Program.cs:
builder.Services.AddFormazeEfCore<AppDbContext>(options =>
{
options.LicenseKey = "YOUR_LICENSE_KEY"; // omit for the Free tier
});
Form configurations are now stored in the FormazeConfigs table of your database.
Scoped context or factory?
AddFormazeEfCore<TContext>() resolves the scoped DbContext registered with AddDbContext. On Blazor Server that context lives as long as the circuit and must not be used concurrently, so if your components also use it, prefer the factory-based registration, which opens a fresh context per operation and disposes it right after:
builder.Services.AddDbContextFactory<AppDbContext>(o => o.UseSqlServer(connectionString));
builder.Services.AddFormazeEfCoreWithFactory<AppDbContext>(options =>
{
options.LicenseKey = "YOUR_LICENSE_KEY"; // omit for the Free tier
});
Both registrations use the same EfCoreFormazeStore<TContext> (it has one constructor per shape). Saves are upserts; when two first saves of the same key race, the one whose insert loses retries as an update, so no configuration is lost. Rows are serialized with FormazeJson.Options (enums by name), and rows written by earlier versions still load.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Formaze.Blazor.MudBlazor (>= 1.3.3)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
-
net8.0
- Formaze.Blazor.MudBlazor (>= 1.3.3)
- Microsoft.EntityFrameworkCore (>= 8.0.11)
-
net9.0
- Formaze.Blazor.MudBlazor (>= 1.3.3)
- Microsoft.EntityFrameworkCore (>= 9.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.