如何在 DBLinq.MySQL 中使用函数/变量
这是我的查询:
SELECT IF(@@old_passwords, Old_Password(?), Password(?))=`password` AS pass
FROM mysql.user WHERE User=?
我可以将其转换为 Linq,还是必须从数据上下文中提取连接并以旧方式执行?我能找到的所有文档都是关于简单查询的:选择;加入;聚合体。
This is my query:
SELECT IF(@@old_passwords, Old_Password(?), Password(?))=`password` AS pass
FROM mysql.user WHERE User=?
Can I translate this to Linq, or do I have to just extract the connection from the data context and do it the old way? All the documentation I can find is about simple queries: selects; joins; aggregates.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论