Started working on listing page

This commit is contained in:
2025-01-14 21:12:09 +01:00
parent 6115dcf8e1
commit c4c0424559
12 changed files with 396 additions and 57 deletions

View File

@@ -2,6 +2,7 @@ using HopFrame.Core.Services;
using HopFrame.Testing;
using Microsoft.FluentUI.AspNetCore.Components;
using HopFrame.Testing.Components;
using HopFrame.Testing.Models;
using HopFrame.Testing.Services;
using HopFrame.Web;
using HopFrame.Web.Components.Pages;
@@ -20,7 +21,21 @@ builder.Services.AddDbContext<DatabaseContext>(options => {
builder.Services.AddHopFrame(options => {
options.SetAuthHandler<AuthService>();
options.AddDbContext<DatabaseContext>();
options.AddDbContext<DatabaseContext>(context => {
context.Table<User>(table => {
table.Property(u => u.Password)
.List(false);
table.Property(u => u.FirstName)
.SetDisplayName("First Name");
table.Property(u => u.LastName)
.SetDisplayName("Last Name");
table.Property(u => u.Id)
.Sortable(false);
});
});
});
builder.Services.AddTransient<IHopFrameAuthHandler, AuthService>();