Skip to content

Blazor component library for the Avolutions Business Application Framework (BAF).

License

Notifications You must be signed in to change notification settings

avolutions/baf-blazor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avolutions BAF Blazor

NuGet Version NuGet Downloads

Blazor component library for the Avolutions Business Application Framework (BAF).

Installation

Install via NuGet:

dotnet add package Avolutions.Baf.Blazor

Quick Start

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();

About

Blazor component library for the Avolutions Business Application Framework (BAF).

Resources

License

Stars

Watchers

Forks