Open Closed

Multiple Keys on a table #139

thomas kristensen created


We are using an existing database, and we are using multiple keys on several tables. One such table could be a product description:

KEYS ProductId, LngCode

Fields: Description.......

However Abp code first assumes a single key. How can we use multiple keys on a single table? Using natural keys is a powerfull way to avoid junk and duplicates in a table, by forcing a constraint check on the DB level.

1 Answer(s)
  • 0
    hikalkan created
    Support Team

    See <a class="postlink" href=""> ... issues/299</a>

    You can also use unique indexes instead of PK, for database level constraints.