mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
optimize internal methods
This commit is contained in:
parent
63dccf3e4c
commit
103ae63e9f
@ -44,7 +44,8 @@ namespace FreeSql
|
||||
case DataType.KingbaseES:
|
||||
case DataType.OdbcKingbaseES:
|
||||
case DataType.ShenTong:
|
||||
if (_tableIdentitys.Length == 1 && _table.Primarys.Length == 1)
|
||||
case DataType.Firebird: //firebird 只支持单条插入 returning
|
||||
if (_tableIdentitys.Length == 1)
|
||||
{
|
||||
await DbContextFlushCommandAsync();
|
||||
var idtval = await this.OrmInsert(data).ExecuteIdentityAsync();
|
||||
@ -68,7 +69,7 @@ namespace FreeSql
|
||||
}
|
||||
return;
|
||||
default:
|
||||
if (_tableIdentitys.Length == 1 && _table.Primarys.Length == 1)
|
||||
if (_tableIdentitys.Length == 1)
|
||||
{
|
||||
await DbContextFlushCommandAsync();
|
||||
var idtval = await this.OrmInsert(data).ExecuteIdentityAsync();
|
||||
|
@ -44,6 +44,7 @@ namespace FreeSql
|
||||
case DataType.KingbaseES:
|
||||
case DataType.OdbcKingbaseES:
|
||||
case DataType.ShenTong:
|
||||
case DataType.Firebird: //firebird 只支持单条插入 returning
|
||||
if (_tableIdentitys.Length == 1)
|
||||
{
|
||||
DbContextFlushCommand();
|
||||
|
Loading…
x
Reference in New Issue
Block a user