Base solution for your next web application
Open Closed

Implement Entity without Id? #336


User avatar
0
omital created

Hi. I Have an middle entity for [many to many ] relationship. how can I do this job with inheritance from Abp.Domain.Entities.Entity?


2 Answer(s)
  • User Avatar
    0
    theedge created

    Hi,

    Declare the Id property and make it a concatenation or similair of the compound key that exists for your many to many entity.

  • User Avatar
    0
    hikalkan created
    Support Team

    or override Id and add a NotMapped attribute. Also, you may not derive from Entity if it's not an entity.