mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update unit test
This commit is contained in:
parent
b0db25a094
commit
71849c5688
@ -160,6 +160,7 @@ namespace OrmTest
|
||||
{
|
||||
throw new Exception("unit query error");
|
||||
}
|
||||
db.Queryable<Order>().Where(it => SqlFunc.Round(it.Id, 2) == SqlFunc.Abs(it.Id)).ToList();
|
||||
}
|
||||
|
||||
|
||||
|
@ -487,7 +487,8 @@ namespace SqlSugar
|
||||
public string Round(MethodCallExpressionModel model)
|
||||
{
|
||||
var parameter = model.Args[0];
|
||||
return string.Format(" ROUND({0},{1}) ", parameter.MemberName);
|
||||
var parameter2= model.Args[1];
|
||||
return string.Format(" ROUND({0},{1}) ", parameter.MemberName, parameter2.MemberName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ namespace SqlSugar
|
||||
|
||||
|
||||
public static T Abs<T>( T value) { throw new NotSupportedException("Can only be used in expressions"); }
|
||||
public static string Round<T>(T value,int precision) { throw new NotSupportedException("Can only be used in expressions"); }
|
||||
public static T Round<T>(T value,int precision) { throw new NotSupportedException("Can only be used in expressions"); }
|
||||
|
||||
/// <summary>
|
||||
/// Subquery
|
||||
|
Loading…
Reference in New Issue
Block a user