mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-26 01:45:49 +08:00
优化单元测试速度
This commit is contained in:
@@ -270,7 +270,7 @@ namespace FreeSql.Tests {
|
||||
g.mysql.Aop.ParseExpression = (s, e) => {
|
||||
if (e.Expression.NodeType == ExpressionType.Call) {
|
||||
var callExp = e.Expression as MethodCallExpression;
|
||||
if (callExp.Object.Type == typeof(DateTime) &&
|
||||
if (callExp.Object?.Type == typeof(DateTime) &&
|
||||
callExp.Method.Name == "ToString" &&
|
||||
callExp.Arguments.Count == 1 &&
|
||||
callExp.Arguments[0].Type == typeof(string) &&
|
||||
|
||||
Reference in New Issue
Block a user