var result = from с in dal.context.Funds select new { Name = c.CODE Price = c.Price };
var result = from d in dal.context.Funds select new {Name = c.CODE Price = c.Price};
2 个解决方案
#1
I'm not a big VB user, but something like:
我不是一个很大的VB用户,但是:
Dim result = From c In dal.context.Funds _
Select c.CODE, c.Price
To rename it, you might need With
(at a guess):
要重命名它,您可能需要With(猜测):
Select New With {.Name = c.CODE, .Price = c.Price}
#2
#1
I'm not a big VB user, but something like:
我不是一个很大的VB用户,但是:
Dim result = From c In dal.context.Funds _
Select c.CODE, c.Price
To rename it, you might need With
(at a guess):
要重命名它,您可能需要With(猜测):
Select New With {.Name = c.CODE, .Price = c.Price}