Open Closed

Check data if exist before insert/Update #752

Leaf created

Check the docs before asking a question: Check the samples, to see the basic tasks: The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:


What is the best way to check data is exist or not before insert/ update then if the data is exist then will show message box the data already exists.

Thank you.

1 Answer(s)
  • 0
    maliming created
    Support Team


    Use the repository to query data, you can throw a exception then the ui will automatically show the messages.