DotVVM Application Blocks
Sign up for an early preview
DotVVM Application Blocks is a collection of building blocks for ASP.NET Core.
With just a few lines of code, you can build amazing apps in minutes.
builder.AddApplicationBlocks(blocks =>
{
blocks
.AddEfCoreDataSource<AppDbContext, Order>()
.AddEfCoreDataSource<AppDbContext, Product>();
.UseBootstrap5Template();
.AddListPage<OrderListModel, Order>(page =>
{
page.BeginPageExtensions.AddFullTextSearch();
})
.AddDetailPage<OrderDetailModel, Order>(page =>
{
page.UseLayout(layoutBuilder =>
layoutBuilder.Columns(
layoutBuilder.Form(m => m.Name, m => m.Price),
layoutBuilder.Form(m => m.DepartmentId)
));
});
});