Open Closed

A question about Abp Suite - Load entity from database #4919


User avatar
0
vijay.nallala created

Hello everyone,

We are working on new projects using Abp latest version. ABP Suite done a wonderful job load entities from database and creating UI and model class. However, our existing db column naming convension is uppercase with underscore such as "HELLO_WORLD". Is there any way that we can convert that to camel case that work better with C# ? For example: HELLO_WORLD -> HelloWorld, NEW_FEATURE -> NewFeature.

  • ABP Framework version: 7.11
  • UI type: Angular
  • DB provider: EF Core

Thanks, TuTong


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can modify it in the suite:

  • User Avatar
    0
    vijay.nallala created

    Thank you for pointing that out. We are dealing with tables that have hundreds of columns. Is there anyway, we can automate that process?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    ABP will create an entity JSON file under the .suite/entities

    You can create a simple console application to read the json file and change the property format.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09