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,26 @@
using System.ComponentModel;
using System.Linq.Expressions;
namespace HopFrame.Web.Admin.Generators;
public interface IAdminPageGenerator<TModel> {
IAdminPageGenerator<TModel> Title(string title);
IAdminPageGenerator<TModel> Description(string description);
IAdminPageGenerator<TModel> ViewPermission(string permission);
IAdminPageGenerator<TModel> CreatePermission(string permission);
IAdminPageGenerator<TModel> UpdatePermission(string permission);
IAdminPageGenerator<TModel> DeletePermission(string permission);
IAdminPageGenerator<TModel> ShowCreateButton(bool show);
IAdminPageGenerator<TModel> ShowDeleteButton(bool show);
IAdminPageGenerator<TModel> ShowUpdateButton(bool show);
IAdminPageGenerator<TModel> DefaultSort<TProperty>(Expression<Func<TModel, TProperty>> propertyExpression, ListSortDirection direction);
IAdminPageGenerator<TModel> ConfigureRepository<TRepository>() where TRepository : IModelRepository<TModel>;
IAdminPropertyGenerator Property<TProperty>(Expression<Func<TModel, TProperty>> propertyExpression);
}