- ABP Framework version: v8.0.5
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace: Extra DB Set Added for existing entity
- Steps to reproduce the issue:
- Run ABP Suite
- Select any Master existing entity
- Select all the checkbox option without Custom Change
- Click on Save & Generate button
It is adding and extra DBSet for an exisitng entity and that cause a build error. I have tried by removing an extra DBSet as well but after that started getting and error in unit test. Please keep this on high priority as this keeps holding development work
5 Answer(s)
-
0
Hi EngincanV, do you have any update on this?
Thank you.
-
0
Hi, I could not reproduce it. Can you explain your steps in detail with entity metadata if possible?
-
0
Hi Engincan, Thank you for your reply. Please follow the below steps
- Create project with 7.0.4 version
- Add one entity with few columns and UI using abp suite
- Now upgrade your project to version 8.0.5
- Open abp suite and modify the existing entity which was created in version 7.0.4 & add one more column
- Keep all the options check in abp suite except "Custom Change" in abp suite 8.0.5.
- It will gives an error while updating database.
Thank you.
-
0
Hi Engincan, Thank you for your reply. Please follow the below steps
- Create project with 7.0.4 version
- Add one entity with few columns and UI using abp suite
- Now upgrade your project to version 8.0.5
- Open abp suite and modify the existing entity which was created in version 7.0.4 & add one more column
- Keep all the options check in abp suite except "Custom Change" in abp suite 8.0.5.
- It will gives an error while updating database.
Thank you.
Hi, thanks for the explanation. I reproduced the problem and will fix it asap. Closing the question because I created an internal issue to track the problem and refunded your ticket.
In the meantime, you can remove the duplicated dbset for a quick workaround.
Regards.
-
0
Hi Engincan, Thank you for your reply.
Yes I am removing the duplicate dbset for now.
Please also check because I am also getting an error if I generate the unit test for an existing entity which were created before upgrade.
I am not reopening the ticket, but please try to follow the same steps with generating unit test and you will get the error. Please keep track of it with your internal issue too.
Thank you.