EF core many to many configuration not working with Fluent API

后端 未结 3 1849
粉色の甜心
粉色の甜心 2021-02-20 01:07

I am having trouble with understanding and implementing a many to many repationship using the FLuent API and EF Core.

I have looked at this question and set up my relati

3条回答
  •  北海茫月
    2021-02-20 01:11

    You should add the Clients property to the Job class too:

    public class Job : IEntityBase
    {
       public int Id { get; set; }
       public ICollection Clients{ get; set; }
    }
    

    Then everything should be in order.

提交回复
热议问题