Base solution for your next web application
Open Closed

Remove entities #8625


User avatar
0
ESTeam created

Hi Support,

What are the best steps to remove an entity?

Best regards, André

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can manually remove DbSet<YourEntity> from dbcontext. Add migrations and update the database later.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ESTeam created

    Also, is it not necessary to manually remove Dto's, AppServices, etc.?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    1
    ryancyq created
    Support Team

    It is recommended that version control (e.g. Git) is being setup before working with ANZ so that you can easily revert any changes you made.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)