mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-20 12:58:15 +08:00
- 修改 IncludeMany ManyToMany ET 缓存的 bug;
- 完善 IncludeMany 联合键处理; - 完善 Include/IncludeMany 单元测试; - 修复 Include 延时加载 ManyToOne/OneToOne,当值为 null 时,仍然会查询一次数据;
This commit is contained in:
@ -605,7 +605,10 @@ namespace FreeSql.Internal {
|
||||
.Append(" }\r\n");
|
||||
}
|
||||
if (vp.Item3) { //set 重写
|
||||
cscode.Append(" set => base.").Append(pnv.Name).AppendLine(" = value;");
|
||||
cscode.Append(" set {\r\n")
|
||||
.Append(" base.").Append(pnv.Name).AppendLine(" = value;")
|
||||
.Append(" __lazy__").Append(pnv.Name).AppendLine(" = true;")
|
||||
.Append(" }\r\n");
|
||||
}
|
||||
cscode.AppendLine(" }");
|
||||
}
|
||||
|
Reference in New Issue
Block a user