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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19