使用EFCore5.0,我有一个没有PK的实体(来自一个SQL视图) OrderInfo,它有一个列OrderDetailId。我还有一个实体DiscountOrder,它是来自OrderDetailId和DiscountId列的PK。public class OrderInfo public int OrderDetailId { get; set; }
public virtual ICollection<DiscountOrder> DiscountOrders { get; se
我正在用MySQL DB在.Net Core2.0中开发WEB。我正在尝试搭建MySQL DB。我已经跟随了,但当我发射脚手架命令时,我得到了下面提到的两个错误,如果我做错了什么,请让我知道。System.NotImplementedException: The method or operation is not implemented.
at MySql.Data.EntityFrameworkCore.Scaffolding.Internal.MySQLDatabaseModelFactory.Cr