mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 IncludeMany ManyToMany,若中间表未使用 延时加载 属性功能时,出现的 bug;
This commit is contained in:
@ -658,7 +658,7 @@ namespace FreeSql.Internal.CommonProvider {
|
||||
var field = new StringBuilder();
|
||||
var read = new ReadAnonymousTypeInfo();
|
||||
read.ConsturctorType = ReadAnonymousTypeInfoConsturctorType.Properties;
|
||||
read.Consturctor = tbrefMid.TypeLazy.GetConstructor(new Type[0]);
|
||||
read.Consturctor = (tbrefMid.TypeLazy ?? tbrefMid.Type).GetConstructor(new Type[0]);
|
||||
read.Table = tbrefMid;
|
||||
foreach (var col in tbrefMid.Columns.Values) {
|
||||
if (tbref.MiddleColumns.Where(a => a.CsName == col.CsName).Any() == false) continue;
|
||||
|
Reference in New Issue
Block a user