Blazor component library for the Avolutions Business Application Framework (BAF).
Install via NuGet:
dotnet add package Avolutions.Baf.Blazor
In your Program.cs, add BAF Blazor to the service collection and middleware pipeline.
using Avolutions.Baf.Core.Modules.Extensions;
using Avolutions.Baf.Blazor.Extensions;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
// Register EF Core DbContext
builder.Services.AddDbContext<ApplicationDbContext>(options =>
options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection")));
// Register BAF Core and Blazor
builder.Services.AddBafCore<ApplicationDbContext>()
.AddBafBlazor();
var app = builder.Build();
// Initialize BAF Core and Blazor
app.UseBafCore()
.UseBafBlazor<App>();
app.Run();