Update exp to sql

This commit is contained in:
sunkaixuna 2022-01-18 11:46:18 +08:00
parent ce877b3411
commit 61862fcde1
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace OrmTest
Job = new UnitJobClass { Company = a.Company, Work = a.Work }
}
).ToList();
Check.Exception(list.First().Job.Company != "1", "unit error");
}
public class Unit06

View File

@ -621,7 +621,7 @@ namespace SqlSugar
{
dbColumnName = mappingInfo.DbColumnName;
}
if (shortName != null && shortName.ObjToString().Contains(this.Context.SqlTranslationLeft))
if (shortName != null && shortName.ObjToString().Contains(this.Context.SqlTranslationLeft)&&this.Context.IsSingle)
{
asName = this.Context.GetTranslationText(item.Type.Name + "." + propertyName);
}