Skip to content

Commit

Permalink
Update expression-function.md
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 authored Nov 22, 2024
1 parent 2f4eb4a commit 80fbdbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/guide/expression-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ fsql.Select<T>()
.Where(a => a.CreateTime.Between(DateTime.Today, DateTime.Today.AddDays(1)))
.ToList();
//正常用法应该是这样
fsql.Select<T>()
.Where(a => a.CreateTime.Subtract(DateTime.Today).TotalSeconds > 0)
.ToList();
//datediff(second, date1, date2)
```

> SqlServer nvarchar/varchar 已兼容表达式解析,分别解析为:N'' 和 '',优化索引执行计划;
Expand Down

0 comments on commit 80fbdbf

Please sign in to comment.