使用SubSonic检索一个列值的最简单方法是什么(列不是主要的)

时间:2009-09-09 22:40:23

标签: mysql activerecord subsonic subsonic3

我在SubSonic 3.0.0.3中使用AcriveRecord和MySql。 是否有一些简单的方法来执行“SELECT CustomerAddress FROM customers”而不是执行“SELECT * FROM customers”的.All()?以及如何获得不同的价值观?

1 个答案:

答案 0 :(得分:3)

var qry= from c in Customer.All()
         select new {
            c.CustomerAddress
         }