码迷,mamicode.com
首页 > 其他好文 > 详细

week 7

时间:2015-04-22 22:00:25      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:

deferred query

foreach() is where query is executed

data changes between executions,the result is different.

ToList() ToArray()

cache the data

List<Customer> cache = result.ToList<Customer>();

join query group aggregation sort

LinQ like SQL

one join two on [join condition]

only inner join
one & two all meets condition

join condition on
join c2 on
join c3 on


sort

orderby someproperty descending
ascending by default

orderby p,
Q descenging

select{new p,q}
anonymous types

mthod-based query

IEnumerable<Customer> r= c.where(c=>c.f=="")
.select(c=>c);

var result == auto

public static string R(this string s){}
sealed string
if you want to add method,have to be this way
can only access public member
can‘t override extant method

orderby
thenbydescending

orderbydescending
orderby


XML data consumption
JSON

DOM document object model

xml .save()

@->attribute
XPath directory

XML serialization
deserialization

load in memory

code serialize into XML(convert

Xmlattribute
XmlIgnore throw away

week 7

标签:

原文地址:http://www.cnblogs.com/itria/p/4448711.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!