Hi, ABP provides an Error Handling System, which allow you to customize error message and the relevant HTTP status code. Please check the Exception Handling documentation. In the documentation, you can see how to set custom HTTP status code for certain exception and how to customize error message etc.
For the exception that you shared, it's not handled by ABP it seems, so we need further info about the exception, where it's thrown, the related endpoint etc.
Best regards.
Hi, can you share the "GovernmentSupportProgram.json" file under the .suite/entities folder, so I can check the related metadata of the entity to better assist you.
Regards..
Thanks for the answer.
Okay, that means I need to develop my own theme. How can I build an ABP Theme? Is there any startup project for that? Would the Basic Theme template on GitHub help? I just searched the repository after your response. https://github.com/abpframework/abp/tree/dev/modules/basic-theme/src. Some clarification is welcome. Thanks in advance!
Hi, to implement a new theme, we suggest going with Basic Theme and then customizing the template to your needs. You can always refer to Implementing a Theme section in the relevant documentation.
For the source code of the Basic Theme, please check -> https://github.com/abpframework/abp/tree/dev/modules/basic-theme
Regards.
Hi, eShopOnAbp is an open source project, which you can check at https://github.com/abpframework/eShopOnAbp. We upgraded the eShopOnAbp to v9.0, but if you want to check the project in v8.x, you can check through https://github.com/abpframework/eShopOnAbp/tree/6e210ead8ac1067e60f25cdff0eda017c8bff34c (which is v8.3.1)
Best Regards.
Hi, I will create an internal issue for your request. We can create an article to show the related steps. In the meantime, you can use ABP Suite to generate the related entities from your database tables. Please refer to https://abp.io/docs/9.0/suite/generating-entities-from-an-existing-database-table, it can be helpful (also it might be what you are looking for) until we create the related article.
Best regards.
Hi, @EngincanV thanks for the response.
I tested the change with the steps you mentioned and it did work, that is, the table created in the previous module is no longer created again in the migration for the new module.
However, I noticed that this only worked when I ran the command to remove the latest migration twice (as you instructed), and as expected that removes the last two migrations, even though the second to last migration it removes has no relation to the latest one or its tables. I don't understand why that is the case, could you please provide an explanation?
Thanks in advance.
Hi, sometimes when adding a new migration there might occur some sync problems between following migrations (due to old assemblies, even the command build the efcore project still some assemblies may old assemblies for example) and it seems this was the case in your example, because your configuration was right.
So by reverting the last two migration, you have sync the migrations and so the efcore could generate a new migration from the right point and sync itself.
Support, please support.
Hi, since the question was asked by @bmulinari and you have added the last response, questions become invisible from our dashboard. This is the reason why we could not prioritize to answer this question. Sorry for the late response.
@bmulinari can you please send the project again, because when I try to download the application, it gives a 502 bad gateway error? I have reviewed it before but I could not find it in my workspace for now.
I will prioritize it and will fix your problem when you send your email. So, please let me know.
Regards.
@EngincanV, I have sent the e-mail again with the code.
Hi, thanks for sharing your project. I have sent an email to you with a solution to your problem:
Please check your mail and let me know if you need further assistant. Regards.
Support, please support.
Hi, since the question was asked by @bmulinari and you have added the last response, questions become invisible from our dashboard. This is the reason why we could not prioritize to answer this question. Sorry for the late response.
@bmulinari can you please send the project again, because when I try to download the application, it gives a 502 bad gateway error? I have reviewed it before but I could not find it in my workspace for now.
I will prioritize it and will fix your problem when you send your email. So, please let me know.
Regards.
This ticket has been open over 2 weeks, we would appreciate some feedback
Hi, sorry for the late response. I will write you back soon.
Regards.