Dear support,
We use Zero 8.7. How do we customise DynamicParameter entity to add more properties? such as IsDeleted, auditing timstamps, and other our own property.
In the Zero template. common entity like "User" has provioded a way to customise. For other entities, what's the recommended way to customise?
Thanks! Richard
4 Answer(s)
-
0
Hi @arctechnicalteamaus,
You can read https://aspnetboilerplate.com/Pages/Documents/Dynamic-Parameter-System for details. You need to first define your entity like below in https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/DynamicEntityParameters/AppDynamicEntityParameterDefinitionProvider.cs
context.Manager.AddEntity<MyEntity>();Then, you can add an item to actions of your table just like we do for User list. There is also another approach to use a new page, see related document for your project type;
https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Feature-Dynamic-Entity-Parameters-Mvc https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Feature-Dynamic-Entity-Parameters-Angular
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thank you!
We got all these working.
My question is to enhance the DynamicParameter entities themself. We have an ETL process to produce a data warehouse, relies on LastModificationTime. We need to transfer dynamic values to the data warehouse, but DynamicParameter entities don't have any time stamps. How can we add?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
You can extend the entities according to this document https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Extending-Existing-Entities
After doing that, you can override related methods in;
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/DynamicEntityParameters/DynamicParameterStore.cs or https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/DynamicEntityParameters/DynamicParameterValueStore.cs
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thank you very much!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)