Class AbpCrudPageBase<TAppService, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput, TListViewModel, TCreateViewModel, TUpdateViewModel>
Inheritance
object
Microsoft.AspNetCore.Components.ComponentBase
Microsoft.AspNetCore.Components.OwningComponentBase
AbpCrudPageBase<TAppService, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput, TListViewModel, TCreateViewModel, TUpdateViewModel>
Implements
Microsoft.AspNetCore.Components.IComponent
Microsoft.AspNetCore.Components.IHandleEvent
Microsoft.AspNetCore.Components.IHandleAfterRender
System.IDisposable
Inherited Members
Microsoft.AspNetCore.Components.OwningComponentBase.Dispose(bool)
Microsoft.AspNetCore.Components.OwningComponentBase.IsDisposed
Microsoft.AspNetCore.Components.OwningComponentBase.ScopedServices
Microsoft.AspNetCore.Components.ComponentBase.BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder)
Microsoft.AspNetCore.Components.ComponentBase.OnInitialized()
Microsoft.AspNetCore.Components.ComponentBase.OnParametersSet()
Microsoft.AspNetCore.Components.ComponentBase.OnParametersSetAsync()
Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged()
Microsoft.AspNetCore.Components.ComponentBase.ShouldRender()
Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender(bool)
Microsoft.AspNetCore.Components.ComponentBase.InvokeAsync(System.Action)
Microsoft.AspNetCore.Components.ComponentBase.InvokeAsync(System.Func<System.Threading.Tasks.Task>)
Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView)
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.BlazoriseUI.dll
Syntax
public abstract class AbpCrudPageBase<TAppService, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput, TListViewModel, TCreateViewModel, TUpdateViewModel> : AbpComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TAppService : ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput> where TGetOutputDto : IEntityDto<TKey> where TGetListOutputDto : IEntityDto<TKey> where TGetListInput : new() where TCreateInput : class where TUpdateInput : class where TListViewModel : IEntityDto<TKey> where TCreateViewModel : class, new() where TUpdateViewModel : class, new()
Type Parameters
| Name |
Description |
| TAppService |
|
| TGetOutputDto |
|
| TGetListOutputDto |
|
| TKey |
|
| TGetListInput |
|
| TCreateInput |
|
| TUpdateInput |
|
| TListViewModel |
|
| TCreateViewModel |
|
| TUpdateViewModel |
|
Constructors
AbpCrudPageBase()
Declaration
protected AbpCrudPageBase()
Fields
BreadcrumbItems
Declaration
protected List<BreadcrumbItem> BreadcrumbItems
Field Value
CreateModal
Declaration
protected Modal CreateModal
Field Value
| Type |
Description |
| Blazorise.Modal |
|
CreateValidationsRef
Declaration
protected Validations CreateValidationsRef
Field Value
| Type |
Description |
| Blazorise.Validations |
|
CurrentPage
Declaration
protected int CurrentPage
Field Value
CurrentSorting
Declaration
protected string CurrentSorting
Field Value
EditingEntity
Declaration
protected TUpdateViewModel EditingEntity
Field Value
| Type |
Description |
| TUpdateViewModel |
|
EditingEntityId
Declaration
protected TKey EditingEntityId
Field Value
EditModal
Declaration
protected Modal EditModal
Field Value
| Type |
Description |
| Blazorise.Modal |
|
EditValidationsRef
Declaration
protected Validations EditValidationsRef
Field Value
| Type |
Description |
| Blazorise.Validations |
|
Entities
Declaration
protected IReadOnlyList<TListViewModel> Entities
Field Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyList<T><TListViewModel> |
|
EntityActionsColumn
Declaration
protected DataGridEntityActionsColumn<TListViewModel> EntityActionsColumn
Field Value
GetListInput
Declaration
protected TGetListInput GetListInput
Field Value
| Type |
Description |
| TGetListInput |
|
NewEntity
Declaration
protected TCreateViewModel NewEntity
Field Value
| Type |
Description |
| TCreateViewModel |
|
TotalCount
Declaration
protected int? TotalCount
Field Value
Properties
AbpEnumLocalizer
Declaration
[Inject]
public IAbpEnumLocalizer AbpEnumLocalizer { get; set; }
Property Value
AppService
Declaration
[Inject]
protected TAppService AppService { get; set; }
Property Value
| Type |
Description |
| TAppService |
|
CreatePolicyName
Declaration
protected string CreatePolicyName { get; set; }
Property Value
DeletePolicyName
Declaration
protected string DeletePolicyName { get; set; }
Property Value
EntityActions
Declaration
protected EntityActionDictionary EntityActions { get; set; }
Property Value
HasCreatePermission
Declaration
public bool HasCreatePermission { get; set; }
Property Value
HasDeletePermission
Declaration
public bool HasDeletePermission { get; set; }
Property Value
HasUpdatePermission
Declaration
public bool HasUpdatePermission { get; set; }
Property Value
PageSize
Declaration
protected virtual int PageSize { get; }
Property Value
TableColumns
Declaration
protected TableColumnDictionary TableColumns { get; set; }
Property Value
UiLocalizer
Declaration
[Inject]
protected IStringLocalizer<AbpUiResource> UiLocalizer { get; set; }
Property Value
| Type |
Description |
| Microsoft.Extensions.Localization.IStringLocalizer<T><AbpUiResource> |
|
UpdatePolicyName
Declaration
protected string UpdatePolicyName { get; set; }
Property Value
Methods
CheckCreatePolicyAsync()
Declaration
protected virtual Task CheckCreatePolicyAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CheckDeletePolicyAsync()
Declaration
protected virtual Task CheckDeletePolicyAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CheckPolicyAsync(string)
Declaration
protected virtual Task CheckPolicyAsync(string policyName)
Parameters
| Type |
Name |
Description |
| string |
policyName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CheckUpdatePolicyAsync()
Declaration
protected virtual Task CheckUpdatePolicyAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CloseCreateModalAsync()
Declaration
protected virtual Task CloseCreateModalAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CloseEditModalAsync()
Declaration
protected virtual Task CloseEditModalAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
ClosingCreateModal(ModalClosingEventArgs)
Declaration
protected virtual Task ClosingCreateModal(ModalClosingEventArgs eventArgs)
Parameters
| Type |
Name |
Description |
| Blazorise.ModalClosingEventArgs |
eventArgs |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
ClosingEditModal(ModalClosingEventArgs)
Declaration
protected virtual Task ClosingEditModal(ModalClosingEventArgs eventArgs)
Parameters
| Type |
Name |
Description |
| Blazorise.ModalClosingEventArgs |
eventArgs |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
CreateEntityAsync()
Declaration
protected virtual Task CreateEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
DeleteEntityAsync(TListViewModel)
Declaration
protected virtual Task DeleteEntityAsync(TListViewModel entity)
Parameters
| Type |
Name |
Description |
| TListViewModel |
entity |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
GetDeleteConfirmationMessage(TListViewModel)
Declaration
protected virtual string GetDeleteConfirmationMessage(TListViewModel entity)
Parameters
| Type |
Name |
Description |
| TListViewModel |
entity |
|
Returns
GetEntitiesAsync()
Declaration
protected virtual Task GetEntitiesAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
GetExtensionTableColumns(string, string)
Declaration
protected virtual IEnumerable<TableColumn> GetExtensionTableColumns(string moduleName, string entityType)
Parameters
| Type |
Name |
Description |
| string |
moduleName |
|
| string |
entityType |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<T><TableColumn> |
|
MapToCreateInput(TCreateViewModel)
Declaration
protected virtual TCreateInput MapToCreateInput(TCreateViewModel createViewModel)
Parameters
| Type |
Name |
Description |
| TCreateViewModel |
createViewModel |
|
Returns
| Type |
Description |
| TCreateInput |
|
MapToEditingEntity(TGetOutputDto)
Declaration
protected virtual TUpdateViewModel MapToEditingEntity(TGetOutputDto entityDto)
Parameters
| Type |
Name |
Description |
| TGetOutputDto |
entityDto |
|
Returns
| Type |
Description |
| TUpdateViewModel |
|
MapToUpdateInput(TUpdateViewModel)
Declaration
protected virtual TUpdateInput MapToUpdateInput(TUpdateViewModel updateViewModel)
Parameters
| Type |
Name |
Description |
| TUpdateViewModel |
updateViewModel |
|
Returns
| Type |
Description |
| TUpdateInput |
|
OnAfterRenderAsync(bool)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
| Type |
Name |
Description |
| bool |
firstRender |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
Microsoft.AspNetCore.Components.ComponentBase.OnAfterRenderAsync(bool)
OnCreatedEntityAsync()
Declaration
protected virtual Task OnCreatedEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnCreatingEntityAsync()
Declaration
protected virtual Task OnCreatingEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnDataGridReadAsync(DataGridReadDataEventArgs<TListViewModel>)
Declaration
protected virtual Task OnDataGridReadAsync(DataGridReadDataEventArgs<TListViewModel> e)
Parameters
| Type |
Name |
Description |
| Blazorise.DataGrid.DataGridReadDataEventArgs<><TListViewModel> |
e |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnDeletedEntityAsync()
Declaration
protected virtual Task OnDeletedEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnDeletingEntityAsync()
Declaration
protected virtual Task OnDeletingEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Overrides
Microsoft.AspNetCore.Components.ComponentBase.OnInitializedAsync()
OnUpdatedEntityAsync()
Declaration
protected virtual Task OnUpdatedEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnUpdatingEntityAsync()
Declaration
protected virtual Task OnUpdatingEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OpenCreateModalAsync()
Declaration
protected virtual Task OpenCreateModalAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OpenEditModalAsync(TListViewModel)
Declaration
protected virtual Task OpenEditModalAsync(TListViewModel entity)
Parameters
| Type |
Name |
Description |
| TListViewModel |
entity |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
SearchEntitiesAsync()
Declaration
protected virtual Task SearchEntitiesAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
SetBreadcrumbItemsAsync()
Declaration
protected virtual ValueTask SetBreadcrumbItemsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.ValueTask |
|
SetEntityActionsAsync()
Declaration
protected virtual ValueTask SetEntityActionsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.ValueTask |
|
SetPermissionsAsync()
Declaration
protected virtual Task SetPermissionsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
SetTableColumnsAsync()
Declaration
protected virtual ValueTask SetTableColumnsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.ValueTask |
|
SetToolbarItemsAsync()
Declaration
protected virtual ValueTask SetToolbarItemsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.ValueTask |
|
UpdateEntityAsync()
Declaration
protected virtual Task UpdateEntityAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
UpdateGetListInputAsync()
Declaration
protected virtual Task UpdateGetListInputAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
Microsoft.AspNetCore.Components.IComponent
Microsoft.AspNetCore.Components.IHandleEvent
Microsoft.AspNetCore.Components.IHandleAfterRender
System.IDisposable
Extension Methods