Open Closed

how can we insert only unique name into table from abp suite #764


User avatar
0
safi created

Hi,

I am using abp core latest version and using blazor so created a table from abp suite and now I want to insert only unique names into that entity to prevent duplicate names into db so is there any wany to handle this thing from abp suite.

Thanks,


1 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @safi,

    Suite doesn't have that feature.

    You can check if the given value already exist before inserting a new record to database. Then if the value already exists, you can throw a BusinessException to warn the user.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13