【问题标题】:What is easiest way to retrieve one column's values using SubSonic (Column isn't primary)使用 SubSonic 检索一列值的最简单方法是什么(列不是主要的)
【发布时间】:2009-09-09 22:40:22
【问题描述】:

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

【问题讨论】:

    标签: mysql activerecord subsonic subsonic3


    【解决方案1】:
    var qry= from c in Customer.All()
             select new {
                c.CustomerAddress
             }
    

    【讨论】:

    • 谢谢你的帮助,罗布。并感谢您的 SubSonic 项目;)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-14
    • 1970-01-01
    • 1970-01-01
    • 2010-10-06
    • 1970-01-01
    • 1970-01-01
    • 2011-04-24
    相关资源
    最近更新 更多