diff --git a/Src/Asp.Net/SqlSugar/Abstract/Reportable/ReportableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/Reportable/ReportableProvider.cs index 7783d997d..88b19296b 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/Reportable/ReportableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/Reportable/ReportableProvider.cs @@ -235,6 +235,20 @@ namespace SqlSugar }); return result; } + else if (type.IsIn(typeof(Guid))) + { + Expression, object>> exp = it => Convert.ToDecimal(it.ColumnName); + var result = queryBuilder.LambdaExpressions.DbMehtods.ToGuid(new MethodCallExpressionModel() + { + Args = new List() { + new MethodCallExpressionArgs(){ + IsMember=true, + MemberName= formatBuilder.FormatValue(value) + } + } + }); + return result; + } else if (type.IsIn(typeof(DateTime))||type.Name== "DateOnly") { if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)