Hello everyone,
Please an example of how to build an enum by populating the data of a field in a database.
Thanks in advanced.
3 Answer(s)
-
0
Hi,
Do you mean something like this https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/MultiTenancy/Payments/SubscriptionPayment.cs#L14 ? If not, could you explain what do you need in details ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @ismcagdas,
For example, I need to show in the UI a combobox with the list of cities populated from city table . Additional that I can apply filters on the records to show.
When creating or editing a record of the customer table I can assign the city that corresponds to it
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @rbreton,
You can find samples of this in AspNet Zero. For example, check Roles filter combobox on the user list page. You can use same combobox in the edit modal as well.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)