[fix] 修复对容器类型的element type为external type时,生成的cs代码错误对external type调用?.Resove的bug

main
walon 2022-09-14 12:20:20 +08:00
parent ad4acf337f
commit 81295cbfe1
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ namespace Luban.Job.Cfg.Defs
}
public bool HasRecursiveRef => (CType is TBean tb && HostType.AssemblyBase.GetExternalTypeMapper(tb) == null)
|| CType.ElementType?.IsBean == true;
|| (CType.ElementType is TBean eb && HostType.AssemblyBase.GetExternalTypeMapper(eb) == null);
public string CsRefTypeName => RefType.Apply(CsDefineTypeName.Ins);