迁移到efcore3.1时出现错误
此行代码显示错误:
entity.HasOne(d => d.ContentControl)
.WithMany(p => p.Content)
.HasForeignKey(d => d.ContentControlId)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("FK_Content_ContentControl");
错误:
错误CS7069对类型'ReferenceOwnershipBuilder <,>'的引用声称它是在'Microsoft.EntityFrameworkCore'中定义的,但找不到它
我该如何解决?