mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update exp to sql
This commit is contained in:
parent
8f869b2d0a
commit
24d63c09c7
@ -292,6 +292,14 @@ namespace SqlSugar
|
||||
break;
|
||||
case ResolveExpressType.FieldSingle:
|
||||
case ResolveExpressType.FieldMultiple:
|
||||
if (express.Method.Name == "ToString" && express.Object!=null&&express.Object?.Type == UtilConstants.DateType)
|
||||
{
|
||||
var format = (args[0] as ConstantExpression).Value+"";
|
||||
var value = GetNewExpressionValue(express.Object);
|
||||
var dateString = GeDateFormat(format, value);
|
||||
base.AppendValue(parameter, isLeft, dateString);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user