Skip to content

Reusable domain features for the Avolutions Business Application Framework (BAF).

License

Notifications You must be signed in to change notification settings

avolutions/baf-domain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avolutions BAF Domain

NuGet Version NuGet Downloads

Reusable domain features for the Avolutions Business Application Framework (BAF).

Installation

Install via NuGet:

dotnet add package Avolutions.Baf.Domain

Quick Start

In your Program.cs, add BAF Domain to the service collection and middleware pipeline.

using Avolutions.Baf.Core.Modules.Extensions;
using Avolutions.Baf.Domain.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>()
  .AddBafDomain();

var app = builder.Build();

// Initialize BAF Core and Domain
app.UseBafCore()
  .UseBafDomain();

app.Run();

About

Reusable domain features for the Avolutions Business Application Framework (BAF).

Resources

License

Stars

Watchers

Forks

Languages