Scaffold-DbContext creating model for table without a primary key

后端 未结 1 768
梦毁少年i
梦毁少年i 2021-02-18 18:24

I am trying to create DBcontext and corresponding model for a particular table in ASP.NET core MVC application. This table doesn\'t have any primary key.

I am running fo

1条回答
  •  你的背包
    2021-02-18 19:09

    Support for complex types (those that don't have an entity key) in EF Core is on the backlog: https://github.com/aspnet/EntityFramework/issues/246. That's why any attempt to reverse engineer a table without a primary key defined won't work at the moment.

    0 讨论(0)
提交回复
热议问题