修复 导航属性的关系,误将 ManyToOne 设置成了 OneToMany

This commit is contained in:
28810
2019-04-01 20:07:16 +08:00
parent 1132a094ae
commit 5380a9df00
2 changed files with 4 additions and 4 deletions

View File

@ -545,7 +545,7 @@ namespace FreeSql.Internal {
}
if (nvref.Columns.Count > 0 && nvref.RefColumns.Count > 0) {
nvref.RefEntityType = tbref.Type;
nvref.RefType = isOnoToOne ? TableRefType.OneToOne : TableRefType.OneToMany;
nvref.RefType = isOnoToOne ? TableRefType.OneToOne : TableRefType.ManyToOne;
trytb.AddOrUpdateTableRef(pnv.Name, nvref);
}