外键名称不是标准表名+Id
builder.HasOne(m => m.SaleOrganization).WithMany().HasForeignKey(m => m.SaleOrganizationId);
posted on 2023-12-26 16:59 宁静致远. 阅读(12) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 宁静致远. Powered by .NET 9.0 on Kubernetes