LINQ vb.net - Sample Queries实例

时间:2021-04-04 07:01:47
【文件属性】:

文件名称:LINQ vb.net - Sample Queries实例

文件大小:1.26MB

文件格式:7Z

更新时间:2021-04-04 07:01:47

LINQ vb.net实例

很多常用的Linq写法,基于Vb.net,本人收获良多 LinqSamples LinqToSQLSamples LinqToXMLSamples LinqToDataSetSamples 举例:Linq to sql Dim categories = From prod In db.Products _ Group By Key = New With {prod.CategoryID, prod.SupplierID} _ Into prodGroup = Group _ Select Key, prodGroup Linq to xml: Dim doc = XDocument.Load(dataPath & "bib.xml") Dim content = From book In doc... _ From author In book. _ Group book By Key = author..Value & " " & author..Value _ Into authorGroup = Group _ Select

<%= "Author: " & Key %><%= GetBooksTable(authorGroup) %>

Dim result = <html><body><%= content %></body></html>


网友评论