Update Reportable

This commit is contained in:
sunkaixuan 2024-02-05 15:11:40 +08:00
parent c4377fa7c2
commit 03b11430bf
2 changed files with 15 additions and 1 deletions

View File

@ -235,6 +235,20 @@ namespace SqlSugar
}); });
return result; return result;
} }
else if (type.IsIn(typeof(Guid)))
{
Expression<Func<SingleColumnEntity<object>, object>> exp = it => Convert.ToDecimal(it.ColumnName);
var result = queryBuilder.LambdaExpressions.DbMehtods.ToGuid(new MethodCallExpressionModel()
{
Args = new List<MethodCallExpressionArgs>() {
new MethodCallExpressionArgs(){
IsMember=true,
MemberName= formatBuilder.FormatValue(value)
}
}
});
return result;
}
else if (type.IsIn(typeof(DateTime))||type.Name== "DateOnly") else if (type.IsIn(typeof(DateTime))||type.Name== "DateOnly")
{ {
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle) if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)

View File

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.139-preview01</version> <version>5.1.4.141-preview03</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>