Linq to SQL
摘要: 一、投影操作符1. SelectSelect操作符对单个序列或集合中的值进行投影。下面的示例中使用select从序列中返回Employee表的所有列:using(NorthwindDataContextdb=newNorthwindDataContext()){//查询语法varquery =fromeindb.Employeeswheree.FirstName.StartsWith("M")selecte;//方法语法varq =db.Employees.Where(e => e.FirstName.StartsWith("M")).Select
阅读全文
posted @
2011-05-25 10:37 AGPSky 阅读(45) |
评论 (0) 编辑