mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Update Core
This commit is contained in:
parent
f16a9080ca
commit
1003691b6f
@ -210,7 +210,7 @@ namespace SqlSugar
|
|||||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||||
{
|
{
|
||||||
var sqlobj = this.Context.Insertable(insert).AS(tableName).ToSql();
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ namespace SqlSugar
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
return GetThrowMessage("Entity mapping error.{0}",
|
return GetThrowMessage("Entity mapping error.{0}",
|
||||||
"实体与表映射出错。{0}");
|
"Select 实体与表映射出错,可以注释实体类中的字段排查具体哪一个字段。{0}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user