Update Core

This commit is contained in:
sunkaixuan 2022-05-15 18:00:40 +08:00
parent f16a9080ca
commit 1003691b6f
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ namespace SqlSugar
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
{
var sqlobj = this.Context.Insertable(insert).AS(tableName).ToSql();
id = this.Context.Ado.GetInt(sqlobj.Key+ " "+ entityInfo.Columns.First(it=>isIdentity).DbColumnName, sqlobj.Value);
id = this.Context.Ado.GetInt(sqlobj.Key+ " "+ this.InsertBuilder.Builder.GetTranslationColumnName(entityInfo.Columns.First(it=>isIdentity).DbColumnName), sqlobj.Value);
}
else
{

View File

@ -20,7 +20,7 @@ namespace SqlSugar
get
{
return GetThrowMessage("Entity mapping error.{0}",
"实体与表映射出错。{0}");
"Select 实体与表映射出错,可以注释实体类中的字段排查具体哪一个字段。{0}");
}
}