mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update .net core project
This commit is contained in:
parent
b86be3e8fd
commit
fe3d8ce80f
@ -240,7 +240,7 @@ namespace SqlSugar
|
||||
var identityKeys = GetIdentityKeys();
|
||||
if (identityKeys.Count == 0)
|
||||
{
|
||||
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey = true && it.UnderType == UtilConstants.LongType);
|
||||
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey && it.UnderType == UtilConstants.LongType);
|
||||
if (snowColumn!=null)
|
||||
{
|
||||
var id = this.ExecuteReturnSnowflakeId();
|
||||
@ -305,7 +305,7 @@ namespace SqlSugar
|
||||
var identityKeys = GetIdentityKeys();
|
||||
if (identityKeys.Count == 0)
|
||||
{
|
||||
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey = true && it.UnderType == UtilConstants.LongType);
|
||||
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey&& it.UnderType == UtilConstants.LongType);
|
||||
if (snowColumn != null)
|
||||
{
|
||||
var id =await this.ExecuteReturnSnowflakeIdAsync();
|
||||
|
Loading…
Reference in New Issue
Block a user