Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图从 SQLite 表中查询客户
我想要客户编号以某些数字开头的那些。
以下代码抛出一个错误,即 sqlite 没有方法 ToString。
我可以用 Cast 达到我的目标吗?如何?
返回 conn.Table().Where(v => v.kdnr.ToString().StartsWith(suchtext));
使用实体框架,这可能会起作用:
.Where(v=>SqlFunctions.StringConvert(v.kdnr).StartsWith(suchtext))
我不了解 SQLite 提供程序