Allow child classes of AbpCrudPageBase to control New Entity creation
Classes that inherit from AbpCrudPage base should be allowed to control instantiation of TCreateViewModel. This can allow for more control over initial state of new Entities, as well as enabling Copy EntityActions.
Basic implementation provided for explanation:
add a new method:
protected virtual async Task<TCreateViewModel> NewCreateViewModelAsync() { return new TCreateViewModel(); }
Change all instances of new TCreateViewModel() to call NewCreateViewModel() instead:
https://github.com/abpframework/abp/blob/c945df6d0dcc5a2191cca935ede8c979a983151e/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs#L331
hi
You can contribute the code. : )
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.