views:

78

answers:

0

Hello,

  • "System object" is a table & its key is auto increament
  • "Security entity" view that get id get Id from "System object"
  • "User" is a table has a many-to-many relation with "System Object"
  • "Role" is a view

In the model:

  • Security Entity ..... inharits from System object
  • user ..... inharits from Security entity
  • Role ..... inharits from Security Entity

when I create new User OR new role (Using my context) It raises this exception:

A value shared across entities or associations is generated in more than one location