gpt4 book ai didi

C# Linq to VB.NET(不是 From In Where ... 查询样式)

转载 作者:太空宇宙 更新时间:2023-11-03 11:53:41 26 4
gpt4 key购买 nike

如何在 VB.NET 中转换这种表达式?我晕了!

bool exists=repo.Exists<Post>(x=>x.Title=="My Title");

这是来自此处的 SubSonic 文档:http://subsonicproject.com/docs/Using_SimpleRepository

提前致谢!

最佳答案

Dim exists = repo.Exists(Of Post)(Function(x) x.Title = "My Title")

关于C# Linq to VB.NET(不是 From In Where ... 查询样式),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1324891/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com