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.
我正在我的项目中实现 linq2db,目前我正在尝试进行更新,但我被困在这个问题上。现在我可以看到类中没有可用的扩展方法,但是在 github 上的演示和源代码中,我似乎找不到任何与我正在做的不同的东西。所以不知道如何做到这一点。
错误:
桌子:
确保你using LinqToDB;在班上名列前茅。
using LinqToDB;
此语法有效:
两个 lambdas一个用于属性选择器,第二个用于value。
db.Product.Where(x => x.ProductID == 1).Set(x => x.Name, x => "ABC");
使用这种方法你会遇到困难IntelliSense,除非你对两个空的lambadas Set(x=> , x=>),然后IntelliSense出现。
IntelliSense
Set(x=> , x=>)