zoukankan      html  css  js  c++  java
  • week 7

    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

  • 相关阅读:
    .net中数据库事务机制
    位图排序
    JavaScript实现手动画线
    CSS 样式
    我的知识计划
    开发民政信息采集工具有感
    系统小技巧
    C++的学习笔记
    Android核心服务学习笔记
    突然想到的“社会发展历程”
  • 原文地址:https://www.cnblogs.com/itria/p/4448711.html
Copyright © 2011-2022 走看看