Created AdminContext handling

This commit is contained in:
2024-09-30 19:01:39 +02:00
parent 672f0fd2c3
commit 66ddc22012
33 changed files with 582 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
using System.ComponentModel;
using System.Text.Json.Serialization;
namespace HopFrame.Web.Admin.Models;
public class AdminPage<TModel> : IAdminPageEntry {
public string Title { get; set; }
public string Description { get; set; }
public AdminPagePermissions Permissions { get; set; }
public IList<AdminPageProperty> Properties { get; set; }
[JsonIgnore]
public Type RepositoryProvider { get; set; }
public string DefaultSortPropertyName { get; set; }
public ListSortDirection DefaultSortDirection { get; set; }
public bool ShowCreateButton { get; set; } = true;
public bool ShowDeleteButton { get; set; } = true;
public bool ShowUpdateButton { get; set; } = true;
}
public interface IAdminPageEntry;