mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-19 06:29:33 +08:00
Update .net core project
This commit is contained in:
parent
b3aa899cd1
commit
1190589f39
@ -136,6 +136,11 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public virtual long ExecuteReturnSnowflakeId()
|
public virtual long ExecuteReturnSnowflakeId()
|
||||||
{
|
{
|
||||||
|
if (this.InsertObjs.Length > 1)
|
||||||
|
{
|
||||||
|
return this.ExecuteReturnSnowflakeIdList().First();
|
||||||
|
}
|
||||||
|
|
||||||
var id = SnowFlakeSingle.instance.getID();
|
var id = SnowFlakeSingle.instance.getID();
|
||||||
var entity = this.Context.EntityMaintenance.GetEntityInfo<T>();
|
var entity = this.Context.EntityMaintenance.GetEntityInfo<T>();
|
||||||
var snowProperty=entity.Columns.FirstOrDefault(it => it.IsPrimarykey && it.PropertyInfo.PropertyType == UtilConstants.LongType);
|
var snowProperty=entity.Columns.FirstOrDefault(it => it.IsPrimarykey && it.PropertyInfo.PropertyType == UtilConstants.LongType);
|
||||||
|
@ -324,6 +324,11 @@ namespace SqlSugar
|
|||||||
var dateString = GeDateFormat(format, value);
|
var dateString = GeDateFormat(format, value);
|
||||||
base.AppendValue(parameter, isLeft, dateString);
|
base.AppendValue(parameter, isLeft, dateString);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var value = GetNewExpressionValue(express,this.Context.IsJoin?ResolveExpressType.WhereMultiple: ResolveExpressType.WhereSingle);
|
||||||
|
base.AppendValue(parameter, isLeft, value);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user