mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-20 12:58:15 +08:00
修复 导航属性的关系,误将 ManyToOne 设置成了 OneToMany
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user