User in Entity type MVC5 EF6

后端 未结 2 630
南方客
南方客 2020-11-27 03:49

I have created a class in MVC5, where I want a primary owner of the content and then I want to have some editors for the content:

public class Content
{
             


        
2条回答
  •  感动是毒
    2020-11-27 04:34

    I had the same problem and I found that I had not called

     base.OnModelCreating(modelBuilder);
    

    in my DbModel

提交回复
热议问题