var result = 来自 с in dal.context.Funds 选择新的 { 名称 = c.CODE 价格 = c.价格 };
最佳答案
我不是 VB 的大用户,但像这样:
Dim result = From c In dal.context.Funds _
Select c.CODE, c.Price
要重命名它,您可能需要 With
(猜测):
Select New With {.Name = c.CODE, .Price = c.Price}
关于c# - 如何将 c# 代码转换为 vb.net (Linq)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/423598/