随笔分类 - Linq
摘要:xml结构:<?xml version="1.0" encoding="utf-8" ?><foo> <bar>Test 1</bar> <baz> <bar>Test 2</bar> </baz> <bar>Test 3</bar></foo>查询代码:XDocument doc = XDocument.Load("input.xml");XElement root = doc.Root;foreach
阅读全文
摘要:var attributeTotalValues = (from a in objValue group a by new { a.ProductTypeID, a.AttributeCode ...
阅读全文

浙公网安备 33010602011771号