- 优化 自动 IsIgnore 处理;

This commit is contained in:
2881099
2020-11-23 22:12:18 +08:00
parent d2d3870de0
commit 4b875eaf7c
4 changed files with 1341 additions and 1 deletions

View File

@ -524,6 +524,19 @@ namespace FreeSql.Internal
var isLazy = vp != null && vp.Item1 != null && !string.IsNullOrEmpty(trytbTypeLazyName);
AddTableRef(common, trytb, pnv, isLazy, vp, cscode);
if (trytb.GetTableRef(pnv.Name, false) == null)
{
trytb.ColumnsByCsIgnore.Add(pnv.Name, new ColumnInfo
{
Table = trytb,
CsName = pnv.Name,
CsType = pnv.PropertyType,
Attribute = new ColumnAttribute
{
IsIgnore = true
}
});
}
}
if (cscode?.Length > cscodeLength)
{