views:

190

answers:

1

I'm using AcriveRecord in SubSonic 3.0.0.3 with MySql. Is there some easy way to perform something like "SELECT CustomerAddress FROM customers" rather than .All() which performs "SELECT * FROM customers"? And how to get distinct values?

+3  A: 
var qry= from c in Customer.All()
         select new {
            c.CustomerAddress
         }
Rob Conery
Thank you for help, Rob.And thank you for SubSonic project ;)
Nickname