更新时间:2023-02-13 14:39:36
EF要求你有许多操作的唯一索引。
EF requires that you have a unique index for many operations.
尝试添加标识字段(主键)到表。删除并重新创建你的模型,然后重试。
Try adding an identity field (primary key) to your table. Delete and recreate your model and try again.
编辑:
看起来你是从一个控制台应用程序运行此。
It looks like you are running this from a console app.
EDIT2:
接下来的事情尝试: