Many to Many relationship in Asp.Net MVC 5 with Identity table and Custom table

前端 未结 3 1195
野的像风
野的像风 2021-01-06 16:46

I\'m trying to make a relationship between the Users from the table generated by Asp.Net Identity with my own table. The relationship must be many to many, since many Users

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-06 17:26

    Error text is not related to your many-to-many relationship. It tips that other built-in entities are not configured properly. So, It would be nice if you provided full definition of your custom DbContext-class and how it is configured.

    UPDATE

    As i understood u are working with two different contexts. You must work with the same context, cause of u are extending IdentityContext, creating relationships and adding custom types. So problem then will be resolved itself. Hope, this will help.

提交回复
热议问题