我正在尝试首先使用带有 Scaffold-DbContext 的 DB 来构建 DB 模型。我得到的错误是:The types of the properties specified for the foreign key {'PARTNER_GROUP'} on entity type 'PARTNER' do not match the types of the properties in the principal key {'ID'} on entity type 'STATUS'.
STATUS 表与 PARTNER 表的唯一关系是通过其他一些关系,而 PARTNER_GROUP(nullable) 字段的唯一气味是 PARTNER 表中有一个 PARTNER_ID(not null) 主键具有不同的可空性。