Freesql 版本3.2.500 数据库Postgres9 IncludeMany+ManyToMany如果使用了AsTable 中间表song_tag没有使用AsTable处理表名导致报错` System.Exception : 42P01: relation "song_tag" does not exist` ``` freeSql.CodeFirst.SyncStructure(typeof(Song), "1_song"); freeSql.CodeFirst.SyncStructure(typeof(Song_tag), "1_song_tag"); freeSql.CodeFirst.SyncStructure(typeof(Tag), "1_tag"); //不使用AsTable没问题 var list = freeSql.Select<Song>() .IncludeMany(a => a.Tags) .ToList(); //使用AsTable没有找指定的关联表 在then中指定也没起作用 var list1 = freeSql.Select<Song>() .AsTable((type, oname) => $"1_{oname}") .IncludeMany(a => a.Tags,then=>then.AsTable((type, oname) => $"1_{oname}")) .ToList(); //这里报异常 System.Exception : 42P01: relation "song_tag" does not exist ```
Activity
2881099 commentedon May 13, 2022
目前 song AsTable 可以传播到 then 以下所有查询,但是没有传播到 song_tag
- 修复 AsTable ManyToMany IncludeMany 无效的问题;#1103
v3.2.640 #1103 #1100 #1099 #1098 #1097
- 修复 AsTable 子查询未传播的问题;#1103
- 修复 AsTable 子查询未传播的 bug;#1103
v3.2.666-preview20220609 #1103 #278
v3.2.662 #1145 #1144 #1140 #1103 #1141 #1147 #1154 #278