var result = from с in dal.context.Funds select new { Name = c.CODE Price = c.Price };
如何将c#代码转换成vb.net(Linq)?
原标题:
问题回答
我不是一个使用VB很多的人,但类似于:
Dim result = From c In dal.context.Funds _
Select c.CODE, c.Price
要重新命名它,你可能需要使用With
(猜测)。
Select New With {.Name = c.CODE, .Price = c.Price}
我之前使用过反编译工具进行语言转换。
这篇文章展示了它也可以帮助 LINQ ...
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding