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

PersistPoco基类对自定义查询实体返回结果显示了的问题 #68

Closed
2044545827 opened this issue Sep 18, 2019 · 5 comments
Closed
Labels
question Further information is requested

Comments

@2044545827
Copy link

定义一个model继承PersistPoco后,时使用DC.RUSQL自定义查询,反回结果给LIST无效,提示无数据的问题

@liuliang-wt
Copy link
Collaborator

发一下你ListVM的代码看看

@2044545827
Copy link
Author

2044545827 commented Sep 19, 2019 via email

@liuliang-wt
Copy link
Collaborator

你这最后不是returen req么,也没returen query啊。。。
另外,虽然你这样写也可以,但是如果是sql语句或者存储过程,应该重写GetCommand方法,直接返回一个command,你可以参考文档中使用存储过程的部分

@2044545827
Copy link
Author

2044545827 commented Sep 19, 2019 via email

@liuliang-wt
Copy link
Collaborator

哦,你这个可能是因为如果GetSearchQuery的对象是一个PersistPoco,框架会自动在你返回的查询语句里面拼接一个where(x=>x.IsValid == true)

@liuliang-wt liuliang-wt added the question Further information is requested label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants