Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法进行范围查询 #13

Open
anyls opened this issue Jul 11, 2019 · 4 comments
Open

无法进行范围查询 #13

anyls opened this issue Jul 11, 2019 · 4 comments

Comments

@anyls
Copy link

anyls commented Jul 11, 2019

.Where(t=>t.date>'2019-01-01' && t.data<'2019-07-01')

@SkyChenSky
Copy link
Owner

时间请用datetime类型

@anyls
Copy link
Author

anyls commented Jul 12, 2019

时间请用datetime类型

是datetime类型 这是最终解析出来的查询条件 WHERE (([CreateTime] > @CreateTime) AND ([CreateTime] < @CreateTime)) ',N'@CreateTime datetime',@CreateTime='2018-09-12 00:00:00'

@hua1122
Copy link

hua1122 commented Aug 16, 2019

范围查询扩展:
image
image
image

image

@hua1122
Copy link

hua1122 commented Aug 16, 2019

还会有一个问题,如果拉姆达中对象的字段多次出现的话会发生解析异常。如:where = where.And(w => w.startTime>= value1);where = where.And(w => w.startTime<= value2);。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants