2011年4月3日

Linq to SQL 语法查询....子查询 & in操作 & join

摘要: 子查询描述:查询订单数超过5的顾客信息查询句法:var子查询=fromcinctx.Customerswhere(fromoinctx.Ordersgroupobyo.CustomerIDintoowhereo.Count() > 5selecto.Key).Contains(c.CustomerID)selectc;in 操作描述:查询指定城市中的客户查询句法:varin操作=fromcinctx.Customerswherenewstring[] {"Brandenburg","Cowes","Stavern"}.Conta 阅读全文

posted @ 2011-04-03 21:55 zqonline 阅读(498) 评论(0) 推荐(0) 编辑

日期替换,正则

摘要: Title: Pattern Title [Details] [Test] Expression: ^(3[0-1]|2[0-9]|1[0-9]|0[1-9])[\s{1}|\/|-](Jan|JAN|Feb|FEB|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)[\s{1}|\/|-]\d{4}$ Description: More flexible date validator. Allows either spaces, / or - as dividers, also al 阅读全文

posted @ 2011-04-03 19:13 zqonline 阅读(543) 评论(0) 推荐(0) 编辑

导航